@brightspace-ui/core 3.293.0 → 3.295.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 (
|
|
182
|
-
|
|
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 (
|
|
222
|
-
|
|
223
|
-
|
|
224
|
-
|
|
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
|
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@brightspace-ui/core",
|
|
3
|
-
"version": "3.
|
|
3
|
+
"version": "3.295.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",
|