-
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
Inserter: Use 40px default size for toggle button #68155
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -60,6 +60,7 @@ const defaultRenderToggle = ( { | |
|
||
return ( | ||
<Wrapper | ||
__next40pxDefaultSize={ toggleProps.as ? undefined : true } | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Consumers who are rendering a custom toggle button with the There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Same question as #68157 (comment) re. checking if |
||
icon={ plus } | ||
label={ label } | ||
tooltipPosition="bottom" | ||
|
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.
Virtually all usage in Gutenberg seem to be overriding the toggle Button size to be 24px. They should consider using
size="small"
instead of doing this with custom CSS (out of scope for this PR, so I left TODO comments).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.
Sounds like a worthy follow-up 👍