-
Notifications
You must be signed in to change notification settings - Fork 4.2k
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
Button: Move to stricter lint rule for 40px size adherence #65840
Conversation
Size Change: -111 B (-0.01%) Total Size: 1.77 MB
ℹ️ View Unchanged
|
@@ -177,8 +177,7 @@ function PostTemplateDropdownContent( { onClose } ) { | |||
{ canEdit && onNavigateToEntityRecord && ( | |||
<p> | |||
<Button | |||
// TODO: Switch to `true` (40px size) if possible | |||
__next40pxDefaultSize={ false } | |||
__next40pxDefaultSize |
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.
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.
LGTM 🚀
I wonder if, for better clarity, the error message in the case of Button
should also mention that an alternative to the __next40pxDefaultSize
prop is to specify a size
different than "default"
?
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, thank you 🚀
Tweaked the wording so it applies more broadly: 7ea1a25 |
…#65840) * Fix last remaining instance * Button: Move to stricter lint rule * Tweak wording to account for `size` variants Co-authored-by: mirka <[email protected]> Co-authored-by: ciampo <[email protected]> Co-authored-by: tyxla <[email protected]>
Closes #65018
Closes #63871
What?
Moves
Button
to the stricter lint rule for adherence to the 40px default size.Also fixes the last remaining violation.
Testing Instructions
✅
npm run lint:js -- --quiet
passes