@brightspace-ui/core 1.224.1 → 1.225.1

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.
@@ -1,6 +1,6 @@
1
1
  # Colors
2
2
 
3
- Importing `colors` will add the color palette [CSS Custom Properties](https://developer.mozilla.org/en-US/docs/Web/CSS/--*) to the document and polyfill for IE11 using [shadyCSS](https://github.com/webcomponents/shadycss).
3
+ Importing `colors` will add the color palette [CSS Custom Properties](https://developer.mozilla.org/en-US/docs/Web/CSS/--*) to the document.
4
4
 
5
5
  Run the demo page to see the full palette. See [colors.js](colors.js) for the variable names (i.e. `--d2l-color-*`).
6
6
 
@@ -26,4 +26,4 @@ Run the demo page to see the full palette. See [colors.js](colors.js) for the va
26
26
 
27
27
  ## Future Enhancements
28
28
 
29
- Looking for an enhancement not listed here? Create a GitHub issue!
29
+ Looking for an enhancement not listed here? Create a GitHub issue!
@@ -10,7 +10,7 @@ import { getUniqueId } from '../../helpers/uniqueId.js';
10
10
  import { LocalizeCoreElement } from '../../lang/localize-core-element.js';
11
11
  import { styleMap } from 'lit-html/directives/style-map.js';
12
12
 
13
- const mediaQueryList = window.matchMedia('(max-width: 615px)');
13
+ const mediaQueryList = window.matchMedia('(max-width: 615px), (max-height: 420px) and (max-width: 900px)');
14
14
 
15
15
  /**
16
16
  * A generic fullscreen dialog that provides a slot for arbitrary content and a "footer" slot for workflow buttons. Apply the "data-dialog-action" attribute to workflow buttons to automatically close the dialog with the action value.
@@ -132,7 +132,7 @@ class DialogFullscreen extends LocalizeCoreElement(AsyncContainerMixin(DialogMix
132
132
  }
133
133
  }
134
134
 
135
- @media (max-width: 615px) {
135
+ @media (max-width: 615px), (max-height: 420px) and (max-width: 900px) {
136
136
 
137
137
  .d2l-dialog-header {
138
138
  padding-bottom: 15px;
@@ -110,11 +110,12 @@ export const DropdownOpenerMixin = superclass => class extends superclass {
110
110
  updated(changedProperties) {
111
111
  super.updated(changedProperties);
112
112
  if (!this.openOnHover || !changedProperties.has('_isFading')) return;
113
-
113
+ const element = this.__getContentElement();
114
+ if (!element) return;
114
115
  if (this._isFading) {
115
- this.__getContentElement()?.classList.add('d2l-dropdown-content-fading');
116
+ element.classList.add('d2l-dropdown-content-fading');
116
117
  } else {
117
- this.__getContentElement()?.classList.remove('d2l-dropdown-content-fading');
118
+ element.classList.remove('d2l-dropdown-content-fading');
118
119
  }
119
120
  }
120
121
 
@@ -254,7 +255,9 @@ export const DropdownOpenerMixin = superclass => class extends superclass {
254
255
  if (this.noAutoOpen) return;
255
256
  if (this.openOnHover) {
256
257
  // prevent propogation to window and triggering _onOutsideClick
257
- e?.stopPropagation();
258
+ if (e) {
259
+ e.stopPropagation();
260
+ }
258
261
  this._closeTimerStop();
259
262
  if (this._isOpen && !this._isHovering) {
260
263
  this.closeDropdown();