-
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
Global styles: move border from layout to own menu #45995
Global styles: move border from layout to own menu #45995
Conversation
Open in CodeSandbox Web Editor | VS Code | VS Code Insiders |
@jasmussen can you provide the svg for the icon |
packages/edit-site/src/components/global-styles/context-menu.js
Outdated
Show resolved
Hide resolved
Here are the two new icons: Shadow:
Border:
You can add those to the icon library, I'm sure we can use them elsewhere as well! |
ef4cd12
to
9447a55
Compare
9447a55
to
7deaffa
Compare
Thanks for the PR. Here's a GIF showing the new option under Global Styles → Blocks: As-is, I honestly feel like this is a solid improvement. To me it made no sense that "Border" and "Radius" were under "Layout". And this at least brings consistency to the panels that are shipping, and it feels easier for me to find things. I think there's a longer conversation on what the panel should be called. In the initial iteration, I suggested "Border & Shadow", but "Effects" might be better, or even "Decoration". Here are some doodles: @WordPress/gutenberg-design @pablohoneyhoney @mtias I'd love your high level takes on these. But for this particular PR, which just adds the "Border" item, I'd be happy to ship this, but perhaps we should change the border icon to just this, in the mean time: That would be the following SVG update to the border icon:
|
Personally I think a dedicated Border panel makes sense, particularly if we want to expand the control to support I like the idea of the Decoration / Effects panel too, but see that more as a home for shadow (as you mentioned) and things like filters. |
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.
LGTM. The border icon looks like brightness to me, but we can iterate!
Before you merge, please update to the icon in #45995 (comment) |
Oh sorry I missed that comment! I'll do that now. |
Done here: #46264 |
* global styles: move border from layout to own section * add border and shadow icons
What?
This change moves the border controls from layout to its own menu in global styles.
Why?
This change is with reference to the discussion here
In the current change, the menu is called Border and it will be updated to
Border & Shadow
with the introduction of Shadow controls (Work in progress: #45507)Testing Instructions
Border
with all the related controlsScreenshots or screencast