-
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
Fix group block placeholder buttons color contrast ratio and improve consistency #60217
Conversation
Size Change: +212 B (0%) Total Size: 1.72 MB
ℹ️ View Unchanged
|
This PR aims to fix a few things for the Group block placeholder with variations:
I was able to reuse the Screenshot of this PR current state: Before continuing work on this PR, I'd like to get soem feedback about the variation icons. The Group block placeholder uses custom icons that are different from the ones of the block variations.
While I do realize the custom icons in the placeholder resemble more closely the variations layout, I'm not sure using two different sets of icons in the UI is best for users in the first place. To me, that's confusing bcause the Group, Row, Stack, and Grid are represented with different icons in different places of the UI. I'd like these icons to be the same everywhere. Icons should identify the associated concepts in an unique way. The default variation icons would look like this in the placeholder, which isn't great: I see two options:
Cc @WordPress/gutenberg-design |
I agree with improving the contrast ratio and adding text labels. Personally, I don't have a strong preference as to whether to use the default icon for the group block or a custom icon. Also, if we follow the column block placeholder style, it should probably look like this: (Please note that the group block icon is a temporary change and is not ideal!) Alternatively, we may want to remove the default border on the button itself by changing the button style from The style of placeholders seems to have been discussed in this comment as well. @jasmussen may have some knowledge. |
.I would avoid the |
@jasmussen has been working on improving these also #59275 |
Due to the merge of #59275, the current look of the Group block has changed since this PR was submitted. To move forward this PR, I would like to suggest replacing the This would ensure consistency in layout and code with the Column block, and we should be able to remove this custom CSS selector as well. |
I'd be totally in favor of using the Just noting that also the Query block uses I'd suggest to look at the overall usage of Also noting that #62373 / #62412 may further help with avoiding custom implementations related to the button icons position and visible text. |
The color contrast has been fixed in #62416 |
Fixes #60206
What?
WIP
Why?
How?
Testing Instructions
Testing Instructions for Keyboard
Screenshots or screencast