Repository navigation
Commit 51517ad
fix(a11y): stop passing importantForAccessibility to the DOM (#50)
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]>1 parent 965f605 commit 51517ad
2 files changed
Lines changed: 9 additions & 3 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
60 | 60 | | |
61 | 61 | | |
62 | 62 | | |
| 63 | + | |
| 64 | + | |
| 65 | + | |
63 | 66 | | |
64 | | - | |
65 | 67 | | |
66 | 68 | | |
67 | 69 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
12 | 12 | | |
13 | 13 | | |
14 | 14 | | |
15 | | - | |
| 15 | + | |
16 | 16 | | |
17 | 17 | | |
18 | 18 | | |
| |||
99 | 99 | | |
100 | 100 | | |
101 | 101 | | |
102 | | - | |
| 102 | + | |
| 103 | + | |
| 104 | + | |
| 105 | + | |
| 106 | + | |
103 | 107 | | |
104 | 108 | | |
105 | 109 | | |
| |||
0 commit comments