@brightspace-ui/core 3.135.4 → 3.135.5

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.
@@ -19,6 +19,9 @@ export const descriptionListStyles = [
19
19
  grid-auto-flow: row;
20
20
  grid-template-columns: minmax(var(--d2l-dl-wrapper-dt-min-width), auto) minmax(var(--d2l-dl-wrapper-dd-min-width), 1fr);
21
21
  }
22
+ d2l-dl-wrapper > dl[hidden] {
23
+ display: none;
24
+ }
22
25
  d2l-dl-wrapper > dl > dt {
23
26
  margin: var(--d2l-dl-wrapper-dt-margin, 0);
24
27
  max-width: var(--d2l-dl-wrapper-dt-max-width);
@@ -107,6 +110,7 @@ class DescriptionListWrapper extends LitElement {
107
110
  _onResize(entries) {
108
111
  if (!entries || entries.length === 0) return;
109
112
  const entry = entries[0];
113
+ if (entry.contentRect.width === 0) return; // ignore if we're hidden
110
114
 
111
115
  requestAnimationFrame(() => this._stacked = entry.contentRect.width < this.breakpoint);
112
116
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@brightspace-ui/core",
3
- "version": "3.135.4",
3
+ "version": "3.135.5",
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",