@brightspace-ui/core 3.27.6 → 3.27.7

Sign up to get free protection for your applications and to get access to all the features.
@@ -4,6 +4,7 @@ import { cssEscape, getComposedChildren, getComposedParent, isVisible } from '..
4
4
 
5
5
  const BACKDROP_HIDDEN = 'data-d2l-backdrop-hidden';
6
6
  const BACKDROP_ARIA_HIDDEN = 'data-d2l-backdrop-aria-hidden';
7
+ const TRANSITION_DURATION = 200;
7
8
 
8
9
  const reduceMotion = matchMedia('(prefers-reduced-motion: reduce)').matches;
9
10
 
@@ -47,7 +48,7 @@ class Backdrop extends LitElement {
47
48
  opacity: 0;
48
49
  position: fixed;
49
50
  top: 0;
50
- transition: opacity 200ms ease-in;
51
+ transition: opacity ${TRANSITION_DURATION}ms ease-in;
51
52
  width: 0;
52
53
  z-index: 999;
53
54
  }
@@ -123,6 +124,7 @@ class Backdrop extends LitElement {
123
124
  if (!reduceMotion && !this.noAnimateHide && isVisible(this)) {
124
125
  this.addEventListener('transitionend', hide, { once: true });
125
126
  this._state = 'hiding';
127
+ setTimeout(() => this._state === 'hiding' && hide(), TRANSITION_DURATION + 100);
126
128
  } else {
127
129
  hide();
128
130
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@brightspace-ui/core",
3
- "version": "3.27.6",
3
+ "version": "3.27.7",
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",