@nectary/components 5.20.8 → 5.20.9
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/bundle.js +3 -0
- package/package.json +1 -1
- package/radio-option/index.js +3 -0
package/bundle.js
CHANGED
|
@@ -8563,11 +8563,13 @@ const template$p = document.createElement("template");
|
|
|
8563
8563
|
template$p.innerHTML = templateHTML$p;
|
|
8564
8564
|
class RadioOption extends NectaryElement {
|
|
8565
8565
|
#$label;
|
|
8566
|
+
#$input;
|
|
8566
8567
|
constructor() {
|
|
8567
8568
|
super();
|
|
8568
8569
|
const shadowRoot = this.attachShadow();
|
|
8569
8570
|
shadowRoot.appendChild(template$p.content.cloneNode(true));
|
|
8570
8571
|
this.#$label = shadowRoot.querySelector("#label");
|
|
8572
|
+
this.#$input = shadowRoot.querySelector("#input");
|
|
8571
8573
|
}
|
|
8572
8574
|
connectedCallback() {
|
|
8573
8575
|
this.setAttribute("role", "radio");
|
|
@@ -8595,6 +8597,7 @@ class RadioOption extends NectaryElement {
|
|
|
8595
8597
|
case "checked": {
|
|
8596
8598
|
const isChecked = isAttrTrue(newVal);
|
|
8597
8599
|
updateExplicitBooleanAttribute(this, "aria-checked", isChecked);
|
|
8600
|
+
updateExplicitBooleanAttribute(this.#$input, "aria-checked", isChecked);
|
|
8598
8601
|
updateBooleanAttribute(this, "checked", isChecked);
|
|
8599
8602
|
break;
|
|
8600
8603
|
}
|
package/package.json
CHANGED
package/radio-option/index.js
CHANGED
|
@@ -5,11 +5,13 @@ const template = document.createElement("template");
|
|
|
5
5
|
template.innerHTML = templateHTML;
|
|
6
6
|
class RadioOption extends NectaryElement {
|
|
7
7
|
#$label;
|
|
8
|
+
#$input;
|
|
8
9
|
constructor() {
|
|
9
10
|
super();
|
|
10
11
|
const shadowRoot = this.attachShadow();
|
|
11
12
|
shadowRoot.appendChild(template.content.cloneNode(true));
|
|
12
13
|
this.#$label = shadowRoot.querySelector("#label");
|
|
14
|
+
this.#$input = shadowRoot.querySelector("#input");
|
|
13
15
|
}
|
|
14
16
|
connectedCallback() {
|
|
15
17
|
this.setAttribute("role", "radio");
|
|
@@ -37,6 +39,7 @@ class RadioOption extends NectaryElement {
|
|
|
37
39
|
case "checked": {
|
|
38
40
|
const isChecked = isAttrTrue(newVal);
|
|
39
41
|
updateExplicitBooleanAttribute(this, "aria-checked", isChecked);
|
|
42
|
+
updateExplicitBooleanAttribute(this.#$input, "aria-checked", isChecked);
|
|
40
43
|
updateBooleanAttribute(this, "checked", isChecked);
|
|
41
44
|
break;
|
|
42
45
|
}
|