Uh oh!
There was an error while loading. Please reload this page.
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>
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
| * 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.
Same question - should we add a unit test for it?
langermank
commented
Dec 20, 2022
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.