[Tabs] Provide an alignTabs property
Bug, feature request, or proposal:
feature request
What is the expected behavior?
Regarding to design doc there should be property [alignTabs]

Doc: https://docs.google.com/document/d/1djxF6AKGijZl6LOoJ0asFbkf1-GqSAp1CSIyurtKVog/preview#
What is the current behavior?
There is no such a property
What is the use-case or motivation for changing an existing behavior?
I have to center the labels align
Instead of this:

I would like to aligh them like this:

From my perspective, it wouldn't be quite as bad if you could simply use @angular/flex-layout on the elements... e.g.:
<nav mat-tab-nav-bar fxLayout="row" fxLayoutAlign="space-around center">
...
</nav>
Except that with the mat-tab-nav-bar directive, it creates an internal <div> to register cdkObserveContent.
A work-around requires use of ::ng-deep in the style:
.mat-tab-nav-bar {
::ng-deep .mat-tab-links {
display: flex;
flex-direction: row;
align-items: center;
justify-content: space-around;
}
}
The property is called mat-align-tabs and it's been available for a long time. See https://material.angular.io/components/tabs/examples#tab-group-align.
@crisbeto How to set the alignment via a variable?
mat-align-tabs="{{tabAlign}}" when tabAlign 'start' or 'center' or 'end'
<mat-tab-group [attr.mat-align-tabs]="tabAlign"> should be enough.
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.