-
Notifications
You must be signed in to change notification settings - Fork 110
Improve voice over labels and actions #726
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
Conversation
SDK Size
|
d12819b
to
761737c
Compare
761737c
to
51e5815
Compare
51e5815
to
f72d4ee
Compare
.padding(.all, 8) | ||
Spacer() | ||
} | ||
.accessibilityAddTraits(.isHeader) |
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.
VO reads: "22 Jan, header". Otherwise it would be hard to know what the date is about.
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 to me! Seems like some of the e2e tests broke though, pls check this before merging.
|
||
static func files(in messageCell: XCUIElement) -> XCUIElementQuery { | ||
messageCell.images.matching(NSPredicate(format: "identifier LIKE 'FileAttachmentsContainer'")) | ||
messageCell.buttons.matching(NSPredicate(format: "identifier LIKE 'FileAttachmentsContainer'")) |
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.
Added accessibilityAction which changes elements to buttons
Element subtree:
→Other, 0x106509d10, {{4.0, 670.8}, {294.2, 89.0}}, identifier: 'MessageContainerView'
Other, 0x106509e30, {{4.0, 723.7}, {36.0, 36.0}}, identifier: 'MessageAvatarView'
Image, 0x106509f50, {{4.0, 723.7}, {36.0, 36.0}}
Other, 0x10650a070, {{47.5, 670.8}, {250.7, 69.0}}, identifier: 'MessageView'
Button, 0x10650a190, {{47.5, 670.8}, {250.7, 69.0}}, identifier: 'FileAttachmentsContainer', label: 'file_1, 123 KB'
Image, 0x10650a2b0, {{60.0, 685.3}, {34.0, 40.0}}
StaticText, 0x10650a3d0, {{102.0, 683.3}, {40.3, 20.3}}, label: 'file_1'
StaticText, 0x10650a4f0, {{102.0, 711.7}, {42.3, 15.7}}, label: '123 KB'
StaticText, 0x10650a610, {{48.0, 744.1}, {98.0, 15.7}}, identifier: 'MessageAuthorAndDateView', label: 'Han Solo, Sent at 10:07'
StaticText, 0x10650a730, {{48.0, 744.1}, {56.7, 15.7}}, identifier: 'MessageAuthorView', label: 'Han Solo'
StaticText, 0x10650a850, {{112.7, 744.1}, {33.3, 15.7}}, identifier: 'MessageDateView', label: 'Sent at 10:07'
|
🔗 Issue Link
Resolves IOS-641
🎯 Goal
Improve voice over by hiding decorative images, adding missing labels, and accessibility actions
🛠 Implementation
Reviewed common views with a focus on decorative images, confusing or missing labels, and adding accessibility actions for cases we have used tap gestures only. This PR just focused on before mentioned areas for making the basic usage better.
🧪 Testing
🎨 Changes
Add relevant screenshots or videos showcasing the changes.
☑️ Checklist