Skip to content

Commit 4151ac5

Browse files
authored
Merge pull request #439 from woocommerce/issue/19-fix-readall-navbar-button
Notifications: Move read-all navbar button to left side
2 parents 8db5f53 + aaddb1b commit 4151ac5

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed

WooCommerce/Classes/ViewRelated/Notifications/NotificationsViewController.swift

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -123,15 +123,15 @@ private extension NotificationsViewController {
123123
/// Setup: NavigationBar Buttons
124124
///
125125
func configureNavigationBarButtons() {
126-
let rightBarButton = UIBarButtonItem(image: Gridicon.iconOfType(.menus),
126+
let leftBarButton = UIBarButtonItem(image: Gridicon.iconOfType(.checkmark),
127127
style: .plain,
128128
target: self,
129129
action: #selector(markAllAsRead))
130-
rightBarButton.tintColor = .white
131-
rightBarButton.accessibilityTraits = .button
132-
rightBarButton.accessibilityLabel = NSLocalizedString("Mark All as Read", comment: "Accessibility label for the Mark All Notifications as Read Button")
133-
rightBarButton.accessibilityHint = NSLocalizedString("Marks Every Notification as Read", comment: "VoiceOver accessibility hint for the Mark All Notifications as Read Action")
134-
navigationItem.rightBarButtonItem = rightBarButton
130+
leftBarButton.tintColor = .white
131+
leftBarButton.accessibilityTraits = .button
132+
leftBarButton.accessibilityLabel = NSLocalizedString("Mark All as Read", comment: "Accessibility label for the Mark All Notifications as Read Button")
133+
leftBarButton.accessibilityHint = NSLocalizedString("Marks Every Notification as Read", comment: "VoiceOver accessibility hint for the Mark All Notifications as Read Action")
134+
navigationItem.leftBarButtonItem = leftBarButton
135135
}
136136

137137
/// Setup: TableView

0 commit comments

Comments
 (0)