Inclusive Design & Accessibility (WCAG 2.2 AA)
WCAG 2.2 Level AA is the target for the editor and preview interaction, not a claim of verified conformance. The patterns below describe existing mechanisms, not proof that every interaction has been audited. See the accessibility reference and testing reference.
flowchart TD
User["Keyboard / Assistive Tech User"] --> Shell["Application Shell"]
Shell --> Tabs["Navbar Tabs<br/>(WAI-ARIA Tablist & Roving Tabindex)"]
Tabs --> Boundary["Focus Hand-Off<br/>(useLastComponentBeforeTabpanel)"]
Boundary --> Tabpanel["Form Controls<br/>(Strict htmlFor Labels)"]
Shell --> LiveRegion["Central Announcement Region<br/>(aria-live=#quot;polite#quot;)"]
Shell --> Modals["Modal Dialogs<br/>(Focus Trap via tabbable)"]
1. Keyboard Navigation & Tab Management
Section titled “1. Keyboard Navigation & Tab Management”The primary section navigation implements the W3C WAI-ARIA Tabs Pattern:
- Semantic Role Hierarchy: The navigation container uses
<ul role="tablist" aria-orientation="vertical">. Each individual section button implementsrole="tab",aria-selected={isSelected}andaria-controls="<sectionId>-tabpanel". - Roving Tabindex: Only the currently active section tab receives
tabIndex={0}. All other tabs are set totabIndex={-1}. - Directional Traversal:
ArrowDownandArrowUpmove focus sequentially between active section tabs.- Boundary wrapping automatically moves focus to “Add Sections” or “Edit Sections” buttons at the ends of the tab list.
Deletekey on an active tab deletes the section and transfers focus to the subsequent or preceding tab button.Escapeexits editor mode and restores focus to the corresponding section tab.
2. Modal Dialog Focus Trapping (Popup)
Section titled “2. Modal Dialog Focus Trapping (Popup)”The modal primitive in src/components/Popup/ uses patterns from the W3C APG Modal Dialog Pattern:
- Native Dialog Semantics: Built using the native HTML
<dialog>element rendered via React portals into#popup-root. - Attributes: Configured with
aria-modal="true"andaria-labelledby="<id>-title". - Focus Containment via
tabbable: When opened, focus is immediately shifted to the first interactive element. PressingTaborShift+Tabcycles strictly within the modal boundaries. - Browser-Sensitive Behaviour: Native dialog mechanics and focus geometry need browser evidence. Other tests use Node or a simulated DOM as appropriate; not all unit and integration tests run in Chromium.
- Dismissal & Focus Restoration: Pressing
Escapeor clicking the close button dismisses the dialog and returns keyboard focus to the originating trigger element.
3. Reverse Focus Boundary Navigation
Section titled “3. Reverse Focus Boundary Navigation”When a keyboard user tabs from the navbar into an open tabpanel, focus lands on the first form control. However, when navigating backwards using Shift+Tab, standard DOM order would jump into preceding layout containers rather than returning to the active tab.
src/hooks/useLastComponentBeforeTabpanel.ts solves this boundary dilemma:
- Tracks focus entry into tabpanels using
focusinevents and verifies whethere.relatedTargetwas the activating section tab. - Intercepts
Shift+Tabon the first interactive element viae.preventDefault(). - Programmatically transfers focus back to the controlling tab button, creating complete bidirectional focus symmetry.
4. Screen Reader Live Announcements
Section titled “4. Screen Reader Live Announcements”The application uses an aria-live="polite" region in src/App/App.tsx for dynamic UI updates such as section activations, deletions and reordering. Polite announcements wait for the current screen reader utterance; other interactions may require a different urgency.
- Live Region: The existing polite region communicates contextual changes.
- Dynamic Diffing:
useAppStatecalculates set symmetric differences between previous and current section states, dispatching contextual announcements such as:"Section Work Experience was added.""Section Personal Details was opened.""Editor Mode on. To move focus to tabs for editing, press Tab."
- Drag-and-Drop Feedback: Detailed feedback announces when sortable items are picked up, moved over target positions, dropped or cancelled.
Initial drag feedback should not misleadingly suggest that an item has moved over itself; the implementation context is src/components/BulletPoints/bulletPointsDnd.ts.
5. Exported CV Accessibility
Section titled “5. Exported CV Accessibility”Accessible exported CVs are a future goal distinct from web accessibility. Semantic structure and meaningful reading order are needed; selectable text, metadata and working links alone do not establish them.
On 14 November 2026, a synthetic probe using @react-pdf/renderer 4.9.0 and pdfjs-dist 6.4.299 extracted text and a link but found no PDF structure tree or heading/list roles. This is evidence of a current semantic export gap in that representative output, not a test of an actual CV template or proof that accessible PDF generation is impossible. The accessibility reference records the scope and limitations.