Skip to content
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

Open
wants to merge 2 commits into
base: master
Choose a base branch
from
Open

Fixes issue #2526 #2527

wants to merge 2 commits into from

Conversation

Abhisflyingsoon
Copy link

@Abhisflyingsoon Abhisflyingsoon commented Sep 11, 2024

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.

@Abhisflyingsoon
Copy link
Author

Fixes issue #2526

@@ -102,7 +102,8 @@ const CalendarHeader = forwardRef((props: CalendarHeaderProps, ref) => {
importantForAccessibility,
numberOfDays,
current = '',
timelineLeftInset
timelineLeftInset,
accessibilityRole
Copy link
Collaborator

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?

Copy link
Author

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?

@@ -279,7 +280,7 @@ const CalendarHeader = forwardRef((props: CalendarHeaderProps, ref) => {
testID={testID}
style={propsStyle}
accessible
accessibilityRole={'adjustable'}
accessibilityRole={accessibilityRole}
Copy link
Collaborator

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...

Copy link
Author

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"

@Inbal-Tish
Copy link
Collaborator

@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
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants