mirror of
https://gerrit.wikimedia.org/r/mediawiki/skins/Vector.git
synced 2024-11-12 01:09:20 +00:00
Add comment to dropdownMenus.js regarding the CHECKBOX_HACK_BUTTON_SELECTOR
Per request [1], a clarifying comment was added explaining that our checkbox hack implementation has drifted from the core's recommendation. [1] https://gerrit.wikimedia.org/r/c/mediawiki/skins/Vector/+/732732/2/resources/skins.vector.js/dropdownMenus.js#7 Bug: T291096 Change-Id: I3a5bc9d463bace11185affbb21320d86fc1c5d99
This commit is contained in:
parent
ea0f0a26fd
commit
7f58c88934
|
@ -4,6 +4,10 @@ var
|
|||
checkboxHack = /** @type {CheckboxHack} */ require( /** @type {string} */( 'mediawiki.page.ready' ) ).checkboxHack,
|
||||
CHECKBOX_HACK_CONTAINER_SELECTOR = '.vector-menu-dropdown',
|
||||
CHECKBOX_HACK_CHECKBOX_SELECTOR = '.vector-menu-checkbox',
|
||||
// In core's checkboxHack.js, it is recommended to use a label element as a
|
||||
// button that toggles the checkbox. In Vector's dropdown menus that use the
|
||||
// Menu.mustache template, a checkbox is used as both the "button" and the
|
||||
// "checkbox".
|
||||
CHECKBOX_HACK_BUTTON_SELECTOR = '.vector-menu-checkbox',
|
||||
CHECKBOX_HACK_TARGET_SELECTOR = '.vector-menu-content';
|
||||
|
||||
|
|
Loading…
Reference in a new issue