Skip to content

Commit 047b3d8

Browse files
committed
fix: Improve accessibility using attribute binding
Signed-off-by: Akshat Patel <[email protected]>
1 parent 2902e6a commit 047b3d8

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

src/radio/radio.component.ts

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@ import { RadioChange } from "./radio-change.class";
3333
[name]="name"
3434
[id]="id"
3535
[required]="required"
36-
[value]="value"
36+
[attr.value]="value"
3737
[attr.aria-labelledby]="ariaLabelledby"
3838
(change)="onChange($event)"
3939
(click)="onClick($event)">
@@ -86,7 +86,7 @@ export class Radio {
8686
/**
8787
* Used to set the `aria-label` attribute on the input label.
8888
*/
89-
@Input() ariaLabel = "";
89+
@Input() ariaLabel: string;
9090

9191
/**
9292
* Sets the HTML required attribute
@@ -95,7 +95,7 @@ export class Radio {
9595
/**
9696
* The value of the `Radio`.
9797
*/
98-
@Input() value = "";
98+
@Input() value;
9999
/**
100100
* Set to `true` for a loading table.
101101
*/

0 commit comments

Comments
 (0)