@brightspace-ui/core 3.116.0 → 3.116.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.
@@ -492,7 +492,7 @@ class InputText extends InputInlineHelpMixin(PropertyRequiredMixin(FocusMixin(La
|
|
492
492
|
}
|
493
493
|
|
494
494
|
let tooltip = nothing;
|
495
|
-
if (!this.skeleton) {
|
495
|
+
if (!this.skeleton && !this.disabled) {
|
496
496
|
if (this.validationError && !this.noValidate && !this.hideInvalidTooltip) {
|
497
497
|
// this tooltip is using "announced" since we don't want aria-describedby wire-up - VoiceOver ignores our message when the input is invalid
|
498
498
|
tooltip = html`<d2l-tooltip state="error" announced align="start" class="vdiff-target">${this.validationError} <span class="d2l-offscreen">${this.description}</span></d2l-tooltip>`;
|
@@ -205,15 +205,14 @@
|
|
205
205
|
<d2l-demo-snippet>
|
206
206
|
<template>
|
207
207
|
<d2l-button id="toggle" disabled-tooltip="This tooltip shows if button is disabled, but only after refocusing">Toggle Disable</d2l-button>
|
208
|
+
<script>
|
209
|
+
document.querySelector('#toggle').addEventListener('click', e => e.target.disabled = !e.target.disabled);
|
210
|
+
document.addEventListener('d2l-tooltip-show', e => console.log('d2l-tooltip-show', e.target));
|
211
|
+
document.addEventListener('d2l-tooltip-hide', e => console.log('d2l-tooltip-hide', e.target));
|
212
|
+
</script>
|
208
213
|
</template>
|
209
214
|
</d2l-demo-snippet>
|
210
215
|
|
211
|
-
<script>
|
212
|
-
document.querySelector('#toggle').addEventListener('click', e => e.target.disabled = !e.target.disabled);
|
213
|
-
document.addEventListener('d2l-tooltip-show', e => console.log('d2l-tooltip-show', e.target));
|
214
|
-
document.addEventListener('d2l-tooltip-hide', e => console.log('d2l-tooltip-hide', e.target));
|
215
|
-
</script>
|
216
|
-
|
217
216
|
</d2l-demo-page>
|
218
217
|
|
219
218
|
</body>
|
package/package.json
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
{
|
2
2
|
"name": "@brightspace-ui/core",
|
3
|
-
"version": "3.116.
|
3
|
+
"version": "3.116.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",
|