Skip to content

Fix: Fit text toggle disappears when turned off#76699

Closed
saranshsinhaa wants to merge 1 commit into
WordPress:trunkfrom
saranshsinhaa:fix/issue-76691-fit-text-toggle-disappears
Closed

Fix: Fit text toggle disappears when turned off#76699
saranshsinhaa wants to merge 1 commit into
WordPress:trunkfrom
saranshsinhaa:fix/issue-76691-fit-text-toggle-disappears

Conversation

@saranshsinhaa
Copy link
Copy Markdown
Contributor

What?

Closes #76691

Fixes the fit text toggle disappearing when turned off in the typography panel.

Why?

The fit text toggle was disappearing from the typography panel when users toggled it off, making it difficult to re-enable the feature without navigating back through the 3-dots menu.

How?

Updated the component to properly distinguish between undefined and false states.

Testing Instructions

  1. Add a paragraph or heading block to a post
  2. Open the Typography settings panel
  3. Click the 3-dots menu and enable "Fit text"
  4. Toggle the fit text option ON
  5. Toggle the fit text option OFF (it should stay visible in the panel)

@github-actions github-actions Bot added the [Package] Block editor /packages/block-editor label Mar 19, 2026
@t-hamano
Copy link
Copy Markdown
Contributor

Thanks for working on this.

A PR addressing that issue has already been submitted, so let me close this PR. #75092

@t-hamano t-hamano closed this Mar 20, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

[Package] Block editor /packages/block-editor

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Fit text toggle disappears when toggled to 'off'

2 participants