I tried to change the component radio button by the css in my code but it doesn't seem to work.
The normal behavior of this component is to have the button on the left and the label on the right and i want to inverse this order. I want to have the label on the left and the button on extreme right of my parent composant.
The radio composant in my xxx.component.html looks like that:
<mat-radio-group
class="radio-group"
[(ngModel)]="model">
<mat-radio-button class="radio-button" *ngFor="let element of list" [value]="element.Id">
{{element.name}}
</mat-radio-button>
</mat-radio-group>
The radio component in chrome looks like that:
<mat-radio-group class="mat-radio-group radio-group">
<mat-radio-button class="mat-radio-button radio-button">
<label class="mat-radio-label">
<div class="mat-radio-container">...</div>
<div class="mat-radio-label-content">...</div>
</label>
</mat-radio-button>
...
</mat-radio-group>
I tried to change the class "mat-radio-container" and put "left:100%!important" but it doesn't worked. It seems that i can't change the behavior of subclasses, if i change the classes radio-group or radio-button that i created, i can have an influence on the component but i can't change mat-radio-container or mat-radio-label-content per example.
All the test i made was in the xxx.component.scss
Is someone know how i can put this button on the right or how i can change the "subclasses" of this element only in this component ?
edit: I want the label to be aligned on the left of the parent div and button aligned to the right of the parent div, not label on the left and the button closed to the label.