@brightspace-ui/core 2.71.0 → 2.71.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.
- package/README.md +2 -2
- package/components/inputs/input-text.js +6 -10
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -133,10 +133,10 @@ The golden snapshots in source control must be updated by the [visual-diff GitHu
|
|
|
133
133
|
To run the tests locally to help troubleshoot or develop new tests, first install these dependencies:
|
|
134
134
|
|
|
135
135
|
```shell
|
|
136
|
-
npm install @brightspace-ui/visual-diff@X
|
|
136
|
+
npm install @brightspace-ui/visual-diff@X --no-save
|
|
137
137
|
```
|
|
138
138
|
|
|
139
|
-
Replace `X
|
|
139
|
+
Replace `X` with [the current version](https://github.com/BrightspaceUI/actions/tree/main/visual-diff#current-dependency-versions) the action is using.
|
|
140
140
|
|
|
141
141
|
Then run the tests:
|
|
142
142
|
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import '../colors/colors.js';
|
|
1
2
|
import '../tooltip/tooltip.js';
|
|
2
3
|
import { css, html, LitElement } from 'lit';
|
|
3
4
|
import { classMap } from 'lit/directives/class-map.js';
|
|
@@ -224,7 +225,9 @@ class InputText extends FocusMixin(LabelledMixin(FormElementMixin(SkeletonMixin(
|
|
|
224
225
|
right: 0;
|
|
225
226
|
}
|
|
226
227
|
.d2l-input-unit {
|
|
227
|
-
|
|
228
|
+
color: var(--d2l-color-galena);
|
|
229
|
+
font-size: 0.7rem;
|
|
230
|
+
margin-top: 0.05rem;
|
|
228
231
|
}
|
|
229
232
|
.d2l-input-inside-before .d2l-input-unit {
|
|
230
233
|
margin-left: 12px;
|
|
@@ -476,6 +479,7 @@ class InputText extends FocusMixin(LabelledMixin(FormElementMixin(SkeletonMixin(
|
|
|
476
479
|
|
|
477
480
|
changedProperties.forEach((oldVal, prop) => {
|
|
478
481
|
if (prop === 'unit' || prop === 'unitLabel') {
|
|
482
|
+
this._updateInputLayout();
|
|
479
483
|
this._validateUnit();
|
|
480
484
|
} else if (prop === 'validationError') {
|
|
481
485
|
if (oldVal && this.validationError) {
|
|
@@ -573,15 +577,7 @@ class InputText extends FocusMixin(LabelledMixin(FormElementMixin(SkeletonMixin(
|
|
|
573
577
|
}
|
|
574
578
|
|
|
575
579
|
_handleSlotChange() {
|
|
576
|
-
|
|
577
|
-
if (navigator.userAgent.indexOf('Edge/') > -1) {
|
|
578
|
-
this.requestUpdate();
|
|
579
|
-
this.updateComplete.then(() => {
|
|
580
|
-
this._updateInputLayout();
|
|
581
|
-
});
|
|
582
|
-
} else {
|
|
583
|
-
this._updateInputLayout();
|
|
584
|
-
}
|
|
580
|
+
this._updateInputLayout();
|
|
585
581
|
}
|
|
586
582
|
|
|
587
583
|
_handleUnitClick() {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@brightspace-ui/core",
|
|
3
|
-
"version": "2.71.
|
|
3
|
+
"version": "2.71.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",
|