Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
- Notifications
You must be signed in to change notification settings - Fork 19
WebAIM accessibility fixes#748
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Uh oh!
There was an error while loading. Please reload this page.
Changes from all commits
File filter
Filter by extension
Conversations
Uh oh!
There was an error while loading. Please reload this page.
Jump to
Uh oh!
There was an error while loading. Please reload this page.
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -121,6 +121,9 @@ export async function setLanguage(language) { | ||
| // Update workspace search placeholder and toolbar button | ||
| window.flockWorkspaceSearch?.setSearchPlaceholder?.(translate('workspace_search_placeholder')); | ||
| window.flockWorkspaceSearch?.inputElement?.setAttribute('aria-label', translate('workspace_search_placeholder')); | ||
coderabbitai[bot] marked this conversation as resolved.
Uh oh!There was an error while loading. Please reload this page. | ||
| window.flockRefreshMobileWorkspaceSearchLabels?.(); | ||
| window.flockRefreshCommentTextareaLabels?.(); | ||
| const wsSearchBtn = document.getElementById('workspaceSearchBtn'); | ||
| if (wsSearchBtn) { | ||
| const label = translate('workspace_search_placeholder'); | ||
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -661,6 +661,8 @@ export function initContextMenus(workspace) { | ||
| const blockToolbar = document.createElement('div'); | ||
| blockToolbar.className = 'fc-block-toolbar'; | ||
| blockToolbar.setAttribute('role', 'toolbar'); | ||
| blockToolbar.setAttribute('aria-hidden', 'true'); | ||
coderabbitai[bot] marked this conversation as resolved.
Uh oh!There was an error while loading. Please reload this page. | ||
| blockToolbar.inert = true; | ||
| document.body.appendChild(blockToolbar); | ||
| // Keyboard-only overlay of shortcut-letter badges, one per visible button. | ||
| @@ -1108,6 +1110,8 @@ export function initContextMenus(workspace) { | ||
| : getToolbarLabel('view_in_canvas', 'View in canvas') | ||
| ); | ||
| blockToolbar.classList.add('visible'); | ||
| blockToolbar.removeAttribute('aria-hidden'); | ||
| blockToolbar.inert = false; | ||
| // Clear any stale badges from a previous keyboard selection; in keyboard | ||
| // mode positionBlockToolbar() draws fresh ones (it also re-runs on block | ||
| // move / viewport change to keep them aligned with the buttons). | ||
| @@ -1124,6 +1128,8 @@ export function initContextMenus(workspace) { | ||
| toolbarBlock = null; | ||
| toolbarKeyboardMode = false; | ||
| blockToolbar.classList.remove('visible'); | ||
| blockToolbar.setAttribute('aria-hidden', 'true'); | ||
| blockToolbar.inert = true; | ||
| clearBadges(); | ||
| } | ||
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.