I want the Angular material tab's mat-ink-bar to take the width of the tab header text's width. Currently it is larger than the tab header text width.
Following image shows how it looks now.

Following image shows how I want it to be.

Could you help me on how to make this happen?