@nectary/components 5.45.1 → 5.45.2

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 CHANGED
@@ -10209,10 +10209,14 @@ class PersistentOverlay extends NectaryElement {
10209
10209
  this.#$sinchDialog = shadowRoot.querySelector("#persisted-dialog");
10210
10210
  }
10211
10211
  static get observedAttributes() {
10212
- return ["caption", "open"];
10212
+ return ["aria-label", "caption", "open"];
10213
10213
  }
10214
10214
  attributeChangedCallback(name, oldVal, newVal) {
10215
10215
  switch (name) {
10216
+ case "aria-label": {
10217
+ updateAttribute(this.#$sinchDialog, "aria-label", newVal);
10218
+ break;
10219
+ }
10216
10220
  case "caption": {
10217
10221
  updateAttribute(this.#$sinchDialog, "caption", newVal);
10218
10222
  break;
@@ -10232,7 +10236,6 @@ class PersistentOverlay extends NectaryElement {
10232
10236
  }
10233
10237
  connectedCallback() {
10234
10238
  super.connectedCallback();
10235
- this.setAttribute("role", "dialog");
10236
10239
  this.#controller = new AbortController();
10237
10240
  const { signal } = this.#controller;
10238
10241
  this.addEventListener("-visibility-altered", this.#onVisibilityAlteredReactHandler, { signal });
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@nectary/components",
3
- "version": "5.45.1",
3
+ "version": "5.45.2",
4
4
  "files": [
5
5
  "**/*/*.css",
6
6
  "**/*/*.json",
@@ -28,10 +28,14 @@ class PersistentOverlay extends NectaryElement {
28
28
  this.#$sinchDialog = shadowRoot.querySelector("#persisted-dialog");
29
29
  }
30
30
  static get observedAttributes() {
31
- return ["caption", "open"];
31
+ return ["aria-label", "caption", "open"];
32
32
  }
33
33
  attributeChangedCallback(name, oldVal, newVal) {
34
34
  switch (name) {
35
+ case "aria-label": {
36
+ updateAttribute(this.#$sinchDialog, "aria-label", newVal);
37
+ break;
38
+ }
35
39
  case "caption": {
36
40
  updateAttribute(this.#$sinchDialog, "caption", newVal);
37
41
  break;
@@ -51,7 +55,6 @@ class PersistentOverlay extends NectaryElement {
51
55
  }
52
56
  connectedCallback() {
53
57
  super.connectedCallback();
54
- this.setAttribute("role", "dialog");
55
58
  this.#controller = new AbortController();
56
59
  const { signal } = this.#controller;
57
60
  this.addEventListener("-visibility-altered", this.#onVisibilityAlteredReactHandler, { signal });