Improve collapsible HTMLForm styling (and accessibility, slightly)
authorBartosz Dziewoński <matma.rex@gmail.com>
Tue, 28 May 2019 22:22:18 +0000 (00:22 +0200)
committerVolker E <volker.e@wikimedia.org>
Mon, 23 Sep 2019 17:57:26 +0000 (10:57 -0700)
commit97eab7f35b0801cda02c96f65bdb87313ebd43ac
tree681a77b030661b65d14c39409db96e4582f1d38b
parent82bd6b026ef6ecb7f2fe15acaa40c608680dfff1
Improve collapsible HTMLForm styling (and accessibility, slightly)

Previously the form was only collapsible/expandable using the small
link-button on the far right. Now you can click on the entire header
to do it, and it has an appropriate pretty icon.

We add appropriate ARIA `role` and textual labels. Together with
recently added `toggleARIA` option of jquery.makeCollapsible in
Ic457bda58e56f we feature a screen reader workable output.

Bug: T222904
Change-Id: I6964296bc6870550478de662d21f12a1fc084c15
autoload.php
includes/htmlform/CollapsibleFieldsetLayout.php [new file with mode: 0644]
includes/htmlform/OOUIHTMLForm.php
resources/src/jquery/jquery.makeCollapsible.styles.less
resources/src/mediawiki.htmlform.ooui.styles.less