Skip to content

Commit bc37d88

Browse files
committed
fix(a11y): set accessibilityLabel for headings (h1..h6) to bypass RN limitation
Because headings are rendered in View, unfortunately the label can't be extracted from the Text descendants. We therefore set an `accessibilityLabel` by hand to circumvent the RN limitation.
1 parent c552fe4 commit bc37d88

File tree

2 files changed

+7
-6
lines changed

2 files changed

+7
-6
lines changed

packages/render-html/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -90,7 +90,7 @@
9090
"dependencies": {
9191
"@jsamr/counter-style": "^2.0.1",
9292
"@jsamr/react-native-li": "^2.3.0",
93-
"@native-html/transient-render-engine": "10.2.0",
93+
"@native-html/transient-render-engine": "10.2.1",
9494
"@types/ramda": "^0.27.40",
9595
"@types/urijs": "^1.19.15",
9696
"prop-types": "^15.5.7",

yarn.lock

Lines changed: 6 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -4380,21 +4380,22 @@ __metadata:
43804380
languageName: node
43814381
linkType: hard
43824382

4383-
"@native-html/transient-render-engine@npm:10.2.0":
4384-
version: 10.2.0
4385-
resolution: "@native-html/transient-render-engine@npm:10.2.0"
4383+
"@native-html/transient-render-engine@npm:10.2.1":
4384+
version: 10.2.1
4385+
resolution: "@native-html/transient-render-engine@npm:10.2.1"
43864386
dependencies:
43874387
"@native-html/css-processor": 1.11.0
43884388
"@types/ramda": ^0.27.44
43894389
csstype: ^3.0.8
43904390
domelementtype: ^2.2.0
43914391
domhandler: ^4.2.0
4392+
domutils: ^2.8.0
43924393
htmlparser2: ^7.1.1
43934394
ramda: ^0.27.1
43944395
peerDependencies:
43954396
"@types/react-native": "*"
43964397
react-native: ^*
4397-
checksum: 34a878b9198e3343d3d2777717e459193f179a6ea11f5c132261d74bb08b23b0dd54370f1152ac8ddd43a6fb2bdab59596954db1e88e00c6c4d0e5c30ecc050d
4398+
checksum: ee56a026faf13ba1d2f541c44cd8d2198f0255fcde7eb70f6bdd50d9c1fdf35ba6b2c72b5c88a5ea59330a7a9d14a93f4cdb80b3d3af3c955f47c9e18c086c8e
43984399
languageName: node
43994400
linkType: hard
44004401

@@ -19985,7 +19986,7 @@ fsevents@^1.2.7:
1998519986
"@jsamr/counter-style": ^2.0.1
1998619987
"@jsamr/react-native-li": ^2.3.0
1998719988
"@microsoft/api-extractor": ^7.14.0
19988-
"@native-html/transient-render-engine": 10.2.0
19989+
"@native-html/transient-render-engine": 10.2.1
1998919990
"@release-it/conventional-changelog": ^2.0.1
1999019991
"@testing-library/react-hooks": ^7.0.0
1999119992
"@testing-library/react-native": ^7.2.0

0 commit comments

Comments
 (0)