-
Notifications
You must be signed in to change notification settings - Fork 148
chore(Upgrade guide): removed verbiage on button aria-disabled #4494
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
Changes from 2 commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change | ||||||||
|---|---|---|---|---|---|---|---|---|---|---|
|
|
@@ -172,8 +172,8 @@ If you have previously implemented any breakpoint logic based on a pixel value, | |||||||||
| #### Button | ||||||||||
|
|
||||||||||
| 1. *Cannot find aria-disabled* | ||||||||||
| - **Cause:** We changed the `isDisabled` prop to assign a value for `disabled`, but none for `aria-disabled`. | ||||||||||
| - **Fix:** Remove tests that look for `aria-disabled` in buttons. | ||||||||||
| - **Cause:** We changed button's `isDisabled` prop to assign a value for `disabled`, but none for `aria-disabled` - except for when the `component` prop is passed anything other than "button" as a value. Additionally, `aria-disabled` will now only render when true. | ||||||||||
| - **Fix:** Remove tests that look for `aria-disabled` in buttons when the expectation is for it to be false, or to match `isDisabled` when `component="button"`. | ||||||||||
|
Collaborator
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more.
Suggested change
I'm not sure if I'm correctly interpreting the end of the sentence. I took it like there are 2 instances where you should remove these tests (the suggestion above and also below) I can also interpret it like this:
|
||||||||||
|
|
||||||||||
| 1. *Cannot find button attributes when using byText* | ||||||||||
| - **Cause:** We added a wrapping `div` around button text. The RTL `byText` query returns that wrapper instead of the button element itself, where button's attributes live. | ||||||||||
|
|
@@ -199,4 +199,4 @@ Reach out to us on Slack | |||||||||
| Ask a question in GitHub Discussions | ||||||||||
| </Button> | ||||||||||
|
|
||||||||||
| **Note:** If you use a custom solution to replicate PatternFly styling (without using PatternFly components), then your product will need to be re-skinned. This may be a large undertaking, so we encourage you to get help from the PatternFly team. | ||||||||||
| **Note:** If you use a custom solution to replicate PatternFly styling (without using PatternFly components), then your product will need to be re-skinned. This may be a large undertaking, so we encourage you to get help from the PatternFly team. | ||||||||||
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.