Skip to content

Commit

Permalink
Refactor FXIOS-7480 [v120] Add a11y id to bottom sheet close button (#…
Browse files Browse the repository at this point in the history
…16609)

* Add a11y id

* Assign a11y id
  • Loading branch information
thatswinnie authored Sep 27, 2023
1 parent d050b44 commit e3b2b0c
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 0 deletions.
1 change: 1 addition & 0 deletions Client/Application/AccessibilityIdentifiers.swift
Original file line number Diff line number Diff line change
Expand Up @@ -118,6 +118,7 @@ public struct AccessibilityIdentifiers {
struct Shopping {
static let sheetHeaderTitle = "Shopping.Sheet.HeaderTitle"
static let sheetHeaderBetaLabel = "Shopping.Sheet.HeaderBetaLabel"
static let sheetCloseButton = "Shopping.Sheet.CloseButton"

struct NotEnoughReviewsInfoCard {
static let card = "Shopping.NotEnoughReviewsInfoCard.Card"
Expand Down
1 change: 1 addition & 0 deletions Client/Frontend/Fakespot/FakespotViewController.swift
Original file line number Diff line number Diff line change
Expand Up @@ -78,6 +78,7 @@ class FakespotViewController: UIViewController, Themeable, Notifiable, UIAdaptiv
button.setImage(UIImage(named: StandardImageIdentifiers.ExtraLarge.crossCircleFill), for: .normal)
button.addTarget(self, action: #selector(self.closeTapped), for: .touchUpInside)
button.accessibilityLabel = .CloseButtonTitle
button.accessibilityIdentifier = AccessibilityIdentifiers.Shopping.sheetCloseButton
}

// MARK: - Initializers
Expand Down

0 comments on commit e3b2b0c

Please sign in to comment.