Skip to content

TabBar - Better accessibility roles and instructions #3501

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

Merged
merged 11 commits into from
Feb 24, 2025
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
Update TODO comment in TabBar component for role change during React …
…Native upgrade
  • Loading branch information
nitzanyiz committed Feb 12, 2025
commit 551cfa1e266d310414112568498cce80afaeb874
2 changes: 1 addition & 1 deletion src/components/tabController/TabBar.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -308,7 +308,7 @@ const TabBar = (props: Props) => {
onContentSizeChange={onContentSizeChange}
onLayout={onLayout}
>
{/* TODO: Might need to change role to tablist. Didn't work now when upgrading rn77 */}
{/* TODO: Might need to change role to tablist, when upgrading rn77, it didn't work now (rn73) */}
<View style={tabBarContainerStyle} accessibilityRole="tabbar" >{tabBarItems}</View>
{itemsCount > 1 && (
<Reanimated.View style={[styles.selectedIndicator, indicatorStyle, _indicatorTransitionStyle]}/>
Expand Down