-
Notifications
You must be signed in to change notification settings - Fork 6.8k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
How to style md-tab? #1092
Comments
This would fall under #123 |
@jelbourn, @RedFour seems to specifically be talking about this, which doesn't look slated for theming at the moment. Dynamic changes to the width of the tabs probably aren't in the scope of app wide theming either. Imo md-tab-labels shouldn't have a min-width. They should expand and contract to the width of the md-tab-group, keeping the tabs responsive after that is the developer's job. I get that there is a lot more work to be done on md-tabs, for the mean time changing the |
@hstevensagain thx! the css code you gave worked!
|
@hstevensagain @RedFour I'm having the same problem, but the css code above isn't working... any other workarounds? |
@RedFour where did you added this code |
@RedFour @ravinderpayal Actually the class name is mat-tab-label. .mat-tab-label {
min-width: 1px !important;
} |
Do you know how we can do the same on only one tab? tried pretty much everything without success. |
can we open this? I can't get anyone of these examples working.. |
@mist3r3 you can specify the element number
|
What if you need smaller tabs on only one page not the entire application. |
I got the page I wanted the smaller tabs like this: |
This issue has been automatically locked due to inactivity. Read more about our automatic conversation locking policy. This action has been performed automatically by a bot. |
How do I style the md-tab?
I've created a few test tabs using the documentation. But I can't figure out how to make the tab's width to be smaller. The default width is too large for mobile screens.
The text was updated successfully, but these errors were encountered: