Skip to content

Commit

Permalink
Add accessibility for MultilineCommandBarDemo (#2058)
Browse files Browse the repository at this point in the history
  • Loading branch information
mischreiber authored Jul 10, 2024
1 parent f4d271b commit 7d00d6a
Showing 1 changed file with 3 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,8 @@ class MultilineCommandBarDemoController: DemoController {
return CommandBarItem(iconImage: nil, title: command.title, titleFont: command.titleFont)
default:
return CommandBarItem(
iconImage: command.iconImage
iconImage: command.iconImage,
accessibilityLabel: command.rawValue
)
}
}
Expand Down Expand Up @@ -66,7 +67,7 @@ class MultilineCommandBarDemoController: DemoController {
return MultilineCommandBar(compactRows: compactRows, regularRows: regularRows)
}()

enum Command: CaseIterable {
enum Command: String, CaseIterable {
case heading1
case heading2
case heading3
Expand Down

0 comments on commit 7d00d6a

Please sign in to comment.