-
Notifications
You must be signed in to change notification settings - Fork 598
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 bug fixes and visual updates #2374
Conversation
🦋 Changeset detectedLatest commit: 79f8967 The changes in this PR will be included in the next version bump. This PR includes changesets to release 1 package
Not sure what this means? Click here to learn what changesets are. Click here if you're a maintainer who wants to add another changeset to this PR |
size-limit report 📦
|
Co-authored-by: Josh Black <joshblack@users.noreply.github.com>
/** | ||
* The trailing icon comes after button content | ||
*/ | ||
trailingIcon?: React.FunctionComponent<React.PropsWithChildren<IconProps>> | ||
trailingVisual?: React.FunctionComponent<React.PropsWithChildren<IconProps>> |
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.
Same question - should we add a unit test for it?
Closing in favor of #2714 |
Note: These are breaking changes and should be considered for the next major release
Improvements
block
prop for full widthalignContent
prop to align content to center or startcontrol
sizing CSS variablesheight
over padding for more control over sizingButton.Counter
to better align with the other visual propsVisual updates
Addresses a few things missing from this discussion: https://github.com/github/primer/discussions/1016
outline
variantinvisible
hover states (will update these colors when new functional colors are addressed)Closes:
Screenshots
Please refer to the comprehensive Storybook stories- this is just a small sample of some of the changes
Merge checklist
Take a look at the What we look for in reviews section of the contributing guidelines for more information on how we review PRs.