-
Notifications
You must be signed in to change notification settings - Fork 6.8k
fix(tabs): hide mat-tab-nav-bar ink bar when no link is active #9701
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
fix(tabs): hide mat-tab-nav-bar ink bar when no link is active #9701
Conversation
Fixes #4436 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
/** Notifies the component that the active link has been changed. */ | ||
/** | ||
* Notifies the component that the active link has been changed. | ||
* @deletion-target 6.0.0 `element` parameter to be removed. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
7.0?
Currently the `mat-tab-nav-bar` updates the ink bar location whenever a link becomes active, however this doesn't account for the case where none of the links are active. These changes switch to checking for active links whenever the active state of any of the tabs changes and hiding the ink bar if none of them are active. Fixes angular#9671.
0bce0f8
to
eac10e2
Compare
…rotected properties In angular#9701 we made the `_activeLinkChanged` and `_activeLinkElement` properties private which makes them inaccessible when extending. These changes switch them to be protected. Fixes angular#10939.
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. |
Currently the
mat-tab-nav-bar
updates the ink bar location whenever a link becomes active, however this doesn't account for the case where none of the links are active. These changes switch to checking for active links whenever the active state of any of the tabs changes and hiding the ink bar if none of them are active.Fixes #9671.