diff --git a/src/components/hy-tabs/hy-tabs.tsx b/src/components/hy-tabs/hy-tabs.tsx index b8fb95501c982e72261e8a93148cf3efd9674a01..cdee93f3020cad48303cede85871d60ffba1395d 100644 --- a/src/components/hy-tabs/hy-tabs.tsx +++ b/src/components/hy-tabs/hy-tabs.tsx @@ -322,7 +322,12 @@ export class HyTabs implements ComponentInterface { if (isUrlHashed) { const hashElement = document.getElementById(tabHash); - if (hashElement) this.activateTab(hashElement, true); + + if (hashElement) { + this.activateTab(hashElement, true); + const hashElementRect = hashElement.getBoundingClientRect(); + window.scrollTo({top: window.scrollY + hashElementRect.top - 200, behavior: 'smooth'}); + } } }