Repository navigation
fix(a11y): stop passing importantForAccessibility to the DOM - #50
Merged
Merged
Conversation
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
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]>
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.
FocusGuard (web-only) and BarChart's Svg passed
importantForAccessibilitythrough to the DOM, where React warned on every page. FocusGuard keepsaccessible={false}; BarChart usesaria-hiddenon web and the native prop elsewhere.tscclean, build clean, 680/680 tests. Refs Scaffald/SaaS#993.🤖 Generated with Claude Code