Skip to content
This repository has been archived by the owner on Jan 5, 2023. It is now read-only.

Best way to style tabs and modal without overriding css? #417

Answered by mayank99
mjkertz asked this question in Q&A
Discussion options

You must be logged in to vote

The trouble I'm running into is that the tabs are not responsive to the width of their container. When the window or modal gets too small, the text cuts off completely.

I could not really reproduce this. With correct usage, the tab labels look fine on a narrow screen (without any custom styling).

But also, if your labels are long, I don't think VerticalTabs is even the right component choice for narrow screens. Maybe you could switch to HorizontalTabs and add horizontal scrolling (although that's tricky to do because of the visible scrollbar). Or maybe you could use VerticalTabs with shorter labels or only icons with tooltips.

I'm also not able to size the modal the way I want - in th…

Replies: 1 comment 3 replies

Comment options

You must be logged in to vote
3 replies
@mjkertz
Comment options

@FlyersPh9
Comment options

@mjkertz
Comment options

Answer selected by mjkertz
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
3 participants