Skip to content

[Tabs] Tabs active indicator not responsive #1231

Closed

Description

@sv2dev

Bug, feature request, or proposal:

When resizing the VP, The tab active indicator size and position is not recalculated.
This is causing for problems if you want to have the tabs span accross the full width via setting flex-grow: 1 for example. I currently have

:host /deep/ .md-tab-label {
  flex: 1;
  min-width: 120px !important;
}

in my component styles.

This represents the fixed tabs type of the md tabs specs: https://material.google.com/components/tabs.html#tabs-types-of-tabs

What is the expected behavior?

The position and size should be recalculated when resizing the viewport.

What is the current behavior?

When You resize the Viewport, the length and position of the active indicator stays the same.

What are the steps to reproduce?

Visit http://plnkr.co/edit/tFkzdaw9ejYBpo3OGnKC?p=preview and resize the VP.

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

Static tabs are part of the material design spec.

Which versions of Angular, Material, OS, browsers are affected?

All, I think. Tested with aplha 7 and alpha 8.

Activity

  1. changed the title [-]bug(tabs) Tabs active indicator not responsive[/-] [+]Tabs active indicator not responsive[/+] on Sep 14, 2016
  2. self-assigned this
    on Nov 3, 2016
  3. changed the title [-]Tabs active indicator not responsive[/-] [+][Tabs] Tabs active indicator not responsive[/+] on Nov 16, 2016
  4. added
    P3
    on Nov 16, 2016
  5. added a commit that references this issue on Apr 2, 2017
    e8daabf
  6. added a commit that references this issue on Apr 21, 2017
    7942948
  7. angular-automatic-lock-bot commented on Sep 5, 2019

    @angular-automatic-lock-bot

    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.

  8. locked and limited conversation to collaborators on Sep 5, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

P3

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions