i want to remove the css-class mat-radio-container if my switchcase pictureRadio is selected
i tried giving the radio-button an extra class and select it in the css like this:
.mat-radio-container-no-show .mat-radio-container {
display: none;
}
but its not working. I also cant give it an id because it i get more than one of these. Also Also i need the vanilla mat-radio-container css-class for my other switchcase
this is my code
<div *ngSwitchCase="'radio'" [formGroup]="form" class="mat-form-field--no-underline">
<mat-radio-group [formControlName]="question.key" [id]="question.key" fxLayout="column">
<mat-label style="margin-bottom: 5px; color: rgba(0, 0, 0, 0.54)" [attr.for]="question.key">{{question.label}}</mat-label>
<mat-radio-button style="margin-right: 20px" color="primary" *ngFor="let opt of question.options" [value]="opt.id">{{opt.value}}</mat-radio-button>
</mat-radio-group>
<mat-divider style="margin-bottom: 15px; margin-top: 10px; background-color: rgba(0, 0, 0, 0.42)"></mat-divider>
</div>
<div *ngSwitchCase="'pictureRadio'" [formGroup]="form" class="mat-form-field--no-underline">
<mat-radio-group [formControlName]="question.key" [id]="question.key" fxLayout="column">
<mat-label style="margin-bottom: 5px; color: rgba(0, 0, 0, 0.54)" [attr.for]="question.key">{{question.label}}</mat-label>
<mat-radio-button style="margin-right: 20px" class="mat-radio-container-no-show" color="primary" *ngFor="let opt of question.options" [value]="opt.id"><img width="100px" src="../../assets/media/no_pictures/test_no_product_en.png"></mat-radio-button>
</mat-radio-group>
<mat-divider style="margin-bottom: 15px; margin-top: 10px; background-color: rgba(0, 0, 0, 0.42)"></mat-divider>
</div>
How can i make sure that my display: none; acctually gets through