-
Notifications
You must be signed in to change notification settings - Fork 4.3k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Remove non translatable additional info from font size picker visual label and improve labeling #69011
base: trunk
Are you sure you want to change the base?
Conversation
Size Change: -186 B (-0.01%) Total Size: 1.84 MB
ℹ️ View Unchanged
|
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 If you're merging code through a pull request on GitHub, copy and paste the following into the bottom of the merge commit message.
To understand the WordPress project's expectations around crediting contributors, please review the Contributor Attribution page in the Core Handbook. |
Flaky tests detected in 69594a1. 🔍 Workflow run URL: https://github.com/WordPress/gutenberg/actions/runs/13137700177
|
@im3dabasia when you have a chance, I'd appreciate your thoughts on this alternative approach to #68826 thanks! |
69594a1
to
d161821
Compare
Fixes #63810
Alternative to #68826
What?
Closes
For all the font size picker 3 variants (ToggleGroup, CustomSelectControl and Custom size UnitControl + RangeControl), the component visual labeling is made of visibel text 'Size' and some additional textual info e.g. the selected size, or the font size unit or a hardcoded string 'Custom'. Noting the component also uses a
fieldset
element with a visually hiddenlegend
that make the labeling of the entire group and controls a little noisy.This string is not fully translatable because it's just concatenated with the string 'Size'. Also, I'd argue the additional info doesn't add great value because:
Custom
is unnecessary because users do know they switched the UI to st a custom size.Why?
How?
headerHint
additional info from the visual label.Testing Instructions
Testing Instructions for Keyboard
Screenshots or screencast
Before:
After: