@brightspace-ui/core 2.0.2 → 2.0.3

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.
@@ -51,17 +51,6 @@ export const TabPanelMixin = superclass => class extends superclass {
51
51
  this.selected = false;
52
52
  }
53
53
 
54
- async attributeChangedCallback(name, oldval, newval) {
55
- super.attributeChangedCallback(name, oldval, newval);
56
- if (name === 'text') {
57
- this.setAttribute('aria-label', this.text);
58
- /** Dispatched when the text attribute is changed */
59
- this.dispatchEvent(new CustomEvent(
60
- 'd2l-tab-panel-text-changed', { bubbles: true, composed: true, detail: { text: this.text } }
61
- ));
62
- }
63
- }
64
-
65
54
  connectedCallback() {
66
55
  super.connectedCallback();
67
56
  if (this.id.length === 0) this.id = getUniqueId();
@@ -80,6 +69,11 @@ export const TabPanelMixin = superclass => class extends superclass {
80
69
  ));
81
70
  });
82
71
  }
72
+ } else if (prop === 'text') {
73
+ this.setAttribute('aria-label', this.text);
74
+ this.dispatchEvent(new CustomEvent(
75
+ 'd2l-tab-panel-text-changed', { bubbles: true, composed: true, detail: { text: this.text } }
76
+ ));
83
77
  }
84
78
  });
85
79
  }
@@ -9702,13 +9702,12 @@
9702
9702
  }
9703
9703
  ],
9704
9704
  "events": [
9705
- {
9706
- "name": "d2l-tab-panel-text-changed",
9707
- "description": "Dispatched when the text attribute is changed"
9708
- },
9709
9705
  {
9710
9706
  "name": "d2l-tab-panel-selected",
9711
9707
  "description": "Dispatched when a tab is selected"
9708
+ },
9709
+ {
9710
+ "name": "d2l-tab-panel-text-changed"
9712
9711
  }
9713
9712
  ],
9714
9713
  "slots": [
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@brightspace-ui/core",
3
- "version": "2.0.2",
3
+ "version": "2.0.3",
4
4
  "description": "A collection of accessible, free, open-source web components for building Brightspace applications",
5
5
  "type": "module",
6
6
  "repository": "https://github.com/BrightspaceUI/core.git",