seiyria / bootstrap-slider

A slider control for Bootstrap 3 & 4.
http://seiyria.github.io/bootstrap-slider/
Other
3k stars 1.14k forks source link

wai-aria : slider need aria-labelled-by or aria-label #920

Closed Shnoulle closed 5 years ago

Shnoulle commented 5 years ago

Issues : wai-aria-practice for slider

If the slider has a visible label, it is referenced by aria-labelledby on the slider element. Otherwise, the slider element has a label provided by aria-label.

There are system to set it after, but it can be great to have directly in options.

Option can be label or labelled-by . Don't think need to get a default if original input have a label ?

Shnoulle commented 5 years ago

Updated … label on the slider : https://jsfiddle.net/2uLegs98/

jespirit commented 5 years ago

You can set an option for labelledby for the slider thumb(s).

https://github.com/seiyria/bootstrap-slider#options

image

Shnoulle commented 5 years ago

Oups … sorry

jsfiddle : https://jsfiddle.net/3nts2khj/