-
Notifications
You must be signed in to change notification settings - Fork 4.5k
Fix: Improve warning message and add spacing in HTMLElementControl #70002
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
Fix: Improve warning message and add spacing in HTMLElementControl #70002
Conversation
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 the PR!
- Improves the warning message shown when duplicate
<main>
elements are detected, clarifying that the duplicate may be in the page template as well as in the content.- Improves spacing
Both of these have worked fine for me.
@Mamaduka @luminuu @carolinan Any other feedback?
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.
I think the warning message can be simplified; otherwise, everything looks good.
Thanks, @Sukhendu2002!
@@ -11,7 +11,8 @@ | |||
} | |||
|
|||
.components-base-control, | |||
.components-radio-control { | |||
.components-radio-control, | |||
.block-editor-html-element-control { |
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.
I hope we can eliminate these special classes in the future, but for now, it makes sense to group them.
@WordPress/gutenberg-components, do we have an issue to modernize block inspector controls styling now that most components have migrated to __nextHasNoMarginBottom
?
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 is a suggestion to unify the layout of the block inspector. These styles should be removed in the future.
packages/block-editor/src/components/html-element-control/index.js
Outdated
Show resolved
Hide resolved
…ordPress#70002) * Fix: Improve warning message and add bottom margin in HTMLElementControl * Simplify warning message Co-authored-by: Sukhendu2002 <sukhendu2002@git.wordpress.org> Co-authored-by: t-hamano <wildworks@git.wordpress.org> Co-authored-by: Mamaduka <mamaduka@git.wordpress.org>
What?
Follow up: #69904 (comment)
This PR makes two small improvements to the
HTMLElementControl
component:<main>
elements are detected, clarifying that the duplicate may be in the page template as well as in the content.Screenshots or screencast