@brightspace-ui/core 3.66.0 → 3.66.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.
@@ -486,7 +486,7 @@ class InputText extends InputInlineHelpMixin(PropertyRequiredMixin(FocusMixin(La
|
|
486
486
|
let tooltip = nothing;
|
487
487
|
if (!this.skeleton) {
|
488
488
|
if (this.validationError && !this.noValidate) {
|
489
|
-
// this tooltip is using "announced" since we don't want aria-describedby wire-up
|
489
|
+
// this tooltip is using "announced" since we don't want aria-describedby wire-up - VoiceOver ignores our message when the input is invalid
|
490
490
|
tooltip = html`<d2l-tooltip state="error" announced align="start" class="vdiff-target">${this.validationError} <span class="d2l-offscreen">${this.description}</span></d2l-tooltip>`;
|
491
491
|
} else if (this.instructions) {
|
492
492
|
tooltip = html`<d2l-tooltip align="start" for="${this._inputId}" delay="1000" class="vdiff-target">${this.instructions}</d2l-tooltip>`;
|
@@ -730,9 +730,13 @@ class Tooltip extends RtlMixin(LitElement) {
|
|
730
730
|
target = ownerRoot.querySelector(targetSelector);
|
731
731
|
target = target || ownerRoot?.host?.querySelector(targetSelector);
|
732
732
|
} else {
|
733
|
-
console.warn('<d2l-tooltip>: missing required attribute "for"');
|
734
733
|
const parentNode = this.parentNode;
|
735
734
|
target = parentNode.nodeType === Node.DOCUMENT_FRAGMENT_NODE ? ownerRoot.host : parentNode;
|
735
|
+
|
736
|
+
// reduce console pollution since Safari + VO prevents inadequate SR experience for tooltips during form validation when using 'for'
|
737
|
+
if (!(target.tagName === 'D2L-INPUT-TEXT' && target?.invalid)) {
|
738
|
+
console.warn('<d2l-tooltip>: missing required attribute "for"');
|
739
|
+
}
|
736
740
|
}
|
737
741
|
return target;
|
738
742
|
}
|
package/package.json
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
{
|
2
2
|
"name": "@brightspace-ui/core",
|
3
|
-
"version": "3.66.
|
3
|
+
"version": "3.66.1",
|
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",
|