question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

No underline on active link with multiple <md-tab-group>

See original GitHub issue

Bug, feature request, or proposal:

Bug Plunk: https://plnkr.co/edit/qyKDATOdTb0msRnYjbbe?p=preview (thanks @julianobrasil)

Use multiple <md-tab> and <md-tab-group> imbricated => lost the underline on active <md-tab>

This is an example:

<div fxLayoutWrap fxLayoutGap="10px" fxLayout="row" fxLayout.xs="column" fxLayoutAlign="center start">
  <md-tab-group class="header-tab-admin" fxFlex="75">
    <md-tab label="{{'COMMONS.FAMILY.FAMILY' | translate}}"></md-tab>
    <md-tab label="{{'COMMONS.USER.USER' | translate}}"></md-card>
    
    <md-tab label="{{'COMMONS.HOS.HOS' | translate}}"> // I select this tab
      <md-tab-group class="header-tab-2-sub-admin">
        <md-tab label="{{'COMMONS.SEARCH2' | translate}}"> // Here NO UNDERLINE COLOR UNTIL I CLICK ON IT
        </md-tab>
        <md-tab label="{{'COMMONS.CREATE2' | translate}}"></md-tab>
      </md-tab-group>
    </md-tab>
  </md-tab-group>
</div>

Picture: image

What is the expected behavior?

An underline on the active item <md-tab>

What is the current behavior?

No underline for the active tab. See the snippet code mentioned before.

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

I need to have two <md-tab> and <md-tab-group> imbricated for my needs

Maybe I don’t use them correctly. I let you to say me about it.

Thank you in advance

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

Angular 4.4.3 OS: Windows 7 Pro 64 bits TS: 2.4.1 Material: 2.0.0-beta.11 Browser: Chrome V60

Is there anything else we should know?

Nothing else

Issue Analytics

  • State:open
  • Created 6 years ago
  • Reactions:10
  • Comments:29 (11 by maintainers)

github_iconTop GitHub Comments

15reactions
BeatriceThalocommented, Jun 11, 2018

A workaround: whenever the outer mat-tab-group changes its selectedIndex to unhide your inner mat-tab-group, call window.dispatchEvent(new Event('resize'));

9reactions
Roman-Simikcommented, May 11, 2021

4 years, 4 years, 4 years and still no fix -_-

Read more comments on GitHub >

github_iconTop Results From Across the Web

Angular-2-material mat-ink-bar not on default tab
I am trying to lay out tabs on my website and I am using md-tab-group to achieve this ...
Read more >
Remove the underline from hyperlink text - Microsoft Support
Remove the underline from hyperlink text · Right-click the hyperlink text, and then click Remove Hyperlink. · On the Insert tab, in the...
Read more >
How to Remove the Underline from Links in CSS - HubSpot Blog
Below we'll walk through how to define this property to completely remove the underline from links on your HTML site or Bootstrap site....
Read more >
How to Remove Underline from a Link in CSS - freeCodeCamp
How to Remove Underline from a Link in CSS – HTML Style Guide ... a:link : the regular state of the link when...
Read more >
Turning off link underlining in Dreamweaver 3 and 4
There may be times when you want to have links appear on your Web page without the default underlining. There are two ways...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found