md-ink-bar not visible using <nav md-tab-nav-bar>
See original GitHub issueBug, feature request, or proposal:
Bug
What is the expected behavior?
md-ink-bar should be visible
What is the current behavior?
md-ink-bar is not visible. The .mat-ink-bar class is not changed when clicking the tabs:
.mat-ink-bar {
position: absolute;
bottom: 0;
height: 2px;
transition: .5s cubic-bezier(.35,0,.25,1);
}
What are the steps to reproduce?
http://plnkr.co/edit/qXJdsDIr5pwXxCdbRyLL
The plunker includes a simple example, however I could not get the router to work correctly, because I am not familiar with plunker.
What is the use-case or motivation for changing an existing behavior?
<nav md-tab-nav-bar>
should yield the same presentation as <md-tab-group>
Which versions of Angular, Material, OS, browsers are affected?
Tested on angular 2.3 and 2.4, material2 2.0.0-beta.2, Chrome v56
Is there anything else we should know?
nope
Issue Analytics
- State:
- Created 7 years ago
- Reactions:1
- Comments:11 (4 by maintainers)
Top Results From Across the Web
<nav>: The Navigation Section element - MDN Web Docs
The HTML element represents a section of a page whose purpose is to provide navigation links, either within the current document or to...
Read more >Extend Angular Component ( Only decorator)
This is a workaround. I created a new directive @Directive({ selector: '[myTabNavBar]', }) export class TabNavBarDirective ...
Read more >HTML nav hidden Attribute
The hidden attribute on a nav element hides that element. Althought not visible, the element's position on the page is maintained.
Read more >HTML nav Tag
Definition and Usage. The <nav> tag defines a set of navigation links. Notice that NOT all links of a document should be inside...
Read more >H97: Grouping related links using the nav element
The nav element is one of several sectioning elements in HTML5. Use of this markup can make groups of links easier to locate...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
@Pikachews The reason this doesn’t work for you (and using *ngFor does) is because of your redefining of
#rla
which has a template-wide scope. The following should workI’m seeing an issue where the ink bar does not show up with the correct width but it does show up. Will begin working on the issue I see, but I cannot reproduce your case.
Can you fork my plunker and try to reproduce with it? Note that you do not need to use the router, just manipulate the active input manually.
http://plnkr.co/edit/AGSBYVx4ucPVmXOd7abT?p=preview