File tree Expand file tree Collapse file tree 1 file changed +15
-0
lines changed
WooCommerce/Classes/ViewRelated/Orders/Cells Expand file tree Collapse file tree 1 file changed +15
-0
lines changed Original file line number Diff line number Diff line change @@ -115,9 +115,24 @@ private extension SummaryTableViewCell {
115115 updateStatusButton. setImage ( pencilIcon, for: . normal)
116116
117117 updateStatusButton. addTarget ( self , action: #selector( editWasTapped) , for: . touchUpInside)
118+
119+ configureIconForVoiceOver ( )
118120 }
119121
120122 @objc func editWasTapped( ) {
121123 onPencilTouchUp ? ( )
122124 }
123125}
126+
127+
128+ /// MARK: - VoiceOver
129+ ///
130+ private extension SummaryTableViewCell {
131+ func configureIconForVoiceOver( ) {
132+ updateStatusButton. accessibilityLabel = NSLocalizedString ( " Update Order Status " ,
133+ comment: " Accessibility label for the button that allows updating the order status in Order Details View " )
134+ updateStatusButton. accessibilityTraits = . button
135+ updateStatusButton. accessibilityHint = NSLocalizedString ( " Opens a list of available statuses. " ,
136+ comment: " Accessibility hint for the button that allows updating the order status in Order Details View " )
137+ }
138+ }
You can’t perform that action at this time.
0 commit comments