| FazBrowse GitHub Viewer | Trending | | Home |
| Tools: [Download Repo ZIP] [Original HTTPS Page] |
1 parent 0d2d343 commit 37d927b
1 file changed
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -159,6 +159,12 @@ export class ActionBar extends common.ActionBar { | |||
| 159 | 159 | barButtonItem = UIBarButtonItem.alloc().initWithTitleStyleTargetAction(item.text + "", UIBarButtonItemStyle.Plain, tapHandler, "tap"); | |
| 160 | 160 | } | |
| 161 | 161 | ||
| 162 | + if (item.text) { | ||
| 163 | + barButtonItem.isAccessibilityElement = true; | ||
| 164 | + barButtonItem.accessibilityLabel = item.text; | ||
| 165 | + barButtonItem.accessibilityTraits = UIAccessibilityTraitButton; | ||
| 166 | + } | ||
| 167 | + | ||
| 162 | 168 | return barButtonItem; | |
| 163 | 169 | } | |
| 164 | 170 | ||
| Back | FazBrowse Home | New Git URL |
0 commit comments