File tree Expand file tree Collapse file tree 2 files changed +6
-3
lines changed Expand file tree Collapse file tree 2 files changed +6
-3
lines changed Original file line number Diff line number Diff line change @@ -19,7 +19,7 @@ export default TabNavigator(
19
19
navigationOptions : {
20
20
tabBarLabel : 'Home' ,
21
21
tabBarIcon : ( props : TabNavigationOptionsPropsType ) => (
22
- < IconHome size = { 24 } color = { props . tintColor } />
22
+ < IconHome accessibilityLabel = "Unread" size = { 24 } color = { props . tintColor } />
23
23
) ,
24
24
} ,
25
25
} ,
@@ -28,7 +28,7 @@ export default TabNavigator(
28
28
navigationOptions : {
29
29
tabBarLabel : 'Streams' ,
30
30
tabBarIcon : ( props : TabNavigationOptionsPropsType ) => (
31
- < IconStream size = { 24 } color = { props . tintColor } />
31
+ < IconStream accessibilityLabel = "Streams" size = { 24 } color = { props . tintColor } />
32
32
) ,
33
33
} ,
34
34
} ,
@@ -46,7 +46,7 @@ export default TabNavigator(
46
46
navigationOptions : {
47
47
tabBarLabel : 'Settings' ,
48
48
tabBarIcon : ( props : TabNavigationOptionsPropsType ) => (
49
- < IconSettings size = { 24 } color = { props . tintColor } />
49
+ < IconSettings accessibilityLabel = "Settings" size = { 24 } color = { props . tintColor } />
50
50
) ,
51
51
} ,
52
52
} ,
Original file line number Diff line number Diff line change @@ -7,6 +7,7 @@ import { StyleSheet } from 'react-native';
7
7
import { getUnreadPmsTotal , getUnreadHuddlesTotal } from '../selectors' ;
8
8
import { IconPeople } from '../common/Icons' ;
9
9
import { ComponentWithOverlay , UnreadCount } from '../common' ;
10
+ import { textWithUnreadCount } from '../utils/accessibility' ;
10
11
11
12
const styles = StyleSheet . create ( {
12
13
button : {
@@ -24,9 +25,11 @@ class IconUnreadConversations extends PureComponent<Props> {
24
25
render ( ) {
25
26
const { unreadHuddlesTotal, unreadPmsTotal, color } = this . props ;
26
27
const unreadCount = unreadHuddlesTotal + unreadPmsTotal ;
28
+ const accessibilityLabel = textWithUnreadCount ( 'Conversations' , unreadCount ) ;
27
29
28
30
return (
29
31
< ComponentWithOverlay
32
+ accessibilityLabel = { accessibilityLabel }
30
33
style = { styles . button }
31
34
overlaySize = { 15 }
32
35
showOverlay = { unreadCount > 0 }
You can’t perform that action at this time.
0 commit comments