From 9e92ab6f9bbf262ef7f2b48fc98cbbc0cc792c4a Mon Sep 17 00:00:00 2001 From: Kushagra Kumar Date: Wed, 9 Sep 2026 15:43:58 +0530 Subject: [PATCH] fix(a11y): add accessible names to hud sliders and inputs Add explicit aria-label attributes to unlabelled interactive controls in index.html and dynamic parameter sliders in src/ui.js, fulfilling WCAG 2.1 Success Criterion 4.1.2 (Name, Role, Value). - Add aria-label to #scope-feather-slider, #bloom-intensity-slider, #sharpen-intensity-slider, #location-search, #scene-import-file, and first-run suppression checkbox. - Set aria-label to uniform label on dynamic style parameter sliders in ui.js. - Add unit test suite (src/hudA11y.test.mjs) verifying accessible names across all inputs in index.html and dynamic slider construction. Signed-off-by: Kushagra Kumar --- index.html | 12 +++++----- src/hudA11y.test.mjs | 52 ++++++++++++++++++++++++++++++++++++++++++++ src/ui.js | 1 + 3 files changed, 59 insertions(+), 6 deletions(-) create mode 100644 src/hudA11y.test.mjs diff --git a/index.html b/index.html index e8b0b8d..449801b 100644 --- a/index.html +++ b/index.html @@ -440,7 +440,7 @@ mirrors SCOPE_FEATHER_RATIO_DEFAULT in src/scopeMask.js. Feather softens the black mask edge; label fading is the separate Fade slider. --> - + 11% @@ -460,7 +460,7 @@ Bloom
- + 0%
@@ -470,7 +470,7 @@ Sharpen
- + 49%
@@ -565,7 +565,7 @@ - + @@ -671,7 +671,7 @@ - +
0%
@@ -872,7 +872,7 @@