Skip to content
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

fix: prop spreading to ButtonGroup #222

Merged
merged 2 commits into from
Jan 17, 2019
Merged

fix: prop spreading to ButtonGroup #222

merged 2 commits into from
Jan 17, 2019

Conversation

jbadan
Copy link
Contributor

@jbadan jbadan commented Jan 16, 2019

Allows props to be spread to ButtonGroup component

@jbadan jbadan requested a review from a team January 16, 2019 18:14
return (
<div aria-label='Group label' className='fd-button-group'
role='group'>
role='group'
{...props}>
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think we want the spread to occur first and then the hard-coded props. Otherwise, consumers could literally override required prop values. In this case, it will also leverage some capabilities of the classnames story to make sure they can include additional classes.

Copy link
Contributor

@greg-a-smith greg-a-smith left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Merging blocked until fundamental-bot admin rights are restored.

Copy link
Contributor

@greg-a-smith greg-a-smith left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think the changes look good. 🚢 I can approve once merging is allowed.

Copy link
Contributor

@greg-a-smith greg-a-smith left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Let's roll 🎢

@greg-a-smith greg-a-smith merged commit e1f58a4 into master Jan 17, 2019
@greg-a-smith greg-a-smith deleted the fix/button-spread branch January 17, 2019 21:35
greg-a-smith pushed a commit that referenced this pull request Mar 5, 2019
* enable spreading props to buttongroup

* move buttongroup spread
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants