Skip to content

Commit

Permalink
Remove aria-labels from tabstrip and tabpanel
Browse files Browse the repository at this point in the history
  • Loading branch information
daiverd committed Feb 11, 2025
1 parent 0dba542 commit 9058fd2
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions src/components/tabs.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,7 @@ const Tabs: React.FC<TabsProps> = ({ tabs }) => {

return (
<div>
<div role="tablist" aria-label="Tabs">
<div role="tablist">
{tabs.map((tab, index) => (
<button
key={index}
Expand All @@ -78,7 +78,6 @@ const Tabs: React.FC<TabsProps> = ({ tabs }) => {
key={index}
role="tabpanel"
id={`${tab.label}-panel`}
aria-labelledby={`${tab.label}-tab`}
hidden={selectedTab !== index}
>
{tab.content}
Expand Down

0 comments on commit 9058fd2

Please sign in to comment.