Skip to content

Commit 8db6ed3

Browse files
committed
fix(checkbox): trying to fix lack of label error
1 parent d82a204 commit 8db6ed3

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

core/src/components/checkbox/checkbox.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -268,7 +268,7 @@ export class Checkbox implements ComponentInterface {
268268
aria-checked={indeterminate ? 'mixed' : `${checked}`}
269269
aria-describedby={this.getHintTextID()}
270270
aria-invalid={this.getHintTextID() === this.errorTextId}
271-
aria-labelledby={inputId + '-lbl'}
271+
aria-label={this.renderHintText()}
272272
aria-disabled={disabled ? 'true' : null}
273273
tabindex="0"
274274
onKeyDown={this.onKeyDown}

0 commit comments

Comments
 (0)