Skip to content

Conversation

@sidharthpandita1
Copy link
Contributor

@sidharthpandita1 sidharthpandita1 commented Oct 13, 2025

closes:-#72219.

What?
Adds clarification to the Fit text control’s help text, explaining that when enabled, it overrides the Font Size setting.

Why?
To prevent confusion for users who might think the Font Size control isn’t working when Fit text is active.
This implements the reviewer’s suggestion to clarify behavior without connecting the two controls in code.

How?
Updated the help text in fit-text.js → FitTextControl component to state that Font Size settings are ignored when Fit text is enabled.

Before:

“Text will resize to fit its container.”

After:

“Text will resize to fit its container and override font size settings.”

Related Issue / PR:
Fixes minor UX feedback from reviewer on #72219.

@github-actions
Copy link

github-actions bot commented Oct 13, 2025

The following accounts have interacted with this PR and/or linked issues. I will continue to update these lists as activity occurs. You can also manually ask me to refresh this list by adding the props-bot label.

If you're merging code through a pull request on GitHub, copy and paste the following into the bottom of the merge commit message.

Co-authored-by: sidharthpandita1 <sidharthpandita@git.wordpress.org>
Co-authored-by: t-hamano <wildworks@git.wordpress.org>
Co-authored-by: ntsekouras <ntsekouras@git.wordpress.org>
Co-authored-by: jasmussen <joen@git.wordpress.org>

To understand the WordPress project's expectations around crediting contributors, please review the Contributor Attribution page in the Core Handbook.

@ntsekouras ntsekouras changed the title fit text issue Fit text: update help text to clarify override of font-size Oct 15, 2025
@ntsekouras ntsekouras added [Type] Enhancement A suggestion for improvement. [Feature] Blocks Overall functionality of blocks labels Oct 15, 2025
fitText
? __( 'Text will resize to fit its container.' )
: __( 'Resize text to fit its container.' )
: __(
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks for the PR!

I think it's better to update the above help message to something like Text will resize to fit its container. Noting that any existing font size setting is overridden..

@jasmussen or @jorgefilipecosta any suggestions for better copy?

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Good PR, good instincts, good feedback.

Absent larger changes, yes I think a good and clear help message can work. One instinct would be

The text will resize to fit its container, overriding any specified font size.

@t-hamano
Copy link
Contributor

Now that #72533 has been merged, when font size or fit text is enabled, the other setting is reset. So, how about making the help text a bit clearer in this PR?

For example, "Resize text to fit its container. When enabled, font size settings are reset".

@jasmussen
Copy link
Contributor

How about:

The text will resize to fit its container, resetting other font size settings.

Copy link
Contributor

@t-hamano t-hamano left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think we can backport this PR to the 6.9 release, but I'd appreciate any second feedback.

@t-hamano t-hamano added the Backport to WP 6.9 Beta/RC Pull request that needs to be backported to the WordPress major release that's currently in beta label Oct 23, 2025
@jasmussen
Copy link
Contributor

It clarifies now-incorrect help text, I'd think it is spiritually a bugfix.

@t-hamano t-hamano merged commit 4422c74 into WordPress:trunk Oct 23, 2025
37 checks passed
@github-project-automation github-project-automation bot moved this from 🔎 Needs Review to ✅ Done in WordPress 6.9 Editor Tasks Oct 23, 2025
@github-actions github-actions bot added this to the Gutenberg 22.0 milestone Oct 23, 2025
@github-actions github-actions bot added Backported to WP Core Pull request that has been successfully merged into WP Core and removed Backport to WP 6.9 Beta/RC Pull request that needs to be backported to the WordPress major release that's currently in beta labels Oct 23, 2025
gutenbergplugin pushed a commit that referenced this pull request Oct 23, 2025
* fit text issue

* Changes made

* Changes made as asked

* Update packages/block-editor/src/hooks/fit-text.js

---------

Co-authored-by: sidharthpandita1 <sidharthpandita@git.wordpress.org>
Co-authored-by: t-hamano <wildworks@git.wordpress.org>
Co-authored-by: ntsekouras <ntsekouras@git.wordpress.org>
Co-authored-by: jasmussen <joen@git.wordpress.org>
@github-actions
Copy link

I just cherry-picked this PR to the wp/6.9 branch to get it included in the next release: af65443

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Backported to WP Core Pull request that has been successfully merged into WP Core [Feature] Blocks Overall functionality of blocks [Type] Enhancement A suggestion for improvement.

Projects

Development

Successfully merging this pull request may close these issues.

4 participants