Skip to content
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

IOS-9794 VIVO Novo app accessibility: Bottom sheet formats #356

Conversation

dhidalgofadrique
Copy link
Contributor

@dhidalgofadrique dhidalgofadrique commented Apr 10, 2024

🎟️ Jira ticket

IOS-9794 VIVO Novo app accessibility: Bottom sheet formats

🥅 What's the goal?

  1. We need to specify that the bottom sheet close element is a button
  2. We need to specify that each bottom sheet action row is a link

🚧 How do we do it?

Added accessibilityTraits to both elements:

  • .link for ActionRow's
  • .button for backgroundDimmingView

This way VoiceOver will read both elements appending the trait (button or link) at the end

You can find more info about accessibility here: iOS Accessibility

🧪 How can I verify this?

Activate VoiceOver and check that after each element it speaks "link" and after close element speaks "close".

Accessibility_sheets.mp4

NOTE: The language of the trait (link, button) will be the user defined language. The language management will be done in the app by setting the accessibilityLanguage in each OB.

Added AccessibilityElementType enum
…yTraits instead)

Renamed itemAccessibilityLabel to accessibilityLabel
Set accessibilityTraits = .link for ActionRow's
Set accessibilityTraits = .button for backgroundDimmingView in BottomSheetPresentationController
…e accessibility uses the title and the type is added with the accessibilityTraits
@dhidalgofadrique dhidalgofadrique merged commit 1043989 into main Apr 11, 2024
2 checks passed
@dhidalgofadrique dhidalgofadrique deleted the IOS-9794-VIVO-Novo-app-accessibility-Bottom-sheet-formats branch April 11, 2024 10:03
tuentisre pushed a commit that referenced this pull request Apr 11, 2024
# [29.8.0](v29.7.4...v29.8.0) (2024-04-11)

### Features

* **Accessibility:** IOS-9794 VIVO Novo app accessibility: Bottom sheet formats ([#356](#356)) ([1043989](1043989))
@tuentisre
Copy link
Collaborator

🎉 This PR is included in version 29.8.0 🎉

The release is available on GitHub release

Your semantic-release bot 📦🚀

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants