-
Notifications
You must be signed in to change notification settings - Fork 4.6k
Closed
Labels
[Block] HTMLAffects the the HTML BlockAffects the the HTML Block[Type] BugAn existing feature does not function as intendedAn existing feature does not function as intended
Description
Description
When HTMLEditModal is open, the button font and background admin font change.
This style, introduced in #73108, seems to affect the entire admin screen.
gutenberg/packages/block-library/src/html/modal.js
Lines 42 to 53 in c80f87b
| // Check if user has permission to save scripts and get editor styles | |
| const { canUserUseUnfilteredHTML, editorStyles } = useSelect( | |
| ( select ) => { | |
| const settings = select( blockEditorStore ).getSettings(); | |
| return { | |
| canUserUseUnfilteredHTML: | |
| settings.__experimentalCanUserUseUnfilteredHTML, | |
| editorStyles: settings.styles, | |
| }; | |
| }, | |
| [] | |
| ); |
Step-by-step reproduction instructions
- Go to site editor.
- Insert HTML block.
- You can see that the button font has changed.
- It will be easier to understand if you change the global style.
Screenshots, screen recording, code snippet
html-modal.mp4
Environment info
- WordPress 6.9 RC-1
- Gutenberg 22.1.0
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
Please confirm which theme type you used for testing.
- Block
- Classic
- Hybrid (e.g. classic with theme.json)
- Not sure
Metadata
Metadata
Assignees
Labels
[Block] HTMLAffects the the HTML BlockAffects the the HTML Block[Type] BugAn existing feature does not function as intendedAn existing feature does not function as intended