@brightspace-ui/core 1.224.0 → 1.225.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.
@@ -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;
@@ -605,12 +605,14 @@ class InputText extends LabelledMixin(FormElementMixin(SkeletonMixin(RtlMixin(Li
605
605
  || (this.unit && this.dir !== 'rtl');
606
606
 
607
607
  if (firstSlotHasNodes) {
608
- requestAnimationFrame(() => this._firstSlotWidth = firstContainer.getBoundingClientRect().width);
608
+ // Firefox can have trouble rendering the cursor if the padding is a decimal
609
+ requestAnimationFrame(() => this._firstSlotWidth = Math.ceil(firstContainer.getBoundingClientRect().width));
609
610
  } else {
610
611
  this._firstSlotWidth = 0;
611
612
  }
612
613
  if (lastSlotHasNodes) {
613
- requestAnimationFrame(() => this._lastSlotWidth = lastContainer.getBoundingClientRect().width);
614
+ // Firefox can have trouble rendering the cursor if the padding is a decimal
615
+ requestAnimationFrame(() => this._lastSlotWidth = Math.ceil(lastContainer.getBoundingClientRect().width));
614
616
  } else {
615
617
  this._lastSlotWidth = 0;
616
618
  }