vpat 8: make window buttons not focusable
Minimize, maximize, close, etc. window buttons are generally not accessible for focus. They can get focused on mac with voiceover enabled which can be confusing. Added aria-hidden attribute to prevent voiceover from placing the cursor on them.
This commit is contained in:
parent
54382475be
commit
34198f3573
2 changed files with 8 additions and 0 deletions
|
@ -353,21 +353,25 @@
|
|||
titlebar-btn="min"
|
||||
oncommand="window.minimize();"
|
||||
data-l10n-id="browser-window-minimize-button"
|
||||
aria-hidden="true"
|
||||
/>
|
||||
<toolbarbutton class="titlebar-button titlebar-max"
|
||||
titlebar-btn="max"
|
||||
oncommand="window.maximize();"
|
||||
data-l10n-id="browser-window-maximize-button"
|
||||
aria-hidden="true"
|
||||
/>
|
||||
<toolbarbutton class="titlebar-button titlebar-restore"
|
||||
titlebar-btn="max"
|
||||
oncommand="window.fullScreen ? BrowserFullScreen() : window.restore();"
|
||||
data-l10n-id="browser-window-restore-down-button"
|
||||
aria-hidden="true"
|
||||
/>
|
||||
<toolbarbutton class="titlebar-button titlebar-close"
|
||||
titlebar-btn="close"
|
||||
oncommand="window.close();"
|
||||
data-l10n-id="browser-window-close-button"
|
||||
aria-hidden="true"
|
||||
/>
|
||||
</hbox>
|
||||
</vbox>
|
||||
|
|
|
@ -802,18 +802,22 @@
|
|||
<toolbarbutton class="titlebar-button titlebar-min"
|
||||
oncommand="window.minimize();"
|
||||
data-l10n-id="browser-window-minimize-button"
|
||||
aria-hidden="true"
|
||||
/>
|
||||
<toolbarbutton class="titlebar-button titlebar-max"
|
||||
oncommand="window.maximize();"
|
||||
data-l10n-id="browser-window-maximize-button"
|
||||
aria-hidden="true"
|
||||
/>
|
||||
<toolbarbutton class="titlebar-button titlebar-restore"
|
||||
oncommand="window.fullScreen ? BrowserFullScreen() : window.restore();"
|
||||
data-l10n-id="browser-window-restore-down-button"
|
||||
aria-hidden="true"
|
||||
/>
|
||||
<toolbarbutton class="titlebar-button titlebar-close"
|
||||
oncommand="window.close();"
|
||||
data-l10n-id="browser-window-close-button"
|
||||
aria-hidden="true"
|
||||
/>
|
||||
</hbox>
|
||||
</vbox>
|
||||
|
|
Loading…
Reference in a new issue