vertical tab group - scrollable #94
Answered
by
claviska
Offbeatmammal
asked this question in
Help & Support
-
related to my question in #93, I was wondering if it's possible to make tab groups scrollable in vertical mode as well - similar to how the UI for the Docs works - so when the list is long you can scroll the content and the tabs independently to aid navigation and readability? |
Beta Was this translation helpful? Give feedback.
Answered by
claviska
Nov 12, 2024
Replies: 1 comment 1 reply
-
You can do something like this. wa-tab-group::part(base) {
max-height: 200px;
outline: dotted 1px tomato;
overflow: auto;
}
wa-tab-group::part(nav) {
max-height: 100%;
overflow-x: hidden;
overflow-y: auto;
} One caveat is that the active tab doesn't scroll into view when the keyboard is used. That might be something we have to bake into the component to solve properly. |
Beta Was this translation helpful? Give feedback.
1 reply
Answer selected by
Offbeatmammal
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
You can do something like this.
One caveat is that the active tab doesn't scroll into view when the keyboard is used. That might be something we have to bake into the component to solve properly.