Merge "RCFilters: Prevent live update fetch if model is in conflict"
[lhc/web/wiklou.git] / includes / ListToggle.php
index dfa1763..7a5fd9a 100644 (file)
@@ -41,7 +41,8 @@ class ListToggle {
 
        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()
                );
        }
@@ -51,10 +52,11 @@ class ListToggle {
         */
        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',
                        [