a11y: aria-live regions for upload, loading states, and history accordion#86
Merged
Conversation
…tory accordion MuscleMap: - role="region" + aria-label on both dropzone states (empty and with images) - aria-live="polite" status paragraph announces image count when files are added/removed - Meaningful alt text on preview images (Treningsbilde 1, 2, …) - aria-label on remove-image and add-more-images buttons; aria-hidden on decorative Camera/Add icons - "Add more" cell converted from <div> to <button> for native keyboard support - aria-live="polite" + aria-busy on analyzing step wrapper - aria-live="polite" on save status (Lagrer / Lagret / Lagring feilet) History: - aria-expanded + aria-controls on session accordion toggle button - id + aria-live="polite" on expanded session content panel Closes #71, #73, #74, #80 Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Adds
aria-liveregions and semantic attributes so screen reader users are automatically informed of dynamic content changes — file uploads, analysis progress, save status, and expanding session cards.MuscleMap (upload step)
role="region"+aria-label="Last opp treningsbilde"aria-live="polite"paragraph announces the image count whenever files are added or removed (e.g. "2 bilder valgt")alttext ("Treningsbilde 1", "Treningsbilde 2", …) instead of emptyalt=""aria-label; the add-more cell is converted from a<div>to a<button>for native keyboard supportCameraandAddicons getaria-hidden="true"MuscleMap (analyzing + muscles steps)
aria-live="polite"+aria-busy="true"so screen readers announce when analysis is running and when it completesaria-live="polite"History (session accordion)
aria-expanded={isExpanded}andaria-controlspointing to the panelidandaria-live="polite"so screen readers announce the exercise list when a session is openedTest plan
aria-expandedtoggles correctly in DevTools when clicking accordionCloses #71, #73, #74, #80
🤖 Generated with Claude Code