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: use new button classes and improve conditions #67

Merged
merged 10 commits into from
Aug 31, 2023

Conversation

AnnaRybkina
Copy link
Contributor

@AnnaRybkina AnnaRybkina commented Aug 25, 2023

One more try for button refactoring

In this case we add classes specifically for a button with all variants and such.

The code grew a lot. But I hope it is easier to follow and will improve our work when we will debug problems with buttons.

TODO:

  • Move everything to the css repo, ONLY kept here for testing purposes in the beginning (line 28-154 will be moved out)
    - [ ] Shortcuts (what it is in comments) will be fixed in the css repo

PR for the classes and shortcuts: warp-ds/css#44

First attempt here but it was too unsafe but it is for sure less code but what is more important here 🤷

  • THIS PR SHOULD ALSO BE OPENED TO NEXT BRANCH WHEN IT IS DONE

@AnnaRybkina AnnaRybkina force-pushed the test-one-more-refactoring-for-buttons branch from cd4e3bb to 50901cd Compare August 25, 2023 11:14
@AnnaRybkina AnnaRybkina force-pushed the test-one-more-refactoring-for-buttons branch from 5d39ade to cee964f Compare August 28, 2023 14:59
@AnnaRybkina AnnaRybkina force-pushed the test-one-more-refactoring-for-buttons branch from 90c818e to 1c0cfb6 Compare August 29, 2023 12:37
@AnnaRybkina AnnaRybkina changed the title fix: Test one more refactoring for buttons fix: use new button classes and improve conditions Aug 30, 2023
@AnnaRybkina AnnaRybkina marked this pull request as ready for review August 30, 2023 08:02
@AnnaRybkina AnnaRybkina force-pushed the test-one-more-refactoring-for-buttons branch from 7f42a87 to 9b4ecc1 Compare August 30, 2023 08:04
@AnnaRybkina AnnaRybkina requested a review from a team August 30, 2023 08:05
@AnnaRybkina AnnaRybkina force-pushed the test-one-more-refactoring-for-buttons branch 3 times, most recently from bb209fc to 7c42865 Compare August 30, 2023 08:34
@AnnaRybkina AnnaRybkina requested a review from magnuh August 30, 2023 08:42
@AnnaRybkina AnnaRybkina changed the base branch from alpha to next August 30, 2023 11:28
@AnnaRybkina AnnaRybkina force-pushed the test-one-more-refactoring-for-buttons branch from 7c42865 to 5b5cbf2 Compare August 30, 2023 11:29
@siljec
Copy link
Contributor

siljec commented Aug 30, 2023

I'm not a huge fan of the fact that we are adding a lot more code to handle this, but I agree that it's nice to avoid to use important to override "same" classes! But the buttons looks good, and I agree that it will be easier to find issues 💪

pnpm-lock.yaml Outdated Show resolved Hide resolved
@AnnaRybkina AnnaRybkina force-pushed the test-one-more-refactoring-for-buttons branch from 50ab671 to 521203d Compare August 31, 2023 07:49
@AnnaRybkina AnnaRybkina merged commit 09c8245 into next Aug 31, 2023
@AnnaRybkina AnnaRybkina deleted the test-one-more-refactoring-for-buttons branch August 31, 2023 13:18
github-actions bot pushed a commit that referenced this pull request Aug 31, 2023
## [1.0.1-next.1](v1.0.0...v1.0.1-next.1) (2023-08-31)

### Bug Fixes

* use new button classes and improve conditions ([#67](#67)) ([09c8245](09c8245))
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.

4 participants