-
Notifications
You must be signed in to change notification settings - Fork 4.7k
Components: use new theming accent color in all components #45289
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
Merged
Merged
Changes from 1 commit
Commits
Show all changes
35 commits
Select commit
Hold shift + click to select a range
32ea922
update emotion color value variables
chad1008 bd8d776
update AnglePickerControl component color variables
chad1008 19a4342
simplify AnglePickerControl color declaration
chad1008 3ca9aac
update Autocomplete color variable
chad1008 2b4b9d3
update BaseField snapshot color variable
chad1008 d4738d9
update CheckboxControl color variables
chad1008 6c927e0
add explicit border color to CheckboxControl input when focused
chad1008 6ab0cd9
update ColorPalette color variable
chad1008 f60dd7b
update DropZone color variable
chad1008 ce2d6b6
update FormToggle color variable
chad1008 014fc5d
update FormTokenfield color variables
chad1008 4ca7afb
update navigate-regions color variables
chad1008 0be1ffb
update CheckboxControl's overrides for @wordpress/base-styles mixins
chad1008 324fd16
update FormTokenField's overrides for @wordpress/base-styles mixins
chad1008 c9183b0
update MenuItem color variable
chad1008 3b9fc6d
update Notice color variable
chad1008 63ce620
update Panel color variable
chad1008 487d7ec
update RangeControl color variables
chad1008 c8b8872
update ResizableBox color variables
chad1008 8cc2715
update SearchControl color variable
chad1008 f66c05f
update SearchControl's override for @wordpress/base-styles mixins
chad1008 891fc6f
update SnackBar color variable
chad1008 98f1898
update Spinner color variable
chad1008 1bd21f4
update TabPanel color variables
chad1008 f0c9bfb
update ToggleGroupControl snapshot color variables
chad1008 a03c416
update ToolsPanel color variable
chad1008 920fc07
update utils/input color variables (used for TextAreaControl)
chad1008 95a90a0
Add override for block mover handle focused state
chad1008 06ac815
update CHANGELOG
chad1008 b46a409
update `Notice` Readme
chad1008 afbde74
update preferences modal unit test snapshot
chad1008 ed277e0
update post-publish-panel unit test snapshot
chad1008 7b5a322
add missing semicolon
chad1008 78fe867
Revert all @base-styles overrides to be addressed separately
chad1008 a4151e4
expose COLORS.ui.themeDark10 for uses where it makes more sense seman…
chad1008 File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
update ToolsPanel color variable
- Loading branch information
commit a03c416536c92c241e33888143f1e86d9426d57b
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
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.
Along with this change, there are a couple of other pre-existing places in the codebase where this variable is being used for things other than a border... do we want to consider renaming it in
utils/color-values.jsin a followup PR?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.
We haven't yet audited these "semantic" color variables yet, so I don't know whether any of them are still relevant. The semantics are potentially useful when theming so we should keep them around until we audit them. That also means I don't want to force any new usages into these existing semantics if it doesn't make sense.
This ResetLabel isn't related to a
borderFocus, so I would consider exposing aCOLORS.ui.themeDark10that we can use here. (Aaand it looks like you already did that! 😄)Also unclear why this ResetLabel is a darker-10 and not just the theme color 🤔 Do you remember, @aaronrobertshaw?
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.
Thanks for the ping.
I'm drawing a blank on why that CSS var was actually used.
As long as the color of the ResetLabel matches the "Saved" in the top toolbar when saving a draft post it will satisfy the request here.
Further context and history can be found in #44260.
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.
Was looking at this with @mirka a little and this button doesn't have a disabled state, the 'reset' just isn't displayed when it isn't an option.
Looking at the focused/hovered state, I think I'd recommend we keep the current darker color. If the Reset span is given the same accent color as the rest of the list item, it becomes difficult to differentiate which button you're actually interacting with:
Screen.Recording.2022-11-03.at.11.36.59.mov
With the current darker color, there's at least a little contrast creating some distinction, though it is really subtle. We may want something with more contrast/decoration, but probably not something for this PR.
Any objection to keeping the slightly darker reset for now, using the newly exposed variable?
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.
Yeah, we can keep it as is 👍 Thanks for looking into it.