@brightspace-ui/core 3.150.1 → 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.
@@ -6,7 +6,6 @@ import { buttonStyles } from './button-styles.js';
|
|
6
6
|
import { FocusMixin } from '../../mixins/focus/focus-mixin.js';
|
7
7
|
import { getUniqueId } from '../../helpers/uniqueId.js';
|
8
8
|
import { ifDefined } from 'lit/directives/if-defined.js';
|
9
|
-
import { RtlMixin } from '../../mixins/rtl/rtl-mixin.js';
|
10
9
|
import { ThemeMixin } from '../../mixins/theme/theme-mixin.js';
|
11
10
|
|
12
11
|
const keyCodes = Object.freeze({
|
@@ -33,7 +32,7 @@ export const moveActions = Object.freeze({
|
|
33
32
|
* A button component that provides a move action via a single button.
|
34
33
|
* @fires d2l-button-move-action - Dispatched when move action occurs
|
35
34
|
*/
|
36
|
-
class ButtonMove extends ThemeMixin(FocusMixin(
|
35
|
+
class ButtonMove extends ThemeMixin(FocusMixin(LitElement)) {
|
37
36
|
|
38
37
|
static get properties() {
|
39
38
|
return {
|
@@ -140,7 +139,7 @@ class ButtonMove extends ThemeMixin(FocusMixin(RtlMixin(LitElement))) {
|
|
140
139
|
.up-layer,
|
141
140
|
.down-layer {
|
142
141
|
height: 1.2rem;
|
143
|
-
|
142
|
+
inset-inline-start: -0.2rem;
|
144
143
|
position: absolute;
|
145
144
|
width: 1.3rem;
|
146
145
|
}
|
@@ -150,11 +149,6 @@ class ButtonMove extends ThemeMixin(FocusMixin(RtlMixin(LitElement))) {
|
|
150
149
|
.down-layer {
|
151
150
|
bottom: -0.35rem;
|
152
151
|
}
|
153
|
-
:host([dir="rtl"]) .up-layer,
|
154
|
-
:host([dir="rtl"]) .down-layer {
|
155
|
-
left: auto;
|
156
|
-
right: -0.2rem;
|
157
|
-
}
|
158
152
|
|
159
153
|
/* Firefox includes a hidden border which messes up button dimensions */
|
160
154
|
button::-moz-focus-inner {
|
@@ -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",
|