diff --git a/docs/docs/components/badge.md b/docs/docs/components/badge.md index a095a28bb..a971a5fe7 100644 --- a/docs/docs/components/badge.md +++ b/docs/docs/components/badge.md @@ -28,36 +28,36 @@ Use the `appearance` attribute to change the badge's visual appearance. ```html {.example}
- F+O - Filled + A+O + Accent T+O Tinted Outlined
- F+O - Filled + A+O + Accent T+O Tinted Outlined
- F+O - Filled + A+O + Accent T+O Tinted Outlined
- F+O - Filled + A+O + Accent T+O Tinted Outlined
- F+O - Filled + A+O + Accent T+O Tinted Outlined diff --git a/docs/docs/components/button.md b/docs/docs/components/button.md index 501d444dd..a34885c11 100644 --- a/docs/docs/components/button.md +++ b/docs/docs/components/button.md @@ -29,31 +29,31 @@ Use the `appearance` attribute to change the button's visual appearance. ```html {.example}
- Filled + Accent Tinted Outlined Text
- Filled + Accent Tinted Outlined Text
- Filled + Accent Tinted Outlined Text
- Filled + Accent Tinted Outlined Text
- Filled + Accent Tinted Outlined Text diff --git a/docs/docs/essentials/button.md b/docs/docs/essentials/button.md index 9756cf8ec..0f981eb84 100644 --- a/docs/docs/essentials/button.md +++ b/docs/docs/essentials/button.md @@ -32,31 +32,31 @@ Use the appearance utility classes to change the button's visual appearance: ```html {.example}
- +
- +
- +
- +
- + diff --git a/src/components/badge/badge.ts b/src/components/badge/badge.ts index 502e43a97..e1a8a011a 100644 --- a/src/components/badge/badge.ts +++ b/src/components/badge/badge.ts @@ -30,7 +30,7 @@ export default class WaBadge extends WebAwesomeElement { @property({ reflect: true }) variant: 'brand' | 'success' | 'neutral' | 'warning' | 'danger' = 'brand'; /** The badge's visual appearance. */ - @property({ reflect: true }) appearance: 'filled' | 'tinted' | 'outlined' = 'filled'; + @property({ reflect: true }) appearance: 'accent' | 'tinted' | 'outlined' = 'accent'; /** Draws a pill-style badge with rounded edges. */ @property({ type: Boolean, reflect: true }) pill = false; diff --git a/src/components/button/button.ts b/src/components/button/button.ts index c0a6a4f4f..9c4bc2fbe 100644 --- a/src/components/button/button.ts +++ b/src/components/button/button.ts @@ -73,7 +73,7 @@ export default class WaButton extends WebAwesomeFormAssociatedElement { @property({ reflect: true }) variant: 'neutral' | 'brand' | 'success' | 'warning' | 'danger' = 'neutral'; /** The button's visual appearance. */ - @property({ reflect: true }) appearance: 'filled' | 'tinted' | 'outlined' | 'plain' = 'filled'; + @property({ reflect: true }) appearance: 'accent' | 'tinted' | 'outlined' | 'plain' = 'accent'; /** The button's size. */ @property({ reflect: true }) size: 'small' | 'medium' | 'large' = 'medium'; diff --git a/src/styles/native/input.css b/src/styles/native/input.css index cda03fcb9..c095753e3 100644 --- a/src/styles/native/input.css +++ b/src/styles/native/input.css @@ -22,9 +22,9 @@ --box-shadow: initial; } - /* Set custom properties for filled input variants via class="wa-filled" or */ - input:where(:not(:host input)).wa-filled:where(&), - :host(.wa-filled:where(&)), + /* Set custom properties for filled input variants via class="wa-accent" or */ + input:where(:not(:host input)).wa-accent:where(&), + :host(.wa-accent:where(&)), :host([filled]:where(&)) { --background-color: var(--wa-color-neutral-fill-quiet); --border-color: var(--background-color); diff --git a/src/styles/utilities/appearance.css b/src/styles/utilities/appearance.css index f54621e03..587d92524 100644 --- a/src/styles/utilities/appearance.css +++ b/src/styles/utilities/appearance.css @@ -11,8 +11,8 @@ --text-color-hover: var(--wa-color-on-quiet); } -.wa-filled, -:host([appearance~='filled']) { +.wa-accent, +:host([appearance~='accent']) { --background-color: var(--wa-color-fill-loud); --background-color-hover: color-mix(in oklab, var(--background-color), var(--wa-color-mix-hover)); --background-color-active: color-mix(in oklab, var(--background-color), var(--wa-color-mix-active));