googlearchive / paper-slider

A slider à la Material Design
16 stars 18 forks source link

Add aria-labelledby to slider #4

Open ryanflorence opened 10 years ago

ryanflorence commented 10 years ago

http://www.w3.org/TR/wai-aria/states_and_properties#aria-labelledby

This way the user knows what data they are manipulating.

dfreedm commented 10 years ago

This one is complicated by the fact that the slider knob is in a shadowroot, and the knob has all the aria values, and setting aria-label or labelledby on the host element does propagate to the knob.

The slider does not have a built in label because that label could be on any side, and it is easier to make the user make a label that fits their use case.

@alice It would be great to use aria-labelledby="select(:host) to propagate the label to the knob :)