Repository navigation
Global styles: move border from layout to own menu - #45995
Conversation
|
|
|
@jasmussen can you provide the svg for the icon |
|
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. |
scruffian
left a comment
There was a problem hiding this comment.
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 & Shadowwith the introduction of Shadow controls (Work in progress: #45507)Testing Instructions
Borderwith all the related controlsScreenshots or screencast