Enhancement: set border-color as a variable instead of hex code in Code Block #42995
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
Needs Testing
Needs further testing to be confirmed.
[Status] Stale
Gives the original author opportunity to update before closing. Can be reopened as needed.
[Type] Enhancement
A suggestion for improvement.
What problem does this address?
Similar to: #36462
In WordPress 6.0.1, when you choose one of the colors from the color palette to set it as the
border-color
of the Code Block,border-color
is set as a variable in the Code Block. ✔️border-color
is set as a hex color in the Code Block. ❌What is your proposed solution?
Border-color coming from Global Styles to be set as a CSS variable in the Code Block.
Why?
Allows full site editing to change border-colors without needing to individually change every instance of the Code Block to update to the new border-color.
Please confirm that you have searched existing issues in the repo.
Yes
The text was updated successfully, but these errors were encountered: