@brightspace-ui/core 3.342.0 → 3.342.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.
@@ -400,6 +400,9 @@ class AlertToast extends LitElement {
400
400
  }
401
401
 
402
402
  _onStateClosed() {
403
+ if (usePopover()) {
404
+ this.shadowRoot.querySelector('[popover="manual"]')?.hidePopover();
405
+ }
403
406
  this._state = states.CLOSED;
404
407
  this._totalSiblingHeightBelow = 0;
405
408
  this._numAlertsBelow = 0;
@@ -442,10 +445,6 @@ class AlertToast extends LitElement {
442
445
  } else {
443
446
  if (!this._innerContainer) return;
444
447
 
445
- if (usePopover()) {
446
- this.shadowRoot.querySelector('[popover="manual"]')?.hidePopover();
447
- }
448
-
449
448
  if (activeReduceMotion || this._state === states.PREOPENING) {
450
449
  cancelAnimationFrame(this._preopenFrame);
451
450
  } else if (this._state === states.OPENING || this._state === states.OPEN || this._state === states.SLIDING) {
@@ -1,7 +1,5 @@
1
1
  import { css } from 'lit';
2
- import { getFlag } from '../../helpers/flags.js';
3
2
 
4
- const OffSCREEN_SIZELESS = getFlag('d2l-offscreen-sizeless', true);
5
3
  const HAS_DOCUMENT = globalThis.document !== undefined;
6
4
 
7
5
  /**
@@ -9,12 +7,12 @@ const HAS_DOCUMENT = globalThis.document !== undefined;
9
7
  */
10
8
  export const _offscreenStyleDeclarations = css`
11
9
  direction: var(--d2l-document-direction, ${ !HAS_DOCUMENT ? css`unset` : (document.dir === 'rtl' ? css`rtl` : css`ltr`)}); /* stylelint-disable-line @stylistic/string-quotes */
12
- height: ${HAS_DOCUMENT && OffSCREEN_SIZELESS ? 0 : 1}px; /* The HAS_DOCUMENT check can be removed once the d2l-offscreen-sizeless flag is removed and set to 0px */
10
+ height: 0;
13
11
  inset-inline-start: -10000px;
14
12
  overflow: hidden;
15
13
  position: absolute !important;
16
14
  white-space: nowrap;
17
- width: ${HAS_DOCUMENT && OffSCREEN_SIZELESS ? 0 : 1}px; /* The HAS_DOCUMENT check can be removed once the d2l-offscreen-sizeless flag is removed and set to 0px */
15
+ width: 0;
18
16
  `;
19
17
 
20
18
  export const offscreenStyles = css`
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@brightspace-ui/core",
3
- "version": "3.342.0",
3
+ "version": "3.342.2",
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",