fix: address empty space SR announcement in react comps (JAWS & NVDA)#564
fix: address empty space SR announcement in react comps (JAWS & NVDA)#564
Conversation
PR Review: feat: fix empty space SR announcement in react comps (JAWS & NVDA)Overall: This is a well-motivated fix — eliminating the stale pre-built React example that contained invisible separator characters (U+2063) causing JAWS/NVDA to announce "invisible separator" is the right call. The approach of rebuilding from source is sound. A few issues need attention before merging. 1. Gitignore Contradiction (Bug)# .gitignore
+examples/react/Adding This leaves the repo in a confusing state: the file appears in Choose one approach:
2. Fragile
|
| Issue | Severity |
|---|---|
| Gitignore contradiction (tracked file ignored) | High — confusing/broken git state |
Fragile stripModuleType regex |
Medium — silent failure risk |
require() mid-file in build script |
Low — style |
process.env: {} |
Medium — may suppress production optimizations |
3335-line monolithic main.tsx |
Low — maintainability |
Missing comment on assetsInlineLimit: Infinity |
Low — maintainability |
The gitignore contradiction and the process.env issue are the two most important things to address before merging.
PR Review: feat: fix empty space SR announcement in react comps (JAWS & NVDA)SummaryThis PR replaces the stale pre-built React example (which contained invisible separator characters causing JAWS to announce "invisible separator") with a proper build pipeline that generates a self-contained HTML file. The approach is sound and solves the accessibility regression cleanly. Positive Aspects
Issues to Address1. Missing newline at end of
|
|
🎉 This PR is included in version 3.53.0 🎉 The release is available on GitHub release Your semantic-release bot 📦🚀 |
Pull Request
Description
examples/react-app/index.html — Vite HTML entry point
examples/react-app/main.tsx — React app with 3 chart examples (bar, line, smooth) using component
examples/react-app/vite.config.ts — Vite config: singlefile plugin, IIFE format, stripModuleType post-build plugin, source aliases
Checklist
ManualTestingProcess.md, and all tests related to this pull request pass.Additional Notes