-
-
Notifications
You must be signed in to change notification settings - Fork 32.3k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[Select] Apply disabled color to the icon #20287
[Select] Apply disabled color to the icon #20287
Conversation
Details of bundle changes.Comparing: 26f39a8...0e2a8c8 Details of page changes
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
After more thought, I think that going with a color-based approach would be more consistent.
I have tried to customize the color of the select input, changing the color of the icons didn't feel obvious that it was the expected behavior, plus this screenshot surfaces the consistency potential of using the same colors with the IconButton:
https://material.io/components/text-fields/#anatomy
What do you think?
After seeing the final code, I agree this approach is better for readability, on top of the consistency benefits it provides. With the previous approach, there are some mental overhead in understanding why Thank you for helping with the fix 👍 |
@HenryLie Thanks! |
* [NativeSelect] fix icon color on disabled state * [Autocomplete] unify disabled icon color handling with NativeSelect * [Autocomplete] Handle clear icon for consistency * color instead of opacity? Co-authored-by: Olivier Tassinari <olivier.tassinari@gmail.com>
Resolves #19833.
This PR both applies the disabled color to the
Select
element's icon, and apply the same method toAutocomplete
for consistency.I hope it's okay to combine those two changes together in one PR?
One thing I'm not really confident of is re-applying
currentColor
todisabled
pseudo class, because it looks redundant.Any feedback is appreciated.