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

Remove disabled attribute from button #412

Merged
merged 2 commits into from
Sep 8, 2022

Conversation

MateuszRomek
Copy link
Contributor

@MateuszRomek MateuszRomek commented Sep 6, 2022

Description

Addresses issue with disabled attribute which creates more harm than it should be. Due to that, We run into problems especially with the tooltip component, which gets lost because his child has the disabled attribute.
Even floating-ui recommends to handle disabled elements in that way instead of passing disabled attribute on the button.

Here are good article about why we should avoid disabled buttons https://css-tricks.com/making-disabled-buttons-more-inclusive/

Storybook

https://feature-remove-button-disabled-attr--613a8e945a5665003a05113b.chromatic.com/

Checklist

Obligatory:

  • Self-review
  • Unit & integration tests
  • Storybook cases
  • Design review
  • Functional (QA) review

@MateuszRomek MateuszRomek added the feature New feature or request label Sep 6, 2022
@sgraczyk sgraczyk removed the feature New feature or request label Sep 7, 2022
@sgraczyk sgraczyk requested review from a team, jpyzio123, kstvsko and martagranisz September 7, 2022 06:25
@sgraczyk sgraczyk changed the title Remove disabled attribute from button Remove disabled attribute from Button component Sep 8, 2022
@sgraczyk sgraczyk changed the title Remove disabled attribute from Button component Remove disabled attribute from button Sep 8, 2022
@MateuszRomek MateuszRomek merged commit 89db30f into v1 Sep 8, 2022
@MateuszRomek MateuszRomek deleted the feature/remove-button-disabled-attr branch September 8, 2022 10:57
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