I need to set the width of a mat-option to the same value as the mat-select. The problem is that the cdk-overlay-pane adds a style with a transform: translateX(-16px).
I can remove that by SCSS but I need to know if there are other options to do this.
I've tried overwriting the SELECT_PANEL_INDENT_PADDING_X, but with no success
<mat-form-field [class.mat-form-field-invalid]="hasError">
<mat-select
[placeholder]="placeholder"
[formControlName]="inputId"
disableOptionCentering
panelClass="join-panel-alligment"
>
<mat-option
*ngFor="let item of question.answerPossibilityList"
[id]="question.id + '_so_' + item.id"
[value]="item"
>
{{ item.label }}
</mat-option>
</mat-select>
</mat-form-field>
Expected result: https://i.stack.imgur.com/Y4Geu.jpg