Skip to content

vertical tab group - scrollable #94

Discussion options

You must be logged in to vote

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.

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@Offbeatmammal
Comment options

Answer selected by Offbeatmammal
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
2 participants