@brightspace-ui/core 3.135.4 → 3.135.6

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
  }
@@ -270,7 +270,7 @@ export const DialogMixin = superclass => class extends RtlMixin(superclass) {
270
270
  const availableHeight = this._ifrauContextInfo
271
271
  ? this._ifrauContextInfo.availableHeight - this._margin.top - this._margin.bottom
272
272
  : window.innerHeight - this._margin.top - this._margin.bottom;
273
- let preferredHeight = 2;
273
+ let preferredHeight = 3; // content height is off by 2px and we need an extra 1px to account for rounding when zoomed
274
274
 
275
275
  if (this.fullHeight) {
276
276
  preferredHeight = 2 * this._width;
@@ -550,8 +550,10 @@ export const DialogMixin = superclass => class extends RtlMixin(superclass) {
550
550
  _updateOverflow() {
551
551
  if (!this.shadowRoot) return;
552
552
  const content = this.shadowRoot.querySelector('.d2l-dialog-content');
553
+ // On Windows, browser zoom can cause scrollTop to be a fraction
554
+ const bottomOverflow = content.scrollHeight - (Math.ceil(content.scrollTop) + content.clientHeight);
553
555
  this._overflowTop = (content.scrollTop > 0);
554
- this._overflowBottom = (content.scrollHeight > content.scrollTop + content.clientHeight);
556
+ this._overflowBottom = (bottomOverflow > 0);
555
557
  }
556
558
 
557
559
  async _updateSize() {
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.6",
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",