@brightspace-ui/core 3.115.1 → 3.116.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.
@@ -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>
|
@@ -737,7 +737,7 @@ class Tooltip extends RtlMixin(LitElement) {
|
|
737
737
|
this._maxWidth = space.width;
|
738
738
|
await this.updateComplete;
|
739
739
|
|
740
|
-
if (content.scrollWidth + 2 * contentBorderSize <= space.width && content.scrollHeight + 2 * contentBorderSize <= space.height) {
|
740
|
+
if (content.scrollWidth + 2 * contentBorderSize <= Math.ceil(space.width) && content.scrollHeight + 2 * contentBorderSize <= Math.ceil(space.height)) {
|
741
741
|
return space;
|
742
742
|
}
|
743
743
|
}
|
@@ -8,6 +8,9 @@ export const _LocalizeMixinBase = dedupeMixin(superclass => class LocalizeMixinB
|
|
8
8
|
constructor() {
|
9
9
|
super();
|
10
10
|
super.constructor.setLocalizeMarkup(localizeMarkup);
|
11
|
+
if (super.constructor.documentLocaleSettings.pseudoLocalization?.textFormat) {
|
12
|
+
this.localize = (...args) => super.constructor.pseudoLocalize((...args) => super.localize(...args), ...args);
|
13
|
+
}
|
11
14
|
}
|
12
15
|
|
13
16
|
connectedCallback() {
|
package/package.json
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
{
|
2
2
|
"name": "@brightspace-ui/core",
|
3
|
-
"version": "3.
|
3
|
+
"version": "3.116.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",
|