-
Notifications
You must be signed in to change notification settings - Fork 640
Button bug fixes and visual updates #2374
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
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 <[email protected]>
| * 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
blockprop for full widthalignContentprop to align content to center or startcontrolsizing CSS variablesheightover padding for more control over sizingButton.Counterto better align with the other visual propsVisual updates
Addresses a few things missing from this discussion: https://github.com/github/primer/discussions/1016
outlinevariantinvisiblehover 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.