Skip to content

Commit

Permalink
fix color not inheriting (#640)
Browse files Browse the repository at this point in the history
* fix color not inheriting

* fix shim correctly

* even better fix
  • Loading branch information
notwaldorf authored Apr 2, 2018
1 parent 59cdb65 commit 986e2c6
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 0 deletions.
1 change: 1 addition & 0 deletions demo/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -176,6 +176,7 @@ <h3>Inputs can be completely restyled</h3>
}
paper-input.custom {
margin-bottom: 14px;
--primary-text-color: #01579B;
--paper-input-container-color: black;
--paper-input-container-focus-color: black;
--paper-input-container-invalid-color: black;
Expand Down
3 changes: 3 additions & 0 deletions paper-input-container.html
Original file line number Diff line number Diff line change
Expand Up @@ -296,6 +296,9 @@
.input-content ::slotted(iron-autogrow-textarea),
.input-content ::slotted(.paper-input-input) {
@apply --paper-input-container-shared-input-style;
/* The apply shim doesn't apply the nested color custom property,
so we have to re-apply it here. */
color: var(--paper-input-container-input-color, var(--primary-text-color));
@apply --paper-input-container-input;
}

Expand Down
1 change: 1 addition & 0 deletions paper-input.html
Original file line number Diff line number Diff line change
Expand Up @@ -106,6 +106,7 @@
word-spacing: inherit;
line-height: inherit;
text-shadow: inherit;
color: inherit;
}

input:disabled {
Expand Down

0 comments on commit 986e2c6

Please sign in to comment.