Skip to content

Commit

Permalink
tabs: focusable tab panel if active
Browse files Browse the repository at this point in the history
  • Loading branch information
chaance committed Feb 4, 2020
1 parent 628790f commit c81452e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/tabs/src/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -595,7 +595,7 @@ export const TabPanel = forwardRefWithAs<TabPanelProps, "div">(
ref={ref}
data-reach-tab-panel=""
id={id}
tabIndex={-1}
tabIndex={isSelected ? 0 : -1}
>
{children}
</Comp>
Expand Down

0 comments on commit c81452e

Please sign in to comment.