File tree Expand file tree Collapse file tree 3 files changed +5
-0
lines changed Expand file tree Collapse file tree 3 files changed +5
-0
lines changed Original file line number Diff line number Diff line change @@ -73,6 +73,7 @@ function Day(props: {
7373 styles . button ,
7474 { backgroundColor : inRange ? selectColor : undefined } ,
7575 ] }
76+ accessibilityRole = "button"
7677 // RN types bug
7778 hasTVPreferredFocus = { undefined }
7879 tvParallaxProperties = { undefined }
Original file line number Diff line number Diff line change @@ -260,6 +260,8 @@ function Month(props: MonthSingleProps | MonthRangeProps | MonthMultiProps) {
260260 < TouchableRipple
261261 disabled = { ! isHorizontal }
262262 onPress = { isHorizontal ? ( ) => onPressYear ( year ) : undefined }
263+ accessibilityRole = "button"
264+ accessibilityLabel = { `${ monthName } ${ year } ` }
263265 style = { [
264266 styles . yearButton ,
265267 {
Original file line number Diff line number Diff line change @@ -74,6 +74,8 @@ function YearPure({
7474 < View style = { styles . year } >
7575 < TouchableRipple
7676 onPress = { ( ) => onPressYear ( year ) }
77+ accessibilityRole = "button"
78+ accessibilityLabel = { String ( year ) }
7779 style = { styles . yearButton }
7880 // RN types bug
7981 hasTVPreferredFocus = { undefined }
You can’t perform that action at this time.
0 commit comments