@brightspace-ui/core 3.294.0 → 3.296.0

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.
@@ -2,7 +2,6 @@ import '../colors/colors.js';
2
2
  import { css, html, LitElement } from 'lit';
3
3
  import { cssEscape, getComposedChildren, getComposedParent, isComposedAncestor, isVisible } from '../../helpers/dom.js';
4
4
  import { getComposedActiveElement } from '../../helpers/focus.js';
5
- import { getFlag } from '../../helpers/flags.js';
6
5
 
7
6
  const BACKDROP_HIDDEN = 'data-d2l-backdrop-hidden';
8
7
  const BACKDROP_ARIA_HIDDEN = 'data-d2l-backdrop-aria-hidden';
@@ -178,12 +177,10 @@ function hideAccessible(target) {
178
177
  }
179
178
  child.setAttribute('tabindex', '-1');
180
179
 
181
- if (getFlag('GAUD-9398-make-backdrop-inert', true)) {
182
- if (child.hasAttribute('inert')) {
183
- child.setAttribute(BACKDROP_INERT, '');
184
- }
185
- child.setAttribute('inert', '');
180
+ if (child.hasAttribute('inert')) {
181
+ child.setAttribute(BACKDROP_INERT, '');
186
182
  }
183
+ child.setAttribute('inert', '');
187
184
 
188
185
  child.setAttribute(BACKDROP_HIDDEN, BACKDROP_HIDDEN);
189
186
  hiddenElements.push(child);
@@ -218,12 +215,10 @@ function showAccessible(elems) {
218
215
  } else {
219
216
  elem.removeAttribute('tabindex');
220
217
  }
221
- if (getFlag('GAUD-9398-make-backdrop-inert', true)) {
222
- if (elem.hasAttribute(BACKDROP_INERT)) {
223
- elem.removeAttribute(BACKDROP_INERT);
224
- } else {
225
- elem.removeAttribute('inert');
226
- }
218
+ if (elem.hasAttribute(BACKDROP_INERT)) {
219
+ elem.removeAttribute(BACKDROP_INERT);
220
+ } else {
221
+ elem.removeAttribute('inert');
227
222
  }
228
223
  elem.removeAttribute(BACKDROP_HIDDEN);
229
224
  }
@@ -5,7 +5,6 @@ import { clearDismissible, setDismissible } from '../../helpers/dismissible.js';
5
5
  import { findComposedAncestor, getComposedChildren, isComposedAncestor } from '../../helpers/dom.js';
6
6
  import { getComposedActiveElement, getFirstFocusableDescendant, getFirstFocusableRelative, getNextFocusable, isFocusable } from '../../helpers/focus.js';
7
7
  import { classMap } from 'lit/directives/class-map.js';
8
- import { getFlag } from '../../helpers/flags.js';
9
8
  import { getUniqueId } from '../../helpers/uniqueId.js';
10
9
  import { html } from 'lit';
11
10
  import { ifDefined } from 'lit/directives/if-defined.js';
@@ -26,8 +25,6 @@ const reduceMotion = matchMedia('(prefers-reduced-motion: reduce)').matches;
26
25
  const abortAction = 'abort';
27
26
  const defaultMargin = { top: 75, right: 30, bottom: 30, left: 30 };
28
27
 
29
- const closeDialogWhenDisconnectedFlag = getFlag('GAUD-10113-close-dialog-when-disconnected', true);
30
-
31
28
  export const DialogMixin = superclass => class extends superclass {
32
29
 
33
30
  static properties = {
@@ -107,7 +104,7 @@ export const DialogMixin = superclass => class extends superclass {
107
104
  window.removeEventListener('d2l-mvc-dialog-open', this.#handleMvcDialogOpen);
108
105
 
109
106
  // If the dialog is disconnected before the close animation finishes
110
- if (this.opened && closeDialogWhenDisconnectedFlag) {
107
+ if (this.opened) {
111
108
  this._handleClose();
112
109
  }
113
110
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@brightspace-ui/core",
3
- "version": "3.294.0",
3
+ "version": "3.296.0",
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",