-
Notifications
You must be signed in to change notification settings - Fork 3k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Fixes issue #2526 #2527
base: master
Are you sure you want to change the base?
Fixes issue #2526 #2527
Conversation
@@ -102,7 +102,8 @@ const CalendarHeader = forwardRef((props: CalendarHeaderProps, ref) => { | |||
importantForAccessibility, | |||
numberOfDays, | |||
current = '', | |||
timelineLeftInset | |||
timelineLeftInset, | |||
accessibilityRole |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Where this prop is declared?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
defined in the props. Did you mean that?
src/calendar/header/index.tsx
Outdated
@@ -279,7 +280,7 @@ const CalendarHeader = forwardRef((props: CalendarHeaderProps, ref) => { | |||
testID={testID} | |||
style={propsStyle} | |||
accessible | |||
accessibilityRole={'adjustable'} | |||
accessibilityRole={accessibilityRole} |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
You're removing the existing value without even set it as the default...
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
added fallback value to "adjustable"
@Abhisflyingsoon Thank you for the PR. Please add a description to summarize the issue and your solution to it. |
- Add typing for accessibilityRole prop - Add fallback to accessibilityRole
This should fix the issue of the hardcoded accessbilityRole issue in the header component. It was causing problem with the Voicover/Talkback Screenreader functionality, it was suggesting wrong accessbilityActions when the header was in focus.