I have a tab with lengthy content in my project (check out the StackBlitz reference here).
This causes the appearance of a scroll.
https://i.sstatic.net/ZcNKM.png
The corresponding code snippet is provided below:
<div class="content-container">
<div class="content-area">
<clr-tabs>
<clr-tab>
<button clrTabLink id="tab1-link">Tab1</button>
<clr-tab-content id="tab1-content" *clrIfActive="true">
...
</clr-tab-content>
</clr-tab>
<clr-tab>
<button clrTabLink id="tab2-link">Tab2</button>
<clr-tab-content id="tab2-content" *clrIfActive>
Content2
</clr-tab-content>
</clr-tab>
</clr-tabs>
</div>
</div>
The issue I am facing is that the scroll covers both the tab labels and content. My requirement is for it to only cover the tab content, keeping the tab labels visible as I scroll down.
To address this problem, I attempted to apply some styling adjustments:
.content-area {
overflow: hidden !important;
height: 100%;
}
#tab1-content, #tab2-content {
height: 100%;
overflow: auto;
}
However, implementing these styles caused the scroll to disappear entirely. How can I ensure that the scroll only affects the tab content?