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

feat(component): add mobileWidth prop to Button #435

Merged
merged 2 commits into from
Aug 21, 2020

Conversation

deini
Copy link
Member

@deini deini commented Aug 20, 2020

Currently, the Button component uses width: 100% on the mobile breakpoint, however, this is not always what developers/designers want. The current workaround is to wrap the button in a Flex component.

This PR adds a mobileWidth prop that can be set to either auto or 100% (default).

Related #388

@deini deini requested a review from a team as a code owner August 20, 2020 15:59
@deini deini merged commit f04e120 into bigcommerce:master Aug 21, 2020
@deini deini deleted the buttonMobileWidth branch August 21, 2020 14:36
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

Successfully merging this pull request may close these issues.

3 participants