-
Notifications
You must be signed in to change notification settings - Fork 4.5k
CustomSelectControl: Use dynamic fill color for check
icon
#69626
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
CustomSelectControl: Use dynamic fill color for check
icon
#69626
Conversation
The following accounts have interacted with this PR and/or linked issues. I will continue to update these lists as activity occurs. You can also manually ask me to refresh this list by adding the If you're merging code through a pull request on GitHub, copy and paste the following into the bottom of the merge commit message.
To understand the WordPress project's expectations around crediting contributors, please review the Contributor Attribution page in the Core Handbook. |
Thank you @yogeshbhutkar This change works well for me .
While testing this, I came across CustomSelectControl v2. It had a similar problem in dark mode. and with this change that too will get resolved
|
0028f9d
to
f9fe673
Compare
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.
👍
…ss#69626) * fix: use dynamic fill color for `check` icon * chore: add changelog * fix: simplify CSS Co-authored-by: yogeshbhutkar <yogeshbhutkar@git.wordpress.org> Co-authored-by: im3dabasia <im3dabasia1@git.wordpress.org> Co-authored-by: t-hamano <wildworks@git.wordpress.org>
What?
Closes #69625
The
Check
icon displayed next to the selected option does not adapt properly to the theme.Why?
Since no explicit fill value is applied, the
Check
icon defaults to its standard appearance.How?
A simple
fill: currentColor;
CSS rule fixed it.Testing Instructions
npm run storybook:dev
)CustomSelectControl
.Check
icon is visible across all the themes (especially dark theme).CustomSelectControlV2
implementations.Screenshots