@brightspace-ui/core 3.110.1 → 3.110.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.
@@ -232,6 +232,7 @@ class AlertToast extends LitElement {
232
232
  'd2l-alert-toast-container-lowest': !this._totalSiblingHeightBelow,
233
233
  'vdiff-target': true
234
234
  };
235
+
235
236
  return html`
236
237
  <div
237
238
  class="${classMap(containerClasses)}"
@@ -248,6 +249,7 @@ class AlertToast extends LitElement {
248
249
  ?hidden="${this._state === states.CLOSED}"
249
250
  @mouseenter=${this._onMouseEnter}
250
251
  @mouseleave=${this._onMouseLeave}
252
+ role="${ifDefined(this._state !== states.CLOSED ? 'alert' : undefined)}"
251
253
  subtext="${ifDefined(this.subtext)}"
252
254
  type="${ifDefined(this.type)}">
253
255
  <slot></slot>
@@ -392,7 +394,6 @@ class AlertToast extends LitElement {
392
394
  this._totalSiblingHeightBelow = 0;
393
395
  this._numAlertsBelow = 0;
394
396
  this._closeClicked = false;
395
- this.removeAttribute('role');
396
397
  }
397
398
 
398
399
  _onTransitionEnd() {
@@ -420,13 +421,11 @@ class AlertToast extends LitElement {
420
421
  this._state = states.OPEN;
421
422
  }
422
423
  }
423
- this.setAttribute('role', 'alert');
424
424
  } else {
425
425
  if (!this._innerContainer) return;
426
426
 
427
427
  if (activeReduceMotion || this._state === states.PREOPENING) {
428
428
  cancelAnimationFrame(this._preopenFrame);
429
- this.removeAttribute('role');
430
429
  } else if (this._state === states.OPENING || this._state === states.OPEN || this._state === states.SLIDING) {
431
430
  this._state = states.CLOSING;
432
431
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@brightspace-ui/core",
3
- "version": "3.110.1",
3
+ "version": "3.110.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",