1
0
mirror of https://github.com/videojs/video.js.git synced 2024-12-29 02:57:21 +02:00
video.js/lang
Gary Katsevman 0d0dea4da8 feat: fix accessibility of the captions setting dialog (#4050)
This fixes a lot of the issues from #2746 by making the dialog inherit from our actual ModalDialog which now has tab focus trapping.

The Captions Settings dialog has some accessibility issues:
- Field labels and fields are not explicitly associated
- Keyboard focus does not move into the dialog when it is opened
- Keyboard focus is not trapped inside the dialog while it is open
- Keyboard focus does not return to the control which opened the dialog when it is closed
- The extent (top and bottom) of the dialog is not indicated to screen readers
- The dialog cannot be closed with the Esc key
- The meaning of '---' in the select fields is not clear
- The control to close the dialog is labeled "Done" rather than "Close"
- The purpose of the "Defaults" button may not be obvious, and its effect may not be apparent to screen reader users
- Focus highlighting (outline) on the Default and Done buttons is *very* hard to see
- Pressing the Done button doesn’t seem to have the same effect as pressing the Close (x) button; does it trigger the same focus movement
- This requirement to move it back to the triggering element is tricky, since clicking on that item in the CC menu dismisses the CC menu. I need to think about this a little more - either the menu should open again, or the focus should go to the main CC Menu Button
- The focus outline on the whole dialog goes too far to the left (all the way to the edge of the video window, not just to the edge of the dialog)

Fixes #2746.
2017-02-21 15:58:04 -05:00
..
ar.json @mister-ben updated Arabic language files. closes #3225 2016-03-29 17:28:04 -04:00
ba.json @mister-ben updated Umuted to Unmute in lang files. closes #3053 2016-02-03 16:15:16 -05:00
bg.json @mister-ben updated Umuted to Unmute in lang files. closes #3053 2016-02-03 16:15:16 -05:00
ca.json @mister-ben updated Umuted to Unmute in lang files. closes #3053 2016-02-03 16:15:16 -05:00
cs.json @mister-ben updated Umuted to Unmute in lang files. closes #3053 2016-02-03 16:15:16 -05:00
da.json @mister-ben updated Umuted to Unmute in lang files. closes #3053 2016-02-03 16:15:16 -05:00
de.json feat: fix accessibility of the captions setting dialog (#4050) 2017-02-21 15:58:04 -05:00
el.json feat(lang): add missing translations to el.json 2016-09-28 18:20:40 -04:00
en.json feat: fix accessibility of the captions setting dialog (#4050) 2017-02-21 15:58:04 -05:00
es.json feat(lang): update es.json (#3984) 2017-02-03 16:31:23 -05:00
fa.json @Nipoto added fa.json (farsi/persian lang file). closes #3116 2016-02-19 11:48:54 -05:00
fi.json @mister-ben updated Umuted to Unmute in lang files. closes #3053 2016-02-03 16:15:16 -05:00
fr.json feat: fix accessibility of the captions setting dialog (#4050) 2017-02-21 15:58:04 -05:00
hr.json @mister-ben updated Umuted to Unmute in lang files. closes #3053 2016-02-03 16:15:16 -05:00
hu.json @mister-ben updated Umuted to Unmute in lang files. closes #3053 2016-02-03 16:15:16 -05:00
it.json @mister-ben updated Umuted to Unmute in lang files. closes #3053 2016-02-03 16:15:16 -05:00
ja.json @mister-ben updated Umuted to Unmute in lang files. closes #3053 2016-02-03 16:15:16 -05:00
ko.json @mister-ben updated Umuted to Unmute in lang files. closes #3053 2016-02-03 16:15:16 -05:00
nb.json @mister-ben updated Umuted to Unmute in lang files. closes #3053 2016-02-03 16:15:16 -05:00
nl.json @nickygerritsen Update Dutch language file. closes #3297 2016-05-17 12:14:07 +02:00
nn.json @mister-ben updated Umuted to Unmute in lang files. closes #3053 2016-02-03 16:15:16 -05:00
pl.json @kamilbrenk Added lang: pl.json. closes #3127 2016-03-25 14:20:06 -04:00
pt-BR.json @bklava updated pt-BR language file. closes #3373 2016-06-27 22:21:53 -04:00
pt-PT.json feat(lang): add European Portuguese translation (#3955) 2017-01-24 15:03:05 -05:00
ru.json feat(lang): update ru.json (#3654) 2016-11-03 16:05:33 -04:00
sr.json @mister-ben updated Umuted to Unmute in lang files. closes #3053 2016-02-03 16:15:16 -05:00
sv.json @mister-ben updated Umuted to Unmute in lang files. closes #3053 2016-02-03 16:15:16 -05:00
tr.json feat: fix accessibility of the captions setting dialog (#4050) 2017-02-21 15:58:04 -05:00
uk.json feat(lang): update uk.json (#3675) 2016-11-03 16:07:49 -04:00
vi.json feat(lang): update Vietnamese lang file (#3964) 2017-01-24 15:00:19 -05:00
zh-CN.json @mister-ben updated Umuted to Unmute in lang files. closes #3053 2016-02-03 16:15:16 -05:00
zh-TW.json feat(lang): Complete work translated into traditional Chinese (#3718) 2016-11-03 16:00:29 -04:00