Cody Weaver a4be5b0412
[Slider] Add a11y doc (#4536)
Closes #4290 

Add accessibility document for MDCSlider. Tried to match UISlider as closely as possible for `accessibilityActivate`.
2018-07-16 13:28:12 -04:00

24 lines
809 B
Markdown

## Accessibility
To help ensure your slider is accessible to as many users as possible, please be sure to review the following recommendations:
### `-accessibilityLabel`
Set an appropriate `accessibilityLabel` value for your slider. This should reflect what the slider affects.
#### Swift
```swift
slider.accessibilityLabel = "Volume level"
```
#### Objective - C
```objc
slider.accessibilityLabel = @"Volume level";
```
### Minimum touch size
Sliders currently respect the minimum touch size recomended by the Google Material spec [touch areas should be
at least 48 points high and 48 wide](https://material.io/design/layout/spacing-methods.html#touch-click-targets).
The height of the slider is set to 27 points so make sure there is sufficient space so that touches don't affect other
elements.