-
Notifications
You must be signed in to change notification settings - Fork 3k
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
[HOLD for payment 2023-07-21] [HOLD for payment 2023-07-20] [Accessible Pressables] Add new ESLint rules to enforce use of accessible pressable components #17004
Comments
This comment was marked as resolved.
This comment was marked as resolved.
cc @robertKozik |
@roryabraham, this Monthly task hasn't been acted upon in 6 weeks; closing. If you disagree, feel encouraged to reopen it -- but pick your least important issue to close instead. |
@roryabraham There is still an unmerged PR (draft to be precise) from @Skalakid, looks like project automation close it sooner as it should |
@Skalakid do you think the migration's at the point where we can disable new non-accessible pressables going forward? |
@roryabraham I have one more PR to be merged, but I think yes. I will open my PR #20363 |
@roryabraham Okay, so I fixed all ESlint errors connected with accessibility. While doing it I found out that there are a few new components that are using "old" Pressables:
I think we can move forward with the PR! What do you think bout it @robertKozik? |
Yeah, we need to cut the flow of the new |
Hi @roryabraham, I just found a bug in our ESlint rules. We have 3 To make this PR work I moved the Pressable rule to the bottom, but this is only a workaround. Should I fix this issue in my PR? I think it can be solved by adding custom eslint rules |
@Skalakid @roryabraham I also noticed this bug in Setup App for TypeScript #20179. My workaround for now is to group imports together with a longer description: {
name: 'react-native',
importNames: ['useWindowDimensions', 'TouchableOpacity', 'TouchableWithoutFeedback', 'TouchableNativeFeedback', 'TouchableHighlight', 'StatusBar'],
message: [
"For 'useWindowDimensions', please use 'src/hooks/useWindowDimensions' instead.",
"For 'TouchableOpacity', 'TouchableWithoutFeedback', 'TouchableNativeFeedback', 'TouchableHighlight', please use 'PressableWithFeedback' and/or 'PressableWithoutFeedback' from 'src/components/Pressable' instead.",
"For 'StatusBar', please use 'src/libs/StatusBar' instead.",
].join('\n'),
}, This way all listed react-native imports are restricted. |
Thanks @blazejkustra. I've hired someone to implement that workaround (they beat you to it on #22459) |
|
The solution for this issue has been 🚀 deployed to production 🚀 in version 1.3.39-11 and is now subject to a 7-day regression period 📆. Here is the list of pull requests that resolve this issue: If no regressions arise, payment will be issued on 2023-07-20. 🎊 After the hold period is over and BZ checklist items are completed, please complete any of the applicable payments for this issue, and check them off once done.
As a reminder, here are the bonuses/penalties that should be applied for any External issue:
|
The solution for this issue has been 🚀 deployed to production 🚀 in version 1.3.40-5 and is now subject to a 7-day regression period 📆. Here is the list of pull requests that resolve this issue: If no regressions arise, payment will be issued on 2023-07-21. 🎊 After the hold period is over and BZ checklist items are completed, please complete any of the applicable payments for this issue, and check them off once done.
As a reminder, here are the bonuses/penalties that should be applied for any External issue:
|
6 days overdue. This is scarier than being forced to listen to Vogon poetry! |
12 days overdue. Walking. Toward. The. Light... |
This is done |
HOLD on:
Design doc section
https://docs.google.com/document/d/1yHHs4IfaMxB2q7eW8Hyt7ew4rNtY6HdduPKdf-Q2ZxE/edit#bookmark=id.qrj5v8pfxn22
The text was updated successfully, but these errors were encountered: