Repository navigation
feat(a11y,kits): add TL601-TL606 3D/XR accessibility linter and fix kit contrast - #100
Merged
Merged
Conversation
…it contrast Dark metallic and slate materials in 3D building blocks (such as `0x111827` and `0x1e293b` IC packages, enclosures, and structural beams) rendered with less than `3.0:1` luminance contrast against the dark studio viewport (`#0f172a`), failing WCAG 2.1 Level AA non-text contrast (SC 1.4.11), and scenes lacked automated static accessibility checks during validation and compilation. Add 6 built-in 3D/XR accessibility diagnostics (`TL601`–`TL606`) to the spatial linter (`three-live-cli validate` / `compile` and MCP `three_live_validate` / `three_live_compile`) aligned with WCAG 2.1/2.2 and W3C XAUR, and update dark material colors across the 153-variant 3D building blocks catalog (`examples/kits/catalog-data.js`) and thumbnails (`examples/kits/thumbs/*.webp`) with automated rendered-pixel contrast verification in `scripts/generate_kits_gallery.js` so all 153 variants achieve at least `3.17:1` contrast. TAG=agy CONV=96f4bdc7-359e-449d-87b1-f461ac1f234d MARKDOWN=true
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
TL601–TL606): Adds 6 built-in accessibility diagnostics tothree-live-cli validate/compileand the MCP server (three_live_validate/three_live_compile) aligned with WCAG 2.1/2.2 and W3C XAUR:TL601(warning— WCAG 2.1 SC 1.4.11): Foreground mesh luminance contrast< 3.0:1against the dark studio viewport (#0f172a).TL602(warning— WCAG 2.1 SC 1.4.3): 3D text / callout label contrast< 4.5:1.TL603(warning— WCAG 2.2 SC 2.5.8 / W3C XAUR): Interactive target covers< 0.4%of viewport (< 2.5°XR visual angle).TL604(info— W3C XAUR): Interactive node missing a descriptivemesh.nameoruserData.xr.label.TL605(info— WCAG 2.1 SC 2.3.3): Continuousorbit.speed > 2.5 rad/sorfollow.stiffness > 25.0vestibular comfort check.TL606(info— WCAG 2.1 SC 1.4.1): Interactive sibling meshes of identical size relying solely on red-green hue separation.examples/kits/catalog-data.js, adds automated rendered-pixel WCAG 2.1 Level AA (>= 3.0:1) contrast verification toscripts/generate_kits_gallery.js, and regenerates all 153.webpthumbnails (examples/kits/thumbs/*.webp) with 0 contrast failures (minimum rendered contrast3.17:1).Test Plan
cargo test --lib(100 passed; 0 failed)cargo test --test three_compiler_test -- --test-threads=4(87 passed; 0 failed, includingtest_a11y_linter_tl601_to_tl606)node scripts/generate_kits_gallery.js(153/153variants verified with rendered contrast>= 3.17:1)