material-components_materia.../components/Slider/docs/differences-from-uislider.md
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

23 lines
626 B
Markdown

### Differences from UISlider
Does not have api to:
- set right and left icons
- set the thumb image
- set the right and left track images (for a custom track)
- set the right (background track) color
Same features:
- set color for thumb via @c thumbColor
- set color of track via @c trackColor
New features:
- making the slider a snap to discrete values via property numberOfDiscreteValues
#### `-accessibilityActivate`
Our implementation closely resembles what UISlider does but it's not an exact match. On an
`accessibilityActivate` we move one sixth of the amount between the current value and the midpoint value.