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): apply external styles when disabled #2060

Merged
merged 1 commit into from
Sep 26, 2024

Conversation

booc0mtaco
Copy link
Contributor

@booc0mtaco booc0mtaco commented Sep 26, 2024

Make sure that, when Button is used, any utility classes applied to the button get applied to the wrapper (e.g., positioning, etc.)

Test Plan:

  • Wrote/updated automated tests
  • CI tests / new tests are not applicable
  • Manually tested my changes, and here are the details:

- apply passed in class names to disabled wrapper, not the actual button
@booc0mtaco booc0mtaco requested a review from a team September 26, 2024 16:51
Copy link

size-limit report 📦

Path Size
components 89.33 KB (+0.02% 🔺)
styles 27.22 KB (0%)

Copy link

codecov bot commented Sep 26, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 97.44%. Comparing base (2d6ca70) to head (8a4778c).

Additional details and impacted files
@@           Coverage Diff           @@
##             next    #2060   +/-   ##
=======================================
  Coverage   97.44%   97.44%           
=======================================
  Files         109      109           
  Lines        2618     2619    +1     
  Branches      668      669    +1     
=======================================
+ Hits         2551     2552    +1     
  Misses         65       65           
  Partials        2        2           
Flag Coverage Δ
97.44% <100.00%> (+<0.01%) ⬆️

Flags with carried forward coverage won't be shown. Click here to find out more.

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

@booc0mtaco booc0mtaco merged commit e762d8b into next Sep 26, 2024
10 checks passed
@booc0mtaco booc0mtaco deleted the aholloway/x-update-disabled-button-classname branch September 26, 2024 20:09
@booc0mtaco booc0mtaco mentioned this pull request Sep 26, 2024
booc0mtaco added a commit that referenced this pull request Sep 27, 2024
## [15.4.0](v15.3.1...v15.4.0) (2024-09-26)

[Storybook](https://61313967cde49b003ae2a860-sdpxmjxjai.chromatic.com/)

### Features

* **Button:** support for not-allowed cursor when disabled ([#2052](#2052)) ([46cb9f6](46cb9f6))
* **DataTable:** introduce 1.0 component ([#2050](#2050)) ([ffd0e82](ffd0e82)), closes [#2055](#2055)


### Bug Fixes

* **Button:** apply external styles when disabled ([#2060](#2060)) ([e762d8b](e762d8b))
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