File tree Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -385,10 +385,10 @@ export const TabList = forwardRefWithAs<TabListProps, "div">(function TabList(
385
385
386
386
return (
387
387
< Comp
388
+ role = "tablist"
388
389
{ ...props }
389
390
data-reach-tab-list = ""
390
391
ref = { ref }
391
- role = "tablist"
392
392
onKeyDown = { wrapEvent ( onKeyDown , handleKeyDown ) }
393
393
>
394
394
{ Children . map ( children , ( child , index ) => {
@@ -474,6 +474,7 @@ export const Tab = forwardRefWithAs<
474
474
475
475
return (
476
476
< Comp
477
+ role = "tab"
477
478
{ ...props }
478
479
ref = { ref }
479
480
data-reach-tab = ""
@@ -485,7 +486,6 @@ export const Tab = forwardRefWithAs<
485
486
disabled = { disabled }
486
487
id = { makeId ( tabsId , "tab" , index ) }
487
488
onClick = { onSelect }
488
- role = "tab"
489
489
tabIndex = { isSelected ? 0 : - 1 }
490
490
>
491
491
{ children }
@@ -578,13 +578,13 @@ export const TabPanel = forwardRefWithAs<TabPanelProps, "div">(
578
578
579
579
return (
580
580
< Comp
581
+ hidden = { ! isSelected }
582
+ role = "tabpanel"
581
583
{ ...props }
582
584
ref = { ref }
583
585
data-reach-tab-panel = ""
584
586
aria-labelledby = { makeId ( tabsId , "tab" , index ) }
585
- hidden = { ! isSelected }
586
587
id = { id }
587
- role = "tabpanel"
588
588
tabIndex = { - 1 }
589
589
>
590
590
{ children }
You can’t perform that action at this time.
0 commit comments