-
Notifications
You must be signed in to change notification settings - Fork 0
UX-06: Accessibility audit and WCAG-focused remediation pass #604
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
Changes from all commits
595e3d0
d3f7fa5
c8b234a
fda2f39
80fe655
38385de
be61150
11624da
9675dc7
f614350
59b1279
e73248e
178b468
5df95cf
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -1,5 +1,5 @@ | ||
| <template> | ||
| <div class="fixed top-4 right-4 z-50 flex flex-col gap-2 pointer-events-none"> | ||
| <div class="fixed top-4 right-4 z-50 flex flex-col gap-2 pointer-events-none" aria-live="polite" aria-atomic="false" role="status"> | ||
|
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. |
||
| <TransitionGroup name="toast"> | ||
| <div | ||
| v-for="toast in toastStore.toasts" | ||
|
|
@@ -12,9 +12,10 @@ | |
| 'transition-all duration-300', | ||
| toastClass(toast.type), | ||
| ]" | ||
| :role="toast.type === 'error' ? 'alert' : undefined" | ||
|
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Adding |
||
| > | ||
| <!-- Icon --> | ||
| <div class="flex-shrink-0"> | ||
| <div class="flex-shrink-0" aria-hidden="true"> | ||
| <svg | ||
| v-if="toast.type === 'success'" | ||
| class="w-5 h-5" | ||
|
|
||
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -175,7 +175,7 @@ onUnmounted(() => { | |
|
|
||
| <ShellTopbar @open-command-palette="openCommandPalette" /> | ||
|
|
||
| <main class="td-content" role="main"> | ||
| <main id="td-main-content" class="td-content"> | ||
|
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. While the |
||
| <router-view /> | ||
| </main> | ||
| </div> | ||
|
|
||
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -345,7 +345,9 @@ useKeyboardShortcuts([ | |
| <!-- Create Column Form --> | ||
| <div v-if="showColumnForm" class="td-column-form"> | ||
| <form @submit.prevent="createColumn" class="td-column-form__row"> | ||
| <label for="td-new-column-name" class="sr-only">Column name</label> | ||
| <input | ||
| id="td-new-column-name" | ||
| v-model="newColumnName" | ||
| type="text" | ||
| placeholder="Column name" | ||
|
|
@@ -381,13 +383,15 @@ useKeyboardShortcuts([ | |
| /> | ||
|
|
||
| <!-- Loading State --> | ||
| <div v-if="boardStore.loading && !boardStore.currentBoard" class="flex justify-center items-center py-12"> | ||
| <div class="inline-block animate-spin rounded-full h-12 w-12 border-b-2 border-primary-container"></div> | ||
| <div v-if="boardStore.loading && !boardStore.currentBoard" class="flex justify-center items-center py-12" aria-live="polite"> | ||
| <div class="inline-block animate-spin rounded-full h-12 w-12 border-b-2 border-primary-container" role="status" aria-label="Loading board"> | ||
|
Comment on lines
+386
to
+387
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. The |
||
| <span class="sr-only">Loading board...</span> | ||
| </div> | ||
| </div> | ||
|
|
||
| <!-- Error State --> | ||
| <div v-else-if="boardStore.error" class="max-w-7xl mx-auto px-4 py-8"> | ||
| <div class="bg-error-container/20 border border-error/20 rounded-lg p-4 text-error"> | ||
| <div class="bg-error-container/20 border border-error/20 rounded-lg p-4 text-error" role="alert"> | ||
| {{ boardStore.error }} | ||
| </div> | ||
| </div> | ||
|
|
||
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The
max-warningsthreshold is set to 200, which is significantly higher than the current count of 146 warnings mentioned in the PR description. To prevent the introduction of new accessibility issues or other lint violations, it is better to set this threshold closer to the current count (e.g., 150).