Skip to content

Commit

Permalink
fix(tabs): remove tabindex from panel (#210)
Browse files Browse the repository at this point in the history
  • Loading branch information
jzempel committed Jun 10, 2020
1 parent 7e2d996 commit 01f8652
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 8 deletions.
12 changes: 6 additions & 6 deletions packages/tabs/.size-snapshot.json
Original file line number Diff line number Diff line change
Expand Up @@ -19,14 +19,14 @@
}
},
"index.cjs.js": {
"bundled": 4880,
"minified": 2599,
"gzipped": 1092
"bundled": 4861,
"minified": 2588,
"gzipped": 1087
},
"index.esm.js": {
"bundled": 4602,
"minified": 2369,
"gzipped": 1007,
"bundled": 4583,
"minified": 2358,
"gzipped": 1001,
"treeshaked": {
"rollup": {
"code": 210,
Expand Down
1 change: 0 additions & 1 deletion packages/tabs/src/TabsContainer.spec.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -106,7 +106,6 @@ describe('TabsContainer', () => {
tabPanels.forEach((tabPanel, index) => {
expect(tabPanel).toHaveAttribute('role', 'tabpanel');
expect(tabPanel).toHaveAttribute('id', getPanelId(index));
expect(tabPanel).toHaveAttribute('tabIndex', '0');
expect(tabPanel).toHaveAttribute('aria-labelledby', getTabId(index));
});
});
Expand Down
1 change: 0 additions & 1 deletion packages/tabs/src/useTabs.ts
Original file line number Diff line number Diff line change
Expand Up @@ -88,7 +88,6 @@ export function useTabs<Item = any>({

return {
role,
tabIndex: 0,
id: `${PANEL_ID}:${index}`,
hidden: isHidden,
'aria-labelledby': `${TAB_ID}:${index}`,
Expand Down

0 comments on commit 01f8652

Please sign in to comment.