-
Notifications
You must be signed in to change notification settings - Fork 1.8k
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(button): add tertiary and ghost danger buttons #7087
feat(button): add tertiary and ghost danger buttons #7087
Conversation
Deploy preview for carbon-elements ready! Built with commit 4292b0f |
Deploy preview for carbon-components-react ready! Built without sensitive environment variables with commit 4292b0f https://deploy-preview-7087--carbon-components-react.netlify.app |
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 opening this PR, I requested a review from our design team. in the meantime, you'll need to resolve the SassDoc conflict (probably by rerunning the build
npm script for the components package)
@emyarod the merge conflict has been resolved |
Do you think it would make more sense to show all danger button variations under |
@AlexanderLyon Yes I think it would be good to show them all under one Danger button story. |
@aagonzales sure thing - I've updated storybook to display all 3 danger variants under the same story |
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.
👍 Looks good! Thanks for contributing!
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.
since the Danger Button story now has multiple variants, should we label them accordingly?
<> | ||
<Button kind="danger">Button</Button> | ||
| ||
<Button kind="danger-tertiary">Button</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.
<Button kind="danger-tertiary">Button</Button> | |
<Button kind="danger-tertiary">Tertiary Danger Button</Button> |
| ||
<Button kind="danger-tertiary">Button</Button> | ||
| ||
<Button kind="danger-ghost">Button</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.
<Button kind="danger-ghost">Button</Button> | |
<Button kind="danger-ghost">Ghost Danger Button</Button> |
…lexanderLyon/carbon into feature/danger-button-variants
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 update, looks good to me
@@ -4447,9 +4449,13 @@ Define theme variables from a map of tokens | |||
--#{$custom-property-prefix}-overlay-01, | |||
map-get($theme, 'overlay-01') | |||
) !global; | |||
$danger: var( |
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.
This is a breaking change
Closes #4945
Closes #5610
Changelog
New
danger-tertiary
anddanger-ghost
respectively)Button-test.js
to verify these new variants render successfullyTesting / Reviewing