You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When using an NbTabsetComponent, the <ul> inside the tabset should scroll horizontally to improve UX, especially on small screens or when there are many tabs.
The responsive input parameter does not work well when tab titles contain arbitrary text and cannot be expressed by an icon.
Manually setting overflow-x: auto in the parent component's stylesheet causes the .tab.active .tab-link::before element inside nb-tabset to be mostly hidden.
Workaround:
To resolve this issue, I removed the border from the <ul> and created a custom border using the ::after pseudo-element. This allows margin or padding to be applied to <nb-tabset>, ensuring that the .tab.active .tab-link::before element is not clipped, preventing a vertical scrollbar.
Uh oh!
There was an error while loading. Please reload this page.
Issue:
When using an
NbTabsetComponent
, the<ul>
inside the tabset should scroll horizontally to improve UX, especially on small screens or when there are many tabs.The
responsive
input parameter does not work well when tab titles contain arbitrary text and cannot be expressed by an icon.Manually setting overflow-x: auto in the parent component's stylesheet causes the
.tab.active .tab-link::before
element inside nb-tabset to be mostly hidden.Workaround:
To resolve this issue, I removed the border from the
<ul>
and created a custom border using the ::after pseudo-element. This allows margin or padding to be applied to<nb-tabset>
, ensuring that the.tab.active .tab-link::before
element is not clipped, preventing a vertical scrollbar.This approach ensures proper scrolling behavior while maintaining the visual integrity of the active tab indicator.
The text was updated successfully, but these errors were encountered: