Skip to content

Commit

Permalink
fix(tabs): handle long tab labels in mat-tab-nav-bar (angular#10903)
Browse files Browse the repository at this point in the history
Fixes the `mat-tab-link` not handling long text strings.
  • Loading branch information
crisbeto authored and jelbourn committed May 14, 2018
1 parent b15b8be commit f5eda86
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion src/lib/tabs/tab-nav-bar/tab-nav-bar.scss
Original file line number Diff line number Diff line change
Expand Up @@ -14,11 +14,16 @@
// Wraps each link in the header
.mat-tab-link {
@include tab-label;
vertical-align: top;
line-height: $mat-tab-bar-height;
text-decoration: none; // Removes anchor underline styling
position: relative;
overflow: hidden; // Keeps the ripple from extending outside the element bounds

// Allows for the ellipsis overflow to work. We truncate the
// text since we don't support pagination on nav bars.
display: block;
text-overflow: ellipsis;

[mat-stretch-tabs] & {
flex-basis: 0;
flex-grow: 1;
Expand Down

0 comments on commit f5eda86

Please sign in to comment.