-
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
Font Appearance: Improve consistency of label in Typography panel #35860
Font Appearance: Improve consistency of label in Typography panel #35860
Conversation
Size Change: +23 B (0%) Total Size: 1.07 MB
ℹ️ View Unchanged
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM 👍
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks for the follow-up @aaronrobertshaw! I tested with the Heading and Navigation blocks that the Font Weight and Appearance labels are now consistent. Then, manually switched the Heading block over to use __experimentalFontStyle
instead, and confirmed that the Font Style label appears correctly.
LGTM!
Related:
Description
This PR makes the label within the Typography panel's menu for font appearance consistent with the label displayed within the control itself.
When both font styles and weights are present and supported the label will read "Appearance". When only font styles are preset it will read "Font styles" and likewise "Font weights" when only font-weight is supported. If nothing is supported the control/item isn't added to the panel.
See: #33744 (comment)
How has this been tested?
Manually.
ToolsPanel
menuScreenshots
Screen.Recording.2021-10-22.at.3.44.26.pm.mp4
Types of changes
Enhancement
Checklist:
*.native.js
files for terms that need renaming or removal).