-
Notifications
You must be signed in to change notification settings - Fork 4.7k
Closed
Closed
Copy link
Labels
[Block] CodeAffects the Code BlockAffects the Code Block[Type] BugAn existing feature does not function as intendedAn existing feature does not function as intended
Description
Description
When using a Code block and trying to set another color for the text, it won't get applied in the editor and on the frontend. I expected to be able to change the text color when using another background color.
Also, the <code> tag itself has a border of 1px solid #ddd. The border color in the settings only applies to the wrapping <pre> tag, not the <code> tag.
Step-by-step reproduction instructions
- Open or create a post or page.
- Add a Code block to it.
- Change the background color to a darker background, so the text becomes unreadable.
- Add a border to the block via the settings.
- Select a lighter text color for better color contrast.
- The text stays in the original dark color, the light border on the code tag is also visible.
Screenshots, screen recording, code snippet
Environment info
- WordPress 5.9 RC2
- no Gutenberg plugin active
- Twenty Twenty-Two theme, same effect on other themes
- Browser: Chrome, Firefox
- OS: macOS Catalina
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
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
[Block] CodeAffects the Code BlockAffects the Code Block[Type] BugAn existing feature does not function as intendedAn existing feature does not function as intended
