-
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
DateFormatPicker: fix styles & spacing #68079
Conversation
Size Change: +23 B (0%) 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. |
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 this fix <3
Flaky tests detected in a18914f. 🔍 Workflow run URL: https://github.com/WordPress/gutenberg/actions/runs/12389020166
|
@fabiankaegy Thanks for the review! |
Fixes #67917
Related to #67290
What?
This PR resolves two issues in the
DateFormatPicker
component:fieldset
element when no reset style from WordPress existsAs a result, the issue reported in #67917 (comment) will be fixed.
Why?
I discovered this issue while looking into #67290 and #67906.
When this component is displayed inside a WordPress page, it has no border, padding or margin due to the reset styles in WordPress core.
Additionally, #67906 caused this setting to be refactored to use a
ToolsPanelItem
, which negates the bottom margin expected by the inspector control:This component may be used outside of WordPress, for example in the developer's own block editor, so we need to ensure that it displays with the correct layout wherever it is displayed.
How?
fieldset
elementVStack
componentTesting Instructions
Storybook
npm run storybook:dev
Date Block