Skip to content

Commit 8796db6

Browse files
feat(a11y): Titles from menus marked as headings (RocketChat#6105)
* chore: added accessibilityRole on listHeader * fix: dobule click with talkback * fix: type of Touch * chore: update to rn gesture handler 2.18.1 * chore: updated podfile.lock * fix: merge duplicated lines * fix: updated radio of displayprefsView * chore: created radio component * fix: updated color of radio following figma * fix: added accessibility role for radio
1 parent fe3462d commit 8796db6

File tree

15 files changed

+160
-38
lines changed

15 files changed

+160
-38
lines changed
424 Bytes
Binary file not shown.

app/containers/CustomIcon/mappedIcons.js

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -166,6 +166,8 @@ export const mappedIcons = {
166166
'prune': 59817,
167167
'queue': 59818,
168168
'quote': 59819,
169+
'radio-checked': 59855,
170+
'radio-unchecked': 59867,
169171
'reaction-add': 59820,
170172
'record': 59821,
171173
'refresh': 59822,

app/containers/CustomIcon/selection.json

Lines changed: 1 addition & 1 deletion
Large diffs are not rendered by default.

app/containers/List/ListHeader.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ const ListHeader = React.memo(({ title, translateTitle = true, numberOfLines = 1
2929

3030
return (
3131
<View style={styles.container}>
32-
<Text style={[styles.title, { color: themes[theme].fontHint }]} numberOfLines={numberOfLines}>
32+
<Text accessibilityRole='header' style={[styles.title, { color: themes[theme].fontHint }]} numberOfLines={numberOfLines}>
3333
{translateTitle ? I18n.t(title) : title}
3434
</Text>
3535
</View>

0 commit comments

Comments
 (0)