From a734a5cafe606c383f957b10f0587b54400bc643 Mon Sep 17 00:00:00 2001 From: PelayoFelgueroso Date: Mon, 30 Mar 2026 10:54:15 +0200 Subject: [PATCH] Fix Tab visibility issue --- packages/lib/src/tabs/Tabs.tsx | 5 +++++ 1 file changed, 5 insertions(+) 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; });