title: Centering mat-tab-group
body: <p>I have 2 labels and I want them to be in the middle. Angular Material provides simple class <code>mat-align-tabs="center"</code> which doesn't work at all. I searched an internet an found solutions for md, which is old version of Material. Surprised that nobody didn't face same problem.</p>
  
  <p>HTML:  </p>
  
  <pre><code>&lt;mat-tab-group [(selectedIndex)]="selectedTabIndex"  mat-align-tabs="center"&gt;
      &lt;mat-tab id="Wyszuk" label="Wyszukiwanie" *ngIf="!leadOffer.isSent"&gt;
        &lt;app-offer-search-candidates [offerId]="leadOffer.id" [leadId]="leadId" [offer]="leadOffer"
          [candidatesToVerification]="candidatesToVerificationDataSource.data" [awaitingCandidates]="awaitingCandidatesDataSource.data"
          (addCandidatesToVerification)="onAddCandidatesToVerification($event)" (addAwaitingCandidates)="onAddAwaitingCandidates($event)"
          (addCandidatesToCart)="onAddCandidatesToCart($event)" (searchSave)="onSearchSave($event)"&gt;
        &lt;/app-offer-search-candidates&gt;
      &lt;/mat-tab&gt;
  
      &lt;mat-tab label="Koszyk ofertowy"&gt;
        &lt;app-offer-cart [dataSource]="candidatesDataSource" [searchModel]="searchModel" [readOnly]="leadOffer.isSent"
          [attachmentsDataSource]="attachmentsDataSource" (refresh)="onRefreshCandidates()" (removeCandidates)="onRemoveCandidatesFromCart($event)"
          (sendOffer)="onSendOffer($event)" (removeAllCandidates)="onRemoveAllCandidates()" (removeCart)="onRemoveCart()"
          (generateOffer)="onGenerateOffer()" (attachmentsLoaded)="onAttachmentsLoaded($event)" (removeAttachments)="onRemoveAttachments($event)"
          (generateCvs)="onGenerateCvs($event)" (updateProjectRole)="onUpdateProjectRole($event)" (updateSuggestedPrice)="onUpdateSuggestedPrice($event)"
          (candidateCvLoaded)="onCandidateOfferCvLoaded($event)"&gt;
        &lt;/app-offer-cart&gt;
      &lt;/mat-tab&gt;
  &lt;/mat-tab-group&gt;
  </code></pre>
  
  <p><a href="https://i.stack.imgur.com/pwaRi.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/pwaRi.png" alt="Check this Image Out"></a></p>