Skip to content

HTML Block: Button font changes when HTMLEditModal is open. #73322

@shimotmk

Description

@shimotmk

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.

// 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

  1. Go to site editor.
  2. Insert HTML block.
  3. You can see that the button font has changed.
  4. 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 Block[Type] BugAn existing feature does not function as intended

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions