diff --git a/code/ui/components/src/tabs/tabs.hooks.tsx b/code/ui/components/src/tabs/tabs.hooks.tsx index 45cc97bdcac7..d6aeb270a672 100644 --- a/code/ui/components/src/tabs/tabs.hooks.tsx +++ b/code/ui/components/src/tabs/tabs.hooks.tsx @@ -87,6 +87,7 @@ export function useList(list: ChildrenList) { active={isAddonsActive} preActive={isTooltipVisible} style={{ visibility: invisibleList.length ? 'visible' : 'hidden' }} + aria-hidden={!invisibleList.length} className="tabbutton" type="button" role="tab" @@ -103,6 +104,7 @@ export function useList(list: ChildrenList) { { tabRefs.current.set(id, ref); diff --git a/code/ui/components/src/tabs/tabs.tsx b/code/ui/components/src/tabs/tabs.tsx index 80cf528aa901..acdb6d9531a8 100644 --- a/code/ui/components/src/tabs/tabs.tsx +++ b/code/ui/components/src/tabs/tabs.tsx @@ -170,7 +170,7 @@ export const Tabs: FC = memo( })} - {tools ? {tools} : null} + {tools} {list.map(({ id, active, render }) => render({ key: id, active }))}