Closed femkreations closed 8 months ago
Please assign this to me.
This is not required, being technical.
All the changes made to global styles would appear in the global styles sidebar like a list which would show the history of edits made. The rest controller allows only up to 100 revisions to be shown and the revisions panel would only appear when there are more than two revisions.
When the Global Styles panel is open in the site editor, clicking on a block will now open the settings for that specific block type. To make this happen without causing any disruption to the way you're writing, a new option has been added which is known as the skipFocus
. This keeps the focus on the block you're working on.
This new option could also be helpful in other situations where you need to move to different parts of the website programmatically to other components outside of the editor.
The caption elements can be customized through the Global Styles and can be found under the "Color" and "Typography" sections in the editor. So, if you want to apply a font, color or a background to a caption, you can do that from the Global Styles sidebar itself.
@femkreations The following issue seems like a developer issue which fixes the issue in which the global and local blocks are styled consistently. Please confirm.
The Global Styles section lets the users set and unset the Site Tagline. Users can also update the font and color of the site tagline through this section. This is an optional setting which the users can utilize if they as per their needs.
shadow
support enabled the panel label "Borders & Shadow" is misleading. Instead it has been moved to a different menu "Effects" so it appears only for the shadow enabled blocks.Global Styles now support Duotone filters. Earlier, themes could define duotone presets for their blocks via theme.json only and there was no way for the users to disable, unset or change those. Now, a filters panel in Global Styles has been added that contains the Duotone picker in it which overrides whatever the theme defines for the blocks.
@sagargurnani99 Thank you for your careful work. My comment on the whole thing.
Global styles revisions: move from experimental to 6.3 51474
Add revisions UI 50089
Link to the block type panel when selecting a block with Styles open 49350
Caption element UI controls for color and typography 49141
Remove copy for managing a block's style variations 48367
Unify the global block styles panel with the block inspector panels 49428
Add example so that it will display in style book 48300
Allow button text labels for style book icon 48088
Move shadow into own panel 47634
Add Global Styles controls for blocks that support duotone 48255
Update 'Additional CSS' subtitle string 47671
@femkreations @zzap please check my comments.
@atachibana I will make sure that I don't repeat the points which you highlighted above. Many thanks for reviewing it. I have edited my comments above as per your feedback.
@sagargurnani99
Add Global Styles controls for blocks that support duotone 48255 We don't need those explanation but add the Duotone in the filter panel.
You can follow the sections under "Blocks", such as "Adding box shaows to Button block". Or simply, insert the 'duotone' as the one of customizable style in the below sentence in Blocks chapter:
For example, you can customize the border, radius, duotone, etc. for the Image block or change the paddings, margins, colors, and fonts for the Heading block.
/review
Article: https://wordpress.org/documentation/article/styles-overview/
Update for 6.3
General
Notes