-
Notifications
You must be signed in to change notification settings - Fork 5k
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
Feat/15951/add button secondary #16097
Conversation
CLA Signature Action: All authors have signed the CLA. You may need to manually re-run the blocking PR check if it doesn't pass in a few minutes. |
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.
Some tiny suggestions otherwise 🔥🔥🔥
ui/components/component-library/button-secondary/button-secondary.js
Outdated
Show resolved
Hide resolved
ui/components/component-library/button-secondary/button-secondary.js
Outdated
Show resolved
Hide resolved
Builds ready [77424c7]
Page Load Metrics (2440 ± 105 ms)
highlights:storybook
|
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! 🔥🔥
<> | ||
<ButtonSecondary {...args} /> | ||
</> |
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.
Nit: Do we need a fragment here?
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.
nope. can be removed.
Builds ready [f123e52]
Page Load Metrics (2404 ± 136 ms)
highlights:storybook
|
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 🔥
Explanation
Adding ButtonSecondary built off of ButtonBase.
(similar to ButtonPrimary)
Sizes: SM, MD, & LG
Types: Normal (default) and Danger (enabled with danger prop = true)
Figma
More Information
Screenshots/Screencaps
Manual Testing Steps
yarn test:unit:jest .ui/components/component-library/button-secondary/button-secondary.test.js
Pre-Merge Checklist
+ If there are functional changes: