Skip to content

Commit

Permalink
feat(Accessibility): IOS-9794 VIVO Novo app accessibility: Bottom she…
Browse files Browse the repository at this point in the history
…et formats (#356)

* Added accessibility label to ActionListItem
Added AccessibilityElementType enum

* Set AccessibilityElementType as public

* Deleted AccessibilityElementType (no longer used, used UIAccessibilityTraits instead)
Renamed itemAccessibilityLabel to accessibilityLabel
Set accessibilityTraits = .link for ActionRow's
Set accessibilityTraits = .button for backgroundDimmingView in BottomSheetPresentationController

* Deleted accessibilityLabel from ActionRow. No longer needed due to the accessibility uses the title and the type is added with the accessibilityTraits
  • Loading branch information
dhidalgofadrique committed Apr 11, 2024
1 parent 0deca61 commit 1043989
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,7 @@ final class BottomSheetPresentationController: UIPresentationController {

view.isAccessibilityElement = true
view.accessibilityLabel = backgroundViewAccessibilityLabel
view.accessibilityTraits = .button
view.accessibilityEscape = { [weak self] in
self?.presentedViewController.dismiss(animated: true)
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -46,6 +46,7 @@ private extension ActionRow {
layoutViews()

titleLabel.text = item.title
titleLabel.accessibilityTraits = .link

let imageTintColor: UIColor

Expand Down

0 comments on commit 1043989

Please sign in to comment.