Skip to content

fix(a11y): stop passing importantForAccessibility to the DOM - #50

Merged
thinkclay merged 1 commit into
mainfrom
fix/focus-guard-dom-prop
Oct 5, 2026
Merged

thinkclay merged 1 commit into
mainfrom
fix/focus-guard-dom-prop

Conversation

@thinkclay

Copy link
Copy Markdown
Contributor

FocusGuard (web-only) and BarChart's Svg passed importantForAccessibility through to the DOM, where React warned on every page. FocusGuard keeps accessible={false}; BarChart uses aria-hidden on web and the native prop elsewhere. tsc clean, build clean, 680/680 tests. Refs Scaffald/SaaS#993.

🤖 Generated with Claude Code

FocusGuard renders only on web and set `importantForAccessibility="no"`,
which react-native-web has no mapping for — it reached the DOM and React
warned on every page that mounted a guard. `accessible={false}` already
says what the prop meant. BarChart's Svg carried the same prop on both
platforms; on web it is `aria-hidden` now, the labelled wrapper above it
carrying the chart's meaning either way.

Refs Scaffald/SaaS#993

Co-Authored-By: Claude Fable 5.1 <[email protected]>
@thinkclay
thinkclay merged commit 51517ad into main Oct 5, 2026
@thinkclay
thinkclay deleted the fix/focus-guard-dom-prop branch October 5, 2026 20:29
thinkclay added a commit to Scaffald/SaaS that referenced this pull request Oct 5, 2026
…aching the DOM (#994)

Pointer bump to Scaffald/ui@51517ad (Scaffald/ui#50): FocusGuard and BarChart stop
passing a native-only prop through to the DOM, which React warned about on
every web page in dev.

Closes #993

Co-authored-by: Claude Fable 5.1 <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant