private function checkboxLink( $checkboxType ) {
return Html::element(
- 'a', [ 'href' => '#', 'class' => 'mw-checkbox-' . $checkboxType ],
+ // CSS classes: mw-checkbox-all, mw-checkbox-none, mw-checkbox-invert
+ 'a', [ 'class' => 'mw-checkbox-' . $checkboxType, 'role' => 'button', 'tabindex' => 0 ],
$this->output->msg( 'checkbox-' . $checkboxType )->text()
);
}
*/
public function getHTML() {
// Select: All, None, Invert
- $links = [];
- $links[] = $this->checkboxLink( 'all' );
- $links[] = $this->checkboxLink( 'none' );
- $links[] = $this->checkboxLink( 'invert' );
+ $links = [
+ $this->checkboxLink( 'all' ),
+ $this->checkboxLink( 'none' ),
+ $this->checkboxLink( 'invert' ),
+ ];
return Html::rawElement( 'div',
[