-
Notifications
You must be signed in to change notification settings - Fork 4.2k
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
Replace __experimentalIsFocusable
with accessibleWhenDisabled
#63107
Replace __experimentalIsFocusable
with accessibleWhenDisabled
#63107
Conversation
The following accounts have interacted with this PR and/or linked issues. I will continue to update these lists as activity occurs. You can also manually ask me to refresh this list by adding the If you're merging code through a pull request on GitHub, copy and paste the following into the bottom of the merge commit message.
To understand the WordPress project's expectations around crediting contributors, please review the Contributor Attribution page in the Core Handbook. |
Size Change: +39 B (0%) Total Size: 1.76 MB
ℹ️ View Unchanged
|
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.
Looks good, thanks 👍
In 406ef77 we handle a few ToolbarButton
instances, because why not? These were the last usages of __experimentalIsFocusable
in production code, so it only made sense to cover them as well IMHO. Feel free to drop the commit if you disagree or if you were planning to address that separately.
On a side note, with the ESLint rule, should we also handle ToolbarButton
and any other button components we know about that also pass restProps
down to Button
? This can totally be done in a separate PR of course.
This reverts commit 406ef77.
* Button: Stabilize `__experimentalIsFocusable` prop * Add changelog * Tweak changelog Co-authored-by: Marin Atanasov <8436925+tyxla@users.noreply.github.com> * Replace `__experimentalIsFocusable` with `accessibleWhenDisabled` (#63107) * Replace `__experimentalIsFocusable` with `accessibleWhenDisabled` * Replace a few more remaining instances * Revert "Replace a few more remaining instances" This reverts commit 406ef77. --------- Co-authored-by: Marin Atanasov <8436925+tyxla@users.noreply.github.com> * Fix new violation --------- Co-authored-by: mirka <0mirka00@git.wordpress.org> Co-authored-by: tyxla <tyxla@git.wordpress.org> Co-authored-by: stokesman <presstoke@git.wordpress.org>
* Button: Stabilize `__experimentalIsFocusable` prop * Add changelog * Tweak changelog Co-authored-by: Marin Atanasov <8436925+tyxla@users.noreply.github.com> * Replace `__experimentalIsFocusable` with `accessibleWhenDisabled` (WordPress#63107) * Replace `__experimentalIsFocusable` with `accessibleWhenDisabled` * Replace a few more remaining instances * Revert "Replace a few more remaining instances" This reverts commit 406ef77. --------- Co-authored-by: Marin Atanasov <8436925+tyxla@users.noreply.github.com> * Fix new violation --------- Co-authored-by: mirka <0mirka00@git.wordpress.org> Co-authored-by: tyxla <tyxla@git.wordpress.org> Co-authored-by: stokesman <presstoke@git.wordpress.org>
Stacked on #62282
What?
Replaces
__experimentalIsFocusable
withaccessibleWhenDisabled
on all existingButton
s.Why?
For #62282 (extracted to this PR for easier review)
How?
Codemod + manual inspection of the code changes.
Testing Instructions
✅ Linter passes