Skip to content
Snippets Groups Projects
Commit af4d1016 authored by Marlène SIMONDANT's avatar Marlène SIMONDANT
Browse files

fix(accessibility): radio should not be nested in another interactive element

parent fd2a24d8
No related branches found
No related tags found
2 merge requests!846V3.1.0 (sans impression),!832fix(accessibility): radio should not be nested in another interactive element
<button type="button" tabindex="0" [ngClass]="{ selected: selected }" (click)="clicked()">
<div class="radioContainer" tabindex="-1" [ngClass]="{ selected: selected }" (click)="clicked()" (keydown)="clicked()">
<app-radio
[id]="id"
[checked]="selected === true"
......@@ -7,4 +7,4 @@
[size]="size"
[iconName]="iconName"
/>
</button>
</div>
@import 'color';
button {
.radioContainer {
width: 100%;
cursor: pointer;
box-sizing: border-box;
......
<div class="radioContainer">
<input
type="radio"
tabindex="-1"
[id]="id"
[checked]="checked"
[disabled]="disabled"
[ngClass]="classes"
(click)="action.emit($event)"
(keydown)="action.emit($event)"
/>
<app-svg-icon *ngIf="iconName" [iconClass]="'icon-44'" [folder]="'form'" [icon]="iconName" />
<div class="details">
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment