Conversation
…miss - Wire up <label for> / <input id> on TextField, ChoicePicker, DateTimeInput, Slider - Add aria-describedby, aria-invalid, error/helperText on all 5 input components - Dismiss error text client-side on user interaction (_interacted flag) - Fix GetElement() bug: use TryGetValue instead of GetValueOrDefault to avoid JsonElement default struct causing crash on GetRawText() - Add validation examples to gallery (both Python and .NET servers) - CSS: helper/error text styles, --error modifier classes - 24 new unit tests (249 total), 9 new Playwright E2E tests (36 total) Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
…avigation
- Add --a2ui-focus-ring and --a2ui-focus-offset CSS custom properties
- Add :focus-visible outline rules for Button, TextField, CheckBox,
ChoicePicker, DateTimeInput, Slider, and Tabs
- Fix TextField: replace :focus { outline: none } with proper :focus-visible ring
- 3 new Playwright E2E tests verifying focus indicators via computed styles
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
Dark mode with prefers-color-scheme auto-detection and manual toggle button. Fix form inputs (TextField, ChoicePicker, DateTimeInput) to use CSS custom properties for background/color so they render correctly in dark mode. Add color-scheme: dark for native browser controls. Sample app CSS uses --a2ui-* variables for automatic theme switching. Co-Authored-By: Claude Opus 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
Complete v0.4.0 milestone — WCAG 2.1 AA accessibility and visual theming for the A2UI Blazor renderer.
<label>/forassociations,aria-describedby,aria-invalid,helperText/errorproperties on all 5 input components, error-clears-on-interaction behavior:focus-visiblerings on all 7 interactive components (Button, TextField, CheckBox, ChoicePicker, DateTimeInput, Slider, Tabs)prefers-color-schemedetection + manual toggle button with localStorage persistence. Form inputs use CSS custom properties for correct dark rendering.color-scheme: darkfor native browser controls (video scrubber, date pickers)--a2ui-*variables documented; sample app CSS usesvar()references for automatic theme switchingprefers-reduced-motion— disables all transitions and animations when user prefers reduced motion26 files changed, +1396 / -58. Test suite: 249 unit + 46 Playwright E2E, 0 warnings.
Test plan
dotnet build— 0 warningsdotnet test tests/A2UI.Blazor.Tests— 249 unit tests passdotnet test tests/A2UI.Blazor.Playwright— 46 E2E tests pass🤖 Generated with Claude Code