-
Notifications
You must be signed in to change notification settings - Fork 944
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[TabBarView] Add accessibility label (#7727)
This adds the `accessibilityLabel` to MDCTabBarView, this falls back to the titleLabel.text if the accessibility label isn't set. This has been tested on a device. ## Testing Steps to reproduce 1. Update the [example](https://github.com/material-components/material-components-ios/blob/develop/components/Tabs/examples/MDCTabBarViewTypicalExampleViewController.m) to have a custom `accessibilityLabel` for one of the tabBarItems ```objc item1.accessibilityLabel = @"Hello world"; ``` 2. Select the item with Voiceover on 3. Navigate to the other items with titles but no custom value.
- Loading branch information
Showing
2 changed files
with
17 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters