You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository was archived by the owner on Jan 13, 2025. It is now read-only.
refactor(select): consolidate state theming to single mixins
BREAKING CHANGE: select theming mixins which were previously "stateful" (e.g. `hover-label-color()`) are combined into the non-stateful mixin (e.g. `label-color()`). The default state of the mixin can be set as normal, or a Map of states can be provided to optionally set one or more states of the mixin (e.g. `label-color((hover: blue))`). See the `@material/theme/state` package for more details.
PiperOrigin-RevId: 325314602
Copy file name to clipboardExpand all lines: packages/mdc-select/README.md
+7-21Lines changed: 7 additions & 21 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -495,28 +495,14 @@ Mixins should be included in the context of a custom class applied to the compon
495
495
496
496
Mixin | Description
497
497
--- | ---
498
-
`ink-color($color)` | Customizes the color of the selected item displayed in the select.
499
-
`container-fill-color($color)` | Customizes the background color of the select.
500
-
`disabled-container-fill-color($color)` | Customizes the background color of the select when disabled.
501
-
`dropdown-icon-color($color)` | Customizes the dropdown icon color of the select.
502
-
`hover-dropdown-icon-color($color)` | Customizes the dropdown icon color of the select when hovered.
503
-
`focused-dropdown-icon-color($color)` | Customizes the dropdown icon color of the select when focused.
504
-
`disabled-dropdown-icon-color($color)` | Customizes the dropdown icon color of the select when disabled.
505
-
`label-color($color)` | Customizes the label color of the select in the unfocused state.
506
-
`hover-label-color($color)` | Customizes the label color of the select when hovered.
507
-
`focused-label-color($color)` | Customizes the label color of the select when focused.
508
-
`label-floating-color($color)` | Customizes the label color of the select when the label is floated, but the select is not necessarily focused.
509
-
`hover-label-floating-color($color)` | Customizes the label color of the select when hovered and label is floated.
510
-
`disabled-label-color($color)` | Customizes the label color of the select when disabled.
511
-
`bottom-line-color($color)` | Customizes the color of the default bottom line of the select.
512
-
`hover-bottom-line-color($color)` | Customizes the color of the bottom line when the select is hovered.
513
-
`focused-bottom-line-color($color)` | Customizes the color of the bottom line of the select when focused.
514
-
`disabled-bottom-line-color($color)` | Customizes the color of the bottom line when the select is disabled.
498
+
`ink-color($state)` | Customizes the color of the selected item displayed in the select. Accepts a Map for `default` and `disabled` states.
499
+
`container-fill-color($state)` | Customizes the background color of the select. Accepts a Map for `default` and `disabled` states.
500
+
`dropdown-icon-color($state)` | Customizes the dropdown icon color of the select. Accepts a Map for `default`, `hover`, `focus`, and `disabled` states.
501
+
`label-color($state)` | Customizes the label color of the select. Accepts a Map for `default`, `hover`, `focus`, and `disabled` states.
502
+
`label-floating-color($state)` | Customizes the label color of the select when the label is floating. Accepts a Map for `default` and `hover` states.
503
+
`bottom-line-color($state)` | Customizes the color of the bottom line of the select. Accepts a Map for `default`, `hover`, `focus`, and `disabled` states.
515
504
`filled-shape-radius($radius, $density-scale, $rtl-reflexive)` | Sets rounded shape to filled select variant with given radius size. Set `$rtl-reflexive` to true to flip radius values in RTL context, defaults to false.
516
-
`outline-color($color)` | Customizes the color of the notched outline.
517
-
`focused-outline-color($color)` | Customizes the color of the outline of the select when focused.
518
-
`hover-outline-color($color)` | Customizes the color of the outline when the select is hovered.
519
-
`disabled-outline-color($color)` | Customizes the color of the notched outline when the select is disabled.
505
+
`outline-color($state)` | Customizes the color of the notched outline. Accepts a Map for `default`, `hover`, `focus`, and `disabled` states.
520
506
`outline-shape-radius($radius, $density-scale, $rtl-reflexive)` | Sets the border radius of the outlined select variant. Set `$rtl-reflexive` to true to flip radius values in RTL context, defaults to false.
521
507
`filled-density($density-scale)` | Sets density scale for the filled select variant (Excluding filled select with leading icon).
522
508
`filled-with-leading-icon-density($density-scale)` | Sets density scale for filled select with leading icon.
0 commit comments