File tree Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -206,15 +206,15 @@ export class UUIRadioElement extends LitElement {
206
206
private _onChange ( ) {
207
207
if ( this . inputElement . checked ) {
208
208
this . checked = true ;
209
- this . setAttribute ( 'aria-checked' , 'true ' ) ;
209
+ this . setAttribute ( 'aria-checked' , '' ) ;
210
210
if ( ! this . disabled ) {
211
211
this . setAttribute ( 'tabindex' , '0' ) ;
212
212
this . focus ( ) ;
213
213
}
214
214
} else {
215
215
this . checked = false ;
216
216
this . setAttribute ( 'tabindex' , '-1' ) ;
217
- this . setAttribute ( 'aria-checked' , 'false ') ;
217
+ this . removeAttribute ( 'aria-checked' ) ;
218
218
}
219
219
this . dispatchEvent ( new UUIRadioEvent ( UUIRadioEvent . CHANGE ) ) ;
220
220
}
@@ -249,7 +249,7 @@ export class UUIRadioElement extends LitElement {
249
249
//if (!this.hasAttribute('role')) this.setAttribute('role', 'radio');
250
250
if ( ! this . hasAttribute ( 'tabindex' ) ) this . setAttribute ( 'tabindex' , '-1' ) ;
251
251
if ( ! this . hasAttribute ( 'aria-checked' ) )
252
- this . setAttribute ( 'aria-checked' , 'false ') ;
252
+ this . removeAttribute ( 'aria-checked' ) ;
253
253
}
254
254
255
255
render ( ) {
You can’t perform that action at this time.
0 commit comments