@brightspace-ui/core 3.316.0 → 3.317.1

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.
@@ -257,11 +257,6 @@ Selecting a tab in the tab bar causes the related tab panel to be displayed. Tab
257
257
  |--|--|--|
258
258
  | `labelled-by` | String, required | Id of the tab that labels this panel |
259
259
  | `no-padding` | Boolean | Used to opt out of default padding/whitespace around the panel |
260
- | `text` | String | DEPRECATED: The text used for the tab, as well as labelling the panel. Required if not using d2l-tab/d2l-tab-panel implementation. |
261
- | `selected` | Boolean | DEPRECATED: Use to select the tab. Do NOT set if using the d2l-tab/d2l-tab-panel implementation. |
262
-
263
- ### Events
264
- - `d2l-tab-panel-selected`: DEPRECATED: Dispatched when a tab is selected
265
260
  <!-- docs: end hidden content -->
266
261
 
267
262
  ## Accessibility
@@ -1,6 +1,5 @@
1
1
  import { css } from 'lit';
2
2
  import { getUniqueId } from '../../helpers/uniqueId.js';
3
- import { getUseNewTabsStructureFlag } from './tabs.js';
4
3
 
5
4
  export const TabPanelMixin = superclass => class extends superclass {
6
5
 
@@ -20,18 +19,6 @@ export const TabPanelMixin = superclass => class extends superclass {
20
19
  */
21
20
  // eslint-disable-next-line lit/no-native-attributes
22
21
  role: { type: String, reflect: true },
23
- /**
24
- * DEPRECATED: Use to select the tab. Do NOT set if using the d2l-tab/d2l-tab-panel implementation.
25
- * Remove with GAUD-8299-core-tabs-use-new-structure flag clean up.
26
- * @type {boolean}
27
- */
28
- selected: { type: Boolean, reflect: true },
29
- /**
30
- * DEPRECATED: The text used for the tab, as well as labelling the panel. Required if not using d2l-tab/d2l-tab-panel implementation.
31
- * Remove with GAUD-8299-core-tabs-use-new-structure flag clean up.
32
- * @type {string}
33
- */
34
- text: { type: String },
35
22
  _selected: { type: Boolean, attribute: '_selected', reflect: true }
36
23
  };
37
24
 
@@ -44,10 +31,6 @@ export const TabPanelMixin = superclass => class extends superclass {
44
31
  :host([no-padding]) {
45
32
  margin: 0;
46
33
  }
47
- /* clean up with GAUD-8299-core-tabs-use-new-structure flag clean up */
48
- :host([selected]) {
49
- display: block;
50
- }
51
34
  :host([_selected]) {
52
35
  display: block;
53
36
  }
@@ -59,7 +42,6 @@ export const TabPanelMixin = superclass => class extends superclass {
59
42
  /** @ignore */
60
43
  this.role = 'tabpanel';
61
44
  this._selected = false;
62
- if (!this.#useTabsNewStructure) this.selected = false; // clean up with GAUD-8299-core-tabs-use-new-structure flag clean up
63
45
  }
64
46
 
65
47
  connectedCallback() {
@@ -74,29 +56,7 @@ export const TabPanelMixin = superclass => class extends superclass {
74
56
  if (prop === 'labelledBy') {
75
57
  this.setAttribute('aria-labelledby', this.labelledBy);
76
58
  }
77
-
78
- // clean up below with GAUD-8299-core-tabs-use-new-structure flag clean up
79
- if (this.#useTabsNewStructure) return;
80
-
81
- if (prop === 'selected') {
82
- if (this.selected) {
83
- requestAnimationFrame(() => {
84
- /** DEPRECATED: Dispatched when a tab is selected */
85
- this.dispatchEvent(new CustomEvent(
86
- 'd2l-tab-panel-selected', { bubbles: true, composed: true }
87
- ));
88
- });
89
- }
90
- } else if (prop === 'text') {
91
- this.setAttribute('aria-label', this.text);
92
- /** DEPRECATED: Dispatched when the text attribute is changed */
93
- this.dispatchEvent(new CustomEvent(
94
- 'd2l-tab-panel-text-changed', { bubbles: true, composed: true, detail: { text: this.text } }
95
- ));
96
- }
97
59
  });
98
60
  }
99
61
 
100
- #useTabsNewStructure = getUseNewTabsStructureFlag();
101
-
102
62
  };