[wp-trac] [WordPress Trac] #57667: Twenty Twenty-Three: Separator Block default and wide line styling outputing same result
WordPress Trac
noreply at wordpress.org
Fri Mar 10 02:06:50 UTC 2023
#57667: Twenty Twenty-Three: Separator Block default and wide line styling
outputing same result
-------------------------------------+----------------------
Reporter: haritpanchal | Owner: (none)
Type: defect (bug) | Status: new
Priority: normal | Milestone: 6.3
Component: Bundled Theme | Version:
Severity: minor | Resolution:
Keywords: has-patch needs-refresh | Focuses: ui, css
-------------------------------------+----------------------
Changes (by poena):
* keywords: has-patch => has-patch needs-refresh
* milestone: Awaiting Review => 6.3
Comment:
I am back again with yet another idea: Use the new theme.json variations
feature added in 6.2.
https://make.wordpress.org/core/2023/03/07/miscellaneous-editor-changes-
in-wordpress-6-2/#edit-block-style-variations-from-theme-json
{{{
"styles": {
"blocks": {
"core/separator": {
"variations": {
"default" : {
"css": "width:200px"
}
}
},
(...other blocks goes here)
}}}
The CSS output:
{{{
.wp-block-separator:not(.is-style-wide):not(.is-style-
dots):not(.alignwide):not(.alignfull) {
width: 200px;
}
}}}
--
Ticket URL: <https://core.trac.wordpress.org/ticket/57667#comment:13>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list