-
Notifications
You must be signed in to change notification settings - Fork 116
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
Update ButtonGroup
to use Beta::Button
#2013
Conversation
🦋 Changeset detectedLatest commit: 0afa94b 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 |
|
Taking a quick look the only thing it looks like we'll need to fix is |
component.with_button(scheme: :primary) { "Primary" } | ||
component.with_button(scheme: :danger) { "Danger" } |
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.
You'll need to pass the scheme to ButtonGroup now
@size = size | ||
@scheme = scheme |
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.
You might want to use fetch or fallback here and the Button scheme and size options
Just thinking out loud maybe not since the button will take care of that anyway. Never mind
This is ready to merge, but I'd like to be available to help roll it out and make dotcom changes. I will be out May 22-26. |
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.
The older release is out, 🚀
Description
ButtonGroup
classIntegration
Maybe, this might be kind of a breaking change? This is used 18 times in production and I'm happy to roll it out with any fixes.
Replace
variant: :small
withsize: :small
https://github.com/search?q=repo%3Agithub%2Fgithub+Primer%3A%3ABeta%3A%3AButtonGroup&type=codeMerge checklist