diff --git a/packages/lib/src/tabs/Tabs.tsx b/packages/lib/src/tabs/Tabs.tsx index 16b72b0742..1d137cf0f4 100644 --- a/packages/lib/src/tabs/Tabs.tsx +++ b/packages/lib/src/tabs/Tabs.tsx @@ -182,6 +182,11 @@ const DxcTabs = ({ children, iconPosition = "left", margin, tabIndex = 0 }: Tabs refTabList.current?.querySelectorAll('[role="tab"]').forEach((tab, index) => { if (tab.ariaSelected === "true" && viewWidth && viewWidth < totalTabsWidth) { setInnerFocusIndex(index); + tab.scrollIntoView({ + behavior: "smooth", + block: "nearest", + inline: "center", + }); } total += (tab as HTMLElement).offsetWidth; });