Skip to content

Commit

Permalink
fix: do not apply disabled value color to prefix and suffix (#7772)
Browse files Browse the repository at this point in the history
  • Loading branch information
web-padawan authored Sep 17, 2024
1 parent da4b577 commit 9c84e5c
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -87,7 +87,7 @@ registerStyles(
background: var(--_disabled-background);
}
:host([disabled]) ::slotted(*) {
:host([disabled]) ::slotted(:not([slot$='fix'])) {
-webkit-text-fill-color: var(--_disabled-value-color);
color: var(--_disabled-value-color);
}
Expand Down
5 changes: 3 additions & 2 deletions packages/vaadin-lumo-styles/mixins/input-field-shared.js
Original file line number Diff line number Diff line change
Expand Up @@ -90,12 +90,13 @@ const inputField = css`
--vaadin-input-field-border-color: var(--lumo-contrast-20pct);
}
:host([disabled]) [part='label'] {
:host([disabled]) [part='label'],
:host([disabled]) [part='input-field'] ::slotted([slot$='fix']) {
color: var(--lumo-disabled-text-color);
-webkit-text-fill-color: var(--lumo-disabled-text-color);
}
:host([disabled]) [part='input-field'] ::slotted(*) {
:host([disabled]) [part='input-field'] ::slotted(:not([slot$='fix'])) {
color: var(--_disabled-value-color);
-webkit-text-fill-color: var(--_disabled-value-color);
}
Expand Down

0 comments on commit 9c84e5c

Please sign in to comment.