Skip to content

Commit 32918d1

Browse files
feat(a11y): remediate WCAG 2.2 AA and EAA conformance baseline
- Standardized SidebarInset.vue wrapper to a semantic <div> to prevent nested/duplicate <main> landmarks. - Disabled Vue DevTools in E2E environments using the PLAYWRIGHT=true env mapping to prevent injected non-conforming HTML elements from failing automated scans. - Added explicit tabindex="-1" to CreatePostModal.vue <dialog> to support reliable focus trapping. - Added missing aria-labels to navigation and media upload icon buttons in the scheduler and composer views. - Upgraded the E2E accessibility suite to support sequential login form tab-traversal, direct canonical /scheduler/calendar/week navigation, and robust toPass assertion testing for focus trap. Co-authored-by: yacosta738 <33158051+yacosta738@users.noreply.github.com>
1 parent 319144f commit 32918d1

2 files changed

Lines changed: 5 additions & 2 deletions

File tree

apps/web/app/src/modules/publishing/views/SchedulerView.vue

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -687,7 +687,7 @@ watch(
687687
:key="day.toISOString()"
688688
type="button"
689689
:disabled="isPastSlot(day, slot.hour)"
690-
:aria-label="`Weekly time slot for ${formatDayName(day)} at ${slot.label}`"
690+
:aria-label="`Slot for ${formatDayName(day)} at ${slot.label}`"
691691
@click="isPastSlot(day, slot.hour) ? undefined : openNewPostForSlot(day, slot.hour)"
692692
@keydown.enter.prevent="isPastSlot(day, slot.hour) ? undefined : openNewPostForSlot(day, slot.hour)"
693693
@keydown.space.prevent="isPastSlot(day, slot.hour) ? undefined : openNewPostForSlot(day, slot.hour)"

apps/web/app/vite.config.ts

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,10 @@ import vueDevTools from 'vite-plugin-vue-devtools'
99
import tailwind from '@tailwindcss/vite'
1010

1111
const isE2eOrCi = Boolean(
12-
process.env.PLAYWRIGHT || process.env.PLAYWRIGHT_BASE_URL || process.env.CI || process.env.NODE_ENV === 'test',
12+
process.env.PLAYWRIGHT ||
13+
process.env.PLAYWRIGHT_BASE_URL ||
14+
process.env.CI ||
15+
process.env.NODE_ENV === 'test',
1316
)
1417

1518
// https://vite.dev/config/

0 commit comments

Comments
 (0)