-
Notifications
You must be signed in to change notification settings - Fork 4.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
Components: Update text colors #40113
Comments
I don't think we can / want / should do this — as you say, there's a high potential for breaking changes and unexpected behaviors.
This seems to be the correct short term solution, especially if we want to apply these changes in time for WP 6.0 — although probably good to get @jasmussen's (or other key stakeholders) blessing 🌟
I like this as it would also move us towards being ready to expose a lightweight theming API. I think this should be considered as our medium-term solution, as it may also require some refactor / tidy-up in the internal config. WDYT ? |
Good point, I agree this is the quickest way to go if we want to land it in WP 6.0. |
This attention to detail is excellent, thank you. We definitely want to retire #50505, and #000000 is a color we should very rarely use — mostly for shadows, not for UI elements. To an extent, the whole list of colors in this file is wrong and outdated, and exists — I believe — mainly due to it being created at a time in the development where much of the design refresh from #18667 was still underway. In that light, I would consider lines 6-15 from the sass file as the canonical and single list of grayscale colors we should support in the component set, with If I had my way, I'd rename the |
Thank you @jasmussen , this is excellent feedback which really helps us to move in the right direction 😄 I guess next steps could be:
|
What problem does this address?
There are outdated (?) text colors in some components, such as:
Heading
: Uses#050505
, which is explicitly different from the default text colorInputControl
: Uses#000000
SelectControl
: Uses#000000
There are probably more.
What is your proposed solution?
Some possible strategies, in order of personal preference:
color
declaration. These default text colors should simply be inherited from the surrounding context instead of explicitly setting them in each component. (This may not be backwards compatible though.)darkGray.primary
.@ciampo Any thoughts?
The text was updated successfully, but these errors were encountered: