@brightspace-ui/core 2.3.2 → 2.3.3
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.
|
@@ -469,11 +469,15 @@ class InputText extends FocusMixin(LabelledMixin(FormElementMixin(SkeletonMixin(
|
|
|
469
469
|
}
|
|
470
470
|
|
|
471
471
|
_getAriaLabel() {
|
|
472
|
+
let label;
|
|
472
473
|
if (this.label && (this.labelHidden || this.labelledBy)) {
|
|
473
|
-
|
|
474
|
+
label = this.label;
|
|
475
|
+
} else if (this.hasAttribute('aria-label')) {
|
|
476
|
+
label = this.getAttribute('aria-label');
|
|
474
477
|
}
|
|
475
|
-
if (
|
|
476
|
-
|
|
478
|
+
if (label) {
|
|
479
|
+
const unitLabel = this.unit ? ` ${this.unit}` : '';
|
|
480
|
+
return `${label}${unitLabel}`;
|
|
477
481
|
}
|
|
478
482
|
return undefined;
|
|
479
483
|
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@brightspace-ui/core",
|
|
3
|
-
"version": "2.3.
|
|
3
|
+
"version": "2.3.3",
|
|
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",
|