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(button): set secondary variant styles by default #86

Merged
merged 1 commit into from
Sep 18, 2023

Conversation

BalbinaK
Copy link
Contributor

Fixes issues where buttons receiving only modifier props like small, loading, quiet (without any variant prop) weren't applying any classes. The default button variant in such case should be "secondary".

Also renamed buttonTypes to buttonVariants to align with Warp Elements API and to avoid confusion with another prop that is called type.

Before:
Screenshot 2023-09-15 at 12 26 37
Screenshot 2023-09-15 at 12 23 50

After:
Screenshot 2023-09-15 at 12 26 31
Screenshot 2023-09-15 at 12 35 23

@BalbinaK BalbinaK requested a review from a team September 15, 2023 09:37
@BalbinaK BalbinaK mentioned this pull request Sep 15, 2023
@BalbinaK BalbinaK merged commit cb0c60f into next Sep 18, 2023
@BalbinaK BalbinaK deleted the fix/button-default-style branch September 18, 2023 08:58
github-actions bot pushed a commit that referenced this pull request Sep 18, 2023
## [1.0.1-next.4](v1.0.1-next.3...v1.0.1-next.4) (2023-09-18)

### Bug Fixes

* **button:** set secondary variant styles by default ([#86](#86)) ([cb0c60f](cb0c60f))
github-actions bot pushed a commit that referenced this pull request Sep 25, 2023
## [1.0.1](v1.0.0...v1.0.1) (2023-09-25)

### Bug Fixes

* add aria-current propp to the anchor element for e.g. pagination component ([#81](#81)) ([5b532b6](5b532b6))
* add check for children in tabs ([#83](#83)) ([b6f4ccd](b6f4ccd))
* Add fullWidth button prop ([#89](#89)) ([4cdbe5d](4cdbe5d))
* **button:** set secondary variant styles by default ([#86](#86)) ([cb0c60f](cb0c60f))
* pass onClick to anchor in button component ([#87](#87)) ([24a4247](24a4247))
* use new button classes and improve conditions ([#67](#67)) ([09c8245](09c8245))
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.

2 participants