Skip to content

How to center tabs, show underline and collapse tabs if the screen size becomes smaller than box size? #10958

Closed Answered by waterplea
Donnerstagnacht asked this question in Q&A
Discussion options

You must be logged in to vote

Here's the best I could come up with, it's a bit hacky but gets you where you want to be:
https://stackblitz.com/edit/angular-ojtavzaz-buszbpy5
TabsWithMore consists of Tabs + More button with a margin between them. I removed shadow from the main element and added it back in on Tabs and a button. I had to use ::before element so I could cover that margin area too. And since ::before element is reserved for a left side icon, I had to reset some styles like size and background.

Replies: 2 comments 2 replies

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
2 replies
@waterplea
Comment options

Answer selected by waterplea
@Donnerstagnacht
Comment options

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