diff --git a/resources/skins.citizen.scripts/checkbox.js b/resources/skins.citizen.scripts/checkbox.js index 0799a51d..961e985c 100644 --- a/resources/skins.citizen.scripts/checkbox.js +++ b/resources/skins.citizen.scripts/checkbox.js @@ -6,10 +6,10 @@ const checkboxHack = require( 'mediawiki.page.ready' ).checkboxHack, - CHECKBOX_HACK_CONTAINER_SELECTOR = '.mw-checkbox-hack-container', - CHECKBOX_HACK_CHECKBOX_SELECTOR = '.mw-checkbox-hack-checkbox', - CHECKBOX_HACK_BUTTON_SELECTOR = '.mw-checkbox-hack-button', - CHECKBOX_HACK_TARGET_SELECTOR = '.mw-checkbox-hack-target'; + CHECKBOX_HACK_CONTAINER_SELECTOR = '.citizen-menu-checkbox-container', + CHECKBOX_HACK_CHECKBOX_SELECTOR = '.citizen-menu-checkbox-checkbox', + CHECKBOX_HACK_BUTTON_SELECTOR = '.citizen-menu-checkbox-button', + CHECKBOX_HACK_TARGET_SELECTOR = '.citizen-menu-checkbox-target'; /** * Set the checked state and fire the 'input' event. diff --git a/resources/skins.citizen.styles/Header.less b/resources/skins.citizen.styles/Header.less index 97082f15..ac12c475 100644 --- a/resources/skins.citizen.styles/Header.less +++ b/resources/skins.citizen.styles/Header.less @@ -84,7 +84,7 @@ justify-content: space-between; gap: var( --space-xxs ); - .mw-checkbox-hack-checkbox:checked { + .citizen-menu-checkbox-checkbox:checked { ~ .citizen-header__button { background-color: var( --background-color-primary--active ); } diff --git a/resources/skins.citizen.styles/Menu.less b/resources/skins.citizen.styles/Menu.less index 3dfa6d3a..523931e9 100644 --- a/resources/skins.citizen.styles/Menu.less +++ b/resources/skins.citizen.styles/Menu.less @@ -34,7 +34,7 @@ /** * Invisible checkbox covering the menu button. */ -.mw-checkbox-hack { +.citizen-menu-checkbox { // Has to be visible to be focusable &-checkbox { position: absolute; @@ -50,7 +50,7 @@ // HACK: Fake focus styles &:focus { & + .citizen-header__button, - & + .mw-checkbox-hack-button { + & + .citizen-menu-checkbox-button { outline: 2px solid var( --color-primary ); outline-offset: 1px; } diff --git a/resources/skins.citizen.styles/Pagetools.less b/resources/skins.citizen.styles/Pagetools.less index 4e00a4b8..330e1022 100644 --- a/resources/skins.citizen.styles/Pagetools.less +++ b/resources/skins.citizen.styles/Pagetools.less @@ -109,7 +109,7 @@ } // TODO: Merge this with header styles - .mw-checkbox-hack-checkbox:checked ~ .page-actions__button { + .citizen-menu-checkbox-checkbox:checked ~ .page-actions__button { background-color: var( --background-color-primary--active ); } } diff --git a/templates/Drawer.mustache b/templates/Drawer.mustache index cc190cd0..97d523cb 100644 --- a/templates/Drawer.mustache +++ b/templates/Drawer.mustache @@ -2,17 +2,17 @@ string msg-citizen-drawer-toggle The label used by the drawer button. string msg-sitetitle the contents of the sitesubtitle message key }} -
+
{{>Drawer__button}} {{! ID needed for a11y and checkbox hack }} -