Repository navigation
Update CONSTS to direct developers to use role instead of accessibilityRole #31590
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 all commits
977257a
0b1c973
9fbda55
7743c4c
30335de
ce403f1
b72ac43
5811816
911c4b3
f3a8a4e
c2892ec
6931552
35eae47
de4b4c0
b60079b
0639e66
2336f3b
244f634
5da2a42
c21a9c7
a4f0762
cc18c93
0c8e6b4
1214c03
fe947d3
6aff307
054eb86
4ad45b3
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 |
|---|---|---|
|
|
@@ -28,7 +28,7 @@ function AttachmentViewImage({source, file, isAuthTokenRequired, loadComplete, o | |
| onPress={onPress} | ||
| disabled={loadComplete} | ||
| style={[styles.flex1, styles.flexRow, styles.alignSelfStretch]} | ||
| role={CONST.ACCESSIBILITY_ROLE.IMAGEBUTTON} | ||
| accessibilityRole={CONST.ACCESSIBILITY_ROLE.IMAGEBUTTON} | ||
|
trevor-coleman marked this conversation as resolved.
Contributor
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. Wouldn't this throw a deprecation warning? If so, we should either not use it or remove the
Contributor
Author
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. I covered this in the description:
But if you have enough context for this component to suggest what the correct value should be then I can make the change here.
Contributor
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. Hm... I would rather clean it up quick then let it hang around. Would you be available for the cleanup as a follow up PR? |
||
| accessibilityLabel={file.name || translate('attachmentView.unknownFilename')} | ||
| > | ||
| {children} | ||
|
|
||
Uh oh!
There was an error while loading. Please reload this page.