TitleOptionWidget: don't subvert OptionWidget's tabindex
authorDavid Lynch <dlynch@wikimedia.org>
Tue, 5 Jul 2016 16:24:04 +0000 (11:24 -0500)
committerDavid Lynch <dlynch@wikimedia.org>
Tue, 5 Jul 2016 17:08:10 +0000 (12:08 -0500)
commitdfeefec1f0eb4d64ab3e0421afce5a7b0fca18fd
tree854ff092c1df67b36948da76c592d9a3152cc2c7
parent028d7a0891b85a0eb07a9404b0704a7780938b37
TitleOptionWidget: don't subvert OptionWidget's tabindex

OptionWidget takes steps to not interfere in the tab order. TitleOptionWidget
uses links as its labels, which has a side-effect of reintroducing a tab-
focusable element into the OptionWidget. Explicitly set tabindex="-1" on these
links, to maintain the OptionWidget behavior.

Bug: T129792
Change-Id: Ia6b1361e7183e253b7abc58037f007936dfa60ff
resources/src/mediawiki.widgets/mw.widgets.TitleOptionWidget.js