Skip to content

Commit 4b73fa9

Browse files
sarkaaaDSil
authored andcommitted
fix(TabPanel): add role and aria-labelledby attributes
1 parent 33a2845 commit 4b73fa9

File tree

1 file changed

+2
-0
lines changed
  • packages/orbit-components/src/Tabs/components/TabPanel

1 file changed

+2
-0
lines changed

packages/orbit-components/src/Tabs/components/TabPanel/index.tsx

+2
Original file line numberDiff line numberDiff line change
@@ -39,6 +39,8 @@ const TabPanel = ({ children, margin, padding, dataTest, active = false }: Props
3939
style={cssVars}
4040
id={`panel-${index}`}
4141
data-test={dataTest}
42+
role="tabpanel"
43+
aria-labelledby={`tab-${index}`}
4244
>
4345
{children}
4446
</div>

0 commit comments

Comments
 (0)