@brightspace-ui/core 2.184.1 → 2.184.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.
@@ -387,14 +387,19 @@ class AlertToast extends LitElement {
|
|
387
387
|
}
|
388
388
|
}
|
389
389
|
|
390
|
+
_onStateClosed() {
|
391
|
+
this._state = states.CLOSED;
|
392
|
+
this._totalSiblingHeightBelow = 0;
|
393
|
+
this._numAlertsBelow = 0;
|
394
|
+
this._closeClicked = false;
|
395
|
+
this.removeAttribute('role');
|
396
|
+
}
|
397
|
+
|
390
398
|
_onTransitionEnd() {
|
391
399
|
if (this._state === states.OPENING || this._state === states.SLIDING) {
|
392
400
|
this._state = states.OPEN;
|
393
401
|
} else if (this._state === states.CLOSING) {
|
394
|
-
this.
|
395
|
-
this._totalSiblingHeightBelow = 0;
|
396
|
-
this._closeClicked = false;
|
397
|
-
this._numAlertsBelow = 0;
|
402
|
+
this._onStateClosed();
|
398
403
|
}
|
399
404
|
}
|
400
405
|
|
@@ -433,10 +438,7 @@ class AlertToast extends LitElement {
|
|
433
438
|
const bottom = this._innerContainer.getBoundingClientRect().bottom;
|
434
439
|
|
435
440
|
if (activeReduceMotion || this._state === states.PREOPENING) {
|
436
|
-
this.
|
437
|
-
this._totalSiblingHeightBelow = 0;
|
438
|
-
this._numAlertsBelow = 0;
|
439
|
-
this._closeClicked = false;
|
441
|
+
this._onStateClosed();
|
440
442
|
}
|
441
443
|
|
442
444
|
this.dispatchEvent(new CustomEvent(
|
package/package.json
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
{
|
2
2
|
"name": "@brightspace-ui/core",
|
3
|
-
"version": "2.184.
|
3
|
+
"version": "2.184.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",
|