-
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
Notice: Add appropriate size props to Buttons #66593
Changes from 3 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 | ||||
---|---|---|---|---|---|---|
|
@@ -142,6 +142,7 @@ function Notice( { | |||||
|
||||||
return ( | ||||||
<Button | ||||||
__next40pxDefaultSize | ||||||
key={ index } | ||||||
href={ url } | ||||||
variant={ computedVariant } | ||||||
|
@@ -160,6 +161,7 @@ function Notice( { | |||||
</div> | ||||||
{ isDismissible && ( | ||||||
<Button | ||||||
size="small" | ||||||
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. The Notice will naturally reduce to a shorter height, due to the smaller button. This matches the current Figma specs, so I'm going to assume this is correct (cc @WordPress/gutenberg-design).
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. I'm good with this, but I'd love to get a design confirmation before we 🚢 it. 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. Seems fine until we holistically revisit the Notice design. |
||||||
className="components-notice__dismiss" | ||||||
icon={ close } | ||||||
label={ __( 'Close' ) } | ||||||
|
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -109,7 +109,11 @@ export const NoticeListSubcomponent: StoryFn< typeof NoticeList > = () => { | |
return ( | ||
<> | ||
<NoticeList notices={ notices } onRemove={ removeNotice } /> | ||
<Button variant="primary" onClick={ resetNotices }> | ||
<Button | ||
__next40pxDefaultSize | ||
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. 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. Pre-existing, but isn't it weird that those notices have no margins by default? 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. Not sure 🤷 This component is on the "needs design updates" docket though. |
||
variant="primary" | ||
onClick={ resetNotices } | ||
> | ||
Reset Notices | ||
</Button> | ||
</> | ||
|
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 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 in the template validation notice: