Skip to content
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

MdTabs min-width is wrong for mobile and gets in the way #1350

Closed
dasois opened this issue Sep 28, 2016 · 2 comments · Fixed by #1351
Closed

MdTabs min-width is wrong for mobile and gets in the way #1350

dasois opened this issue Sep 28, 2016 · 2 comments · Fixed by #1351

Comments

@dasois
Copy link
Contributor

dasois commented Sep 28, 2016

Bug, feature request, or proposal:

Bug: MdTabs have a min-width of 160px, which is only true for larger views, but not for mobile views

What is the expected behavior?

Mobile Tabs should have min-width of 72px.
After that the user should be able to switch between scrollable tabs and fixed tabs (that's for another issue).

What is the current behavior?

Tabs are 160px and thus too big.

What is the use-case or motivation for changing an existing behavior?

For mobile views style has to be overridden with !important, which is bad practice.

kara pushed a commit that referenced this issue Oct 11, 2016
Tabs on mobile devices have a min-width of 72px.

Closes #1350
@philip-firstorder
Copy link

According to the guidelines it should have a min-width of 90px on all devices, and a max-width of 360px.

Because the smallest mobile width is 360px, and the smallest navbar width is also 360px.
which combined with this rule

Don’t use more than four fixed tabs in a set.

gives us 360px / 4 = 90px

Setting this regardless of screen width will also solve #2829

This ticket should be reopened and fixed.

@angular-automatic-lock-bot
Copy link

This issue has been automatically locked due to inactivity.
Please file a new issue if you are encountering a similar or related problem.

Read more about our automatic conversation locking policy.

This action has been performed automatically by a bot.

@angular-automatic-lock-bot angular-automatic-lock-bot bot locked and limited conversation to collaborators Sep 9, 2019
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants