@brightspace-ui/core 3.150.2 → 3.150.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.
@@ -255,6 +255,10 @@
|
|
255
255
|
</d2l-icon-custom>
|
256
256
|
</d2l-tooltip-help>
|
257
257
|
</p>
|
258
|
+
<p class="d2l-body-compact" style="max-width: 100px;">
|
259
|
+
Wrapped:
|
260
|
+
<d2l-tooltip-help text="Due: Jan 20, 2026">Other due date information</d2l-tooltip-help>
|
261
|
+
</p>
|
258
262
|
</template>
|
259
263
|
</d2l-demo-snippet>
|
260
264
|
|
@@ -1,14 +1,17 @@
|
|
1
1
|
import '../colors/colors.js';
|
2
2
|
import '../tooltip/tooltip.js';
|
3
|
-
import { css, html, LitElement, nothing } from 'lit';
|
3
|
+
import { css, html, LitElement, nothing, unsafeCSS } from 'lit';
|
4
4
|
import { bodySmallStyles } from '../typography/styles.js';
|
5
5
|
import { classMap } from 'lit/directives/class-map.js';
|
6
6
|
import { FocusMixin } from '../../mixins/focus/focus-mixin.js';
|
7
|
+
import { getFlag } from '../../helpers/flags.js';
|
7
8
|
import { getFocusRingStyles } from '../../helpers/focus.js';
|
8
9
|
import { ifDefined } from 'lit/directives/if-defined.js';
|
9
10
|
import { SkeletonMixin } from '../skeleton/skeleton-mixin.js';
|
10
11
|
import { SlottedIconMixin } from '../icons/slotted-icon-mixin.js';
|
11
12
|
|
13
|
+
const startAlignText = getFlag('GAUD-8232-tooltip-help-start-align-text', true);
|
14
|
+
|
12
15
|
/**
|
13
16
|
* A component used to display additional information when users focus or hover over some text.
|
14
17
|
* @slot - Default content placed inside of the tooltip
|
@@ -58,6 +61,7 @@ class TooltipHelp extends SlottedIconMixin(SkeletonMixin(FocusMixin(LitElement))
|
|
58
61
|
display: inline-flex;
|
59
62
|
font-family: inherit;
|
60
63
|
padding: 0;
|
64
|
+
text-align: ${unsafeCSS(startAlignText ? 'start' : 'center')}; /* stylelint-disable-line */
|
61
65
|
text-decoration-line: underline;
|
62
66
|
text-decoration-style: dashed;
|
63
67
|
text-decoration-thickness: 1px;
|
package/package.json
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
{
|
2
2
|
"name": "@brightspace-ui/core",
|
3
|
-
"version": "3.150.
|
3
|
+
"version": "3.150.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",
|