Repository navigation
feat(gui): wire form & control ARIA associations - #257
Merged
Merged
Conversation
Structure and focus were already good; several controls weren't
programmatically described.
- NumberField: add aria-invalid when in error, and aria-describedby linking the
input to its error message (id ${id}-error) and to its help text, which is now
rendered in a visually-hidden span (id ${id}-help) so screen readers announce
it — title alone is not reliably exposed. The ⓘ button keeps its hover title.
- StreamLog: aria-pressed on the auto-scroll toggle (it is a toggle), and an
aria-label on the clear-log button (was falling back to the 🗑 emoji).
- ManualControlSection: the command input gains the shared design-system focus
ring and uses --color-border-control, matching param-form inputs.
- Toasts: error/warning toasts announce assertively (role="alert"); other types
stay role="status" (polite).
Part of #246. Closes #251.
Closed
6 tasks
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.
Closes #251. Part of epic #246 (post-redesign audit follow-ups).
Problem
Focus/keyboard were good, but several controls weren't programmatically described:
NumberFielderrors were visual-only (noaria-invalid/aria-describedby); help text lived only intitle(not reliably announced).aria-pressed; clear-log fell back to the 🗑 emoji as its name.role=status) rather than assertively.Fix
aria-invalidwhen in error;aria-describedbylinks the input to its error message (${id}-error) and to its help text, now in a visually-hidden span (${id}-help) so SRs announce it. The ⓘ keeps its hover title. (Verified the editors passtooltip=/error=, so this engages at runtime.)aria-pressedon the auto-scroll toggle;aria-label="Clear log".--color-border-control.role="alert"for error/warning,role="status"otherwise.Verification
lint:css,lint:css:vars,check:svelte(0 errors),tsc, 316/316 tests ✓aria-describedby/aria-invalid.