-
Notifications
You must be signed in to change notification settings - Fork 4.5k
Closed
Labels
[Block] SeparatorAffects the Separator BlockAffects the Separator Block[Type] BugAn existing feature does not function as intendedAn existing feature does not function as intended
Description
Description
When defining a different background color for the separator block through theme.json
or a style variant, the color is not properly displayed.
Through theme.json
, only the background-color
is defined. To actually change the color, the text color or the border color also has to change. Text color is deactivated in block.json
, border controls are not available at the separator block.
Changing the color through the settings in the block editor or site editor adds classes like has-vivid-red-color
, which then changes the color. It uses the color
CSS property instead of background-color
.
Possible solutions:
- When rendering
theme.json
, add a CSS property withcolor
orborder-color
and the defined color - Enable text color as setting and remove background color
- Update separator to use default border controls of Gutenberg
Step-by-step reproduction instructions
- Create a style variation of a block theme
- Change the color for the separator block through style-variant.json
- Check the website and see that the color did not change
Screenshots, screen recording, code snippet
No response
Environment info
- WordPress 6.0.1
- Gutenberg 13.9
- Twenty Twenty-Three
- Custom Style Variation
Please confirm that you have searched existing issues in the repo.
Yes
Please confirm that you have tested with all plugins deactivated except Gutenberg.
Yes
Metadata
Metadata
Assignees
Labels
[Block] SeparatorAffects the Separator BlockAffects the Separator Block[Type] BugAn existing feature does not function as intendedAn existing feature does not function as intended