mirror of
https://gerrit.wikimedia.org/r/mediawiki/skins/Vector.git
synced 2024-11-24 15:53:46 +00:00
Merge "Update CheckboxHack interface for future placement of aria-expanded
on label button"
This commit is contained in:
commit
a14e22fac4
4
resources/CheckboxHack.d.ts
vendored
4
resources/CheckboxHack.d.ts
vendored
|
@ -1,6 +1,6 @@
|
|||
interface CheckboxHack {
|
||||
updateAriaExpanded(checkbox: HTMLInputElement): void;
|
||||
bindUpdateAriaExpandedOnInput(checkbox: HTMLInputElement): CheckboxHackListeners;
|
||||
updateAriaExpanded(checkbox: HTMLInputElement, button: HTMLElement): void;
|
||||
bindUpdateAriaExpandedOnInput(checkbox: HTMLInputElement, button: HTMLElement): CheckboxHackListeners;
|
||||
bindToggleOnClick(checkbox: HTMLInputElement, button: HTMLElement): CheckboxHackListeners;
|
||||
bindDismissOnClickOutside(window: Window, checkbox: HTMLInputElement, button: HTMLElement, target: Node): CheckboxHackListeners;
|
||||
bindDismissOnFocusLoss(window: Window, checkbox: HTMLInputElement, button: HTMLElement, target: Node): CheckboxHackListeners;
|
||||
|
|
|
@ -46,9 +46,9 @@ function initSidebar( document ) {
|
|||
var button = document.getElementById( 'mw-sidebar-button' );
|
||||
if ( checkbox instanceof HTMLInputElement && button ) {
|
||||
checkboxHack.bindToggleOnClick( checkbox, button );
|
||||
checkboxHack.bindUpdateAriaExpandedOnInput( checkbox );
|
||||
checkboxHack.bindUpdateAriaExpandedOnInput( checkbox, button );
|
||||
|
||||
checkboxHack.updateAriaExpanded( checkbox );
|
||||
checkboxHack.updateAriaExpanded( checkbox, button );
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue