-
Notifications
You must be signed in to change notification settings - Fork 0
VPR-104 fix(a11y): Effort area accessibility improvements (PR 4 of 6) #138
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
base: VPR-104-accessibility-audit-base
Are you sure you want to change the base?
Changes from all commits
769c632
09f5cf8
d617891
f34b005
9739125
c9a25b3
c9d2ed2
c18d518
68869da
ba2010c
3ba08d2
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -10,20 +10,12 @@ | |
| </div> | ||
|
|
||
| <!-- Error state --> | ||
| <q-banner | ||
| <StatusBanner | ||
| v-else-if="loadError" | ||
| class="bg-negative text-white q-mb-md" | ||
| rounded | ||
| role="alert" | ||
| type="error" | ||
| > | ||
| <template #avatar> | ||
| <q-icon | ||
| name="error" | ||
| color="white" | ||
| /> | ||
| </template> | ||
| {{ loadError }} | ||
| </q-banner> | ||
| </StatusBanner> | ||
|
|
||
| <template v-else-if="records.length > 0"> | ||
| <!-- Mobile Card View --> | ||
|
|
@@ -84,7 +76,21 @@ | |
| <div class="text-body2 q-mb-xs"> | ||
| {{ record.effortTypeDescription }} ({{ record.effortTypeId }}) • | ||
| <span :class="{ 'zero-effort-text': record.effortValue === 0 }"> | ||
| <q-icon | ||
| v-if="record.effortValue === 0" | ||
| name="report_problem" | ||
| color="amber-8" | ||
| size="1rem" | ||
| class="q-mr-xs" | ||
| aria-hidden="true" | ||
| /> | ||
|
Comment on lines
+79
to
+86
|
||
| {{ record.effortValue }} {{ record.effortLabel }} | ||
| <span | ||
| v-if="record.effortValue === 0" | ||
| class="sr-only" | ||
| > | ||
| (zero effort) | ||
| </span> | ||
| </span> | ||
| </div> | ||
| <div | ||
|
|
@@ -217,8 +223,22 @@ | |
|
|
||
| <!-- Effort cell with unit label --> | ||
| <template v-else-if="col.name === 'effort'"> | ||
| <q-icon | ||
| v-if="slotProps.row.effortValue === 0" | ||
| name="report_problem" | ||
| color="amber-8" | ||
| size="1rem" | ||
| class="q-mr-xs" | ||
| aria-hidden="true" | ||
| /> | ||
|
Comment on lines
+226
to
+233
|
||
| {{ slotProps.row.effortValue }} | ||
| {{ slotProps.row.effortLabel }} | ||
| <span | ||
| v-if="slotProps.row.effortValue === 0" | ||
| class="sr-only" | ||
| > | ||
| (zero effort) | ||
| </span> | ||
| </template> | ||
|
|
||
| <!-- Actions cell --> | ||
|
|
@@ -279,6 +299,7 @@ | |
| <script setup lang="ts"> | ||
| import { computed, ref } from "vue" | ||
| import type { QTableColumn } from "quasar" | ||
| import StatusBanner from "@/components/StatusBanner.vue" | ||
| import type { CourseEffortRecordDto } from "../types" | ||
| import { useEffortPermissions } from "../composables/use-effort-permissions" | ||
| import "../effort-record-table.css" | ||
|
|
||
Uh oh!
There was an error while loading. Please reload this page.