Custom CSS for block with a block style variation is not rendered to the page. #62415
Labels
CSS Styling
Related to editor and front end styles, CSS-specific issues.
Global Styles
Anything related to the broader Global Styles efforts, including Styles Engine and theme.json
[Status] In Progress
Tracking issues with work in progress
[Type] Bug
An existing feature does not function as intended
What?
The custom CSS added in the custom CSS input of a block with a block style variation, for example, a Button with the 'outline' variation as in the Twenty Twenty-Four theme, is not rendered on the page. It seems to be ignored.
Why?
To be able to add custom CSS to block variant.
Context
We found that this wasn't working because @beafialho was building a theme and trying to style the
:hover
state of the 'outline' variants button. The temporal solution we found was adding this CSS to the Buttons CSS input.Expected
The CSS should be rendered as the rest of the CSS included in the CSS input.
Screencast
In the screencast is possible to see how the 'outline' custom CSS is not added to the rendered page code.
Screencast.from.07-06-24.16.12.49.webm
The text was updated successfully, but these errors were encountered: