Skip to content

Commit 644cb46

Browse files
fix(textfield): placeholder color for disabled readonly
1 parent 104d38a commit 644cb46

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

components/textfield/index.css

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -501,6 +501,11 @@ governing permissions and limitations under the License.
501501
&::placeholder {
502502
color: var(--highcontrast-textfield-text-color-readonly, var(--mod-textfield-text-color-readonly, var(--spectrum-textfield-text-color-readonly)));
503503
background-color: transparent;
504+
505+
.is-disabled &,
506+
.is-disabled:hover & {
507+
color: var(--highcontrast-textfield-text-color-disabled, var(--mod-textfield-text-color-disabled, var(--spectrum-textfield-text-color-disabled)));
508+
}
504509
}
505510
}
506511
}

0 commit comments

Comments
 (0)