Replies: 1 comment 1 reply
-
Are you referring to the tab panels? If so, setting sl-tab-panel {
height: 100%;
padding-block: var(--sl-spacing-medium); /* set to your preference */
} If you have a more specific use case you can't get working, please post a pen so we can take a closer look. |
Beta Was this translation helpful? Give feedback.
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Hey everyone, I tried everything under the sun with the current styles, styling
shadowRoot
properties, using a lot of::part
selectors and it seems like nothing short of editing the source itself can achieve this cleanly: Inside a<sl-tab-group>
, when using vertical tabs (e.g.placement="start"
orplacement="end"
), the tabs do not fill the vertical space given by the container, but instead keep their height. If the tabbed content is longer than the tab container, this results in a (subjectively) ugly gap.Adding to this, given a fixed height container and adding
overflow-y: scroll
to the tab group, the content scrolls but the tab container does as well (which is clearly not correct). Idealy, I would love the following features added for vertical tab groups:height: 100%
to work).Alternatively, if anyone has any idea how to achieve this with the current component, I'd be more than happy to try it out! For now, I am using the horizontal tab group.
Beta Was this translation helpful? Give feedback.
All reactions