We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 7c46746 commit bba46daCopy full SHA for bba46da
packages/web-components/src/components/checkbox/checkbox.ts
@@ -108,7 +108,7 @@ class CDSCheckbox extends FocusMixin(FormMixin(LitElement)) {
108
* Specify a custom id for the checkbox
109
*/
110
@property({ reflect: true })
111
- id = '';
+ id = 'checkbox';
112
113
/**
114
* Specify whether the Checkbox is in an indeterminate state
@@ -267,7 +267,7 @@ class CDSCheckbox extends FocusMixin(FormMixin(LitElement)) {
267
@change="${handleChange}"
268
@click="${handleClick}" />
269
<label
270
- for="checkbox"
+ for="${ifDefined(id)}"
271
part="label"
272
class="${labelClasses}"
273
title="${ifDefined(title)}">
0 commit comments