-
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
FontAppearanceControl: Remove fieldset
wrapper
#35461
Conversation
Size Change: -22 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.
Sorry for being late with the review!
(Might've been copypasta?)
Probably. It looks like only components in the block-editor
package use fieldset
.
I was just wondering if we should add a CHANGELOG note about this? Removing the fieldset
and changing the className targeting the select
element may have introduced breaking changes to users of this component — so maybe a changelog entry can at least help with tracking this change.
On a separate note, I have also added a few labels to ease the Gutenberg release notes gathering process.
It might also have been a leftover from earlier iterations when font style was separate from font-weight and initially contained normal, italic & oblique controls. |
Opened #35585 to add a CHANGELOG entry |
Description
The
FontAppearanceControl
was wrapped by afieldset
tag that relied on a wp-admin CSS reset file (common.css). Rather than encapsulate a style reset within the component, I think it would be better to remove thefieldset
wrapper since AFAICT it serves no purpose in this particular case. (Might've been copypasta?)How has this been tested?
fieldset
styling is gone in the Storybook.Screenshots
Before
When rendered in an isolated environment, the
fieldset
border is visible.Types of changes
Bug fix (non-breaking change which fixes an issue)
Checklist:
*.native.js
files for terms that need renaming or removal).