Skip to content

Commit

Permalink
update to use appearance attribute
Browse files Browse the repository at this point in the history
  • Loading branch information
khamudom committed Mar 25, 2021
1 parent 77f443e commit d1a4faf
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 7 deletions.
4 changes: 2 additions & 2 deletions packages/web-components/src/text-area/text-area.styles.ts
Original file line number Diff line number Diff line change
Expand Up @@ -14,12 +14,12 @@ import {
import { appearanceBehavior } from '../utilities/behaviors';

export const TextAreaFilledStyles = css`
:host(.filled) .control {
:host([appearance='filled']) .control {
background: ${neutralFillRestBehavior.var};
border-color: transparent;
}
:host(.filled:hover:not([disabled])) .control {
:host([appearance='filled']:hover:not([disabled])) .control {
background: ${neutralFillHoverBehavior.var};
border-color: transparent;
}
Expand Down
10 changes: 5 additions & 5 deletions packages/web-components/src/text-field/text-field.styles.ts
Original file line number Diff line number Diff line change
Expand Up @@ -15,12 +15,12 @@ import {
import { appearanceBehavior } from '../utilities/behaviors';

export const TextFieldFilledStyles = css`
:host(.filled) .root {
:host([appearance='filled']) .root {
background: ${neutralFillRestBehavior.var};
border-color: transparent;
}
:host(.filled:hover:not(.disabled)) .root {
:host([appearance='filled']:hover:not(.disabled)) .root {
background: ${neutralFillHoverBehavior.var};
border-color: transparent;
}
Expand All @@ -29,15 +29,15 @@ export const TextFieldFilledStyles = css`
neutralFillRestBehavior,
forcedColorsStylesheetBehavior(
css`
:host(.filled) .root {
:host([appearance='filled']) .root {
background: ${SystemColors.Field};
border-color: ${SystemColors.FieldText};
}
:host(.filled:hover:not(.disabled)) .root {
:host([appearance='filled']:hover:not(.disabled)) .root {
background: ${SystemColors.Field};
border-color: ${SystemColors.Highlight};
}
:host(.filled.disabled) .root {
:host([appearance='filled'].disabled) .root {
border-color: ${SystemColors.GrayText};
background: ${SystemColors.Field};
}
Expand Down

0 comments on commit d1a4faf

Please sign in to comment.