Skip to content

Commit 82208f1

Browse files
committed
Move “More” a11y label to initializer
1 parent d2793d9 commit 82208f1

2 files changed

Lines changed: 1 addition & 1 deletion

File tree

Aztec/Classes/GUI/FormatBar/FormatBar.swift

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -110,6 +110,7 @@ open class FormatBar: UIView {
110110
let item = FormatBarItem(image: UIImage(), identifier: nil)
111111
self.configureStylesFor(item)
112112

113+
item.accessibilityLabel = NSLocalizedString("More", comment: "Accessibility label for the More button on formatting toolbar.")
113114
item.addTarget(self, action: #selector(handleToggleButtonAction), for: .touchUpInside)
114115
item.addTarget(self, action: #selector(handleButtonTouch), for: .touchDown)
115116

Example/Example/EditorDemoController.swift

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -993,7 +993,6 @@ extension EditorDemoController {
993993
}
994994

995995
toolbar.overflowToggleIcon = Gridicon.iconOfType(.ellipsis)
996-
toolbar.overflowToggleAccessibilityLabel = NSLocalizedString("More", comment: "Accessibility label for the More button on formatting toolbar.")
997996

998997
toolbar.frame = CGRect(x: 0, y: 0, width: view.frame.width, height: 44.0)
999998
toolbar.autoresizingMask = [ .flexibleHeight ]

0 commit comments

Comments
 (0)