@brightspace-ui/core 3.150.2 → 3.150.4
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.
@@ -141,6 +141,8 @@ export const TabMixin = superclass => class extends SkeletonMixin(superclass) {
|
|
141
141
|
}
|
142
142
|
|
143
143
|
#handleClick() {
|
144
|
+
if (this.selected) return;
|
145
|
+
|
144
146
|
this._clicked = true;
|
145
147
|
const beforeSelectedEvent = new CustomEvent('d2l-tab-before-selected', {
|
146
148
|
detail: {
|
@@ -174,8 +174,6 @@ export const TagListItemMixin = superclass => class extends LocalizeCoreElement(
|
|
174
174
|
firstUpdated(changedProperties) {
|
175
175
|
super.firstUpdated(changedProperties);
|
176
176
|
|
177
|
-
const container = this.shadowRoot.querySelector('.tag-list-item-content');
|
178
|
-
|
179
177
|
this.addEventListener('focus', async(e) => {
|
180
178
|
// ignore focus events coming from inside the tag content
|
181
179
|
if (e.composedPath()[0] !== this) return;
|
@@ -198,7 +196,7 @@ export const TagListItemMixin = superclass => class extends LocalizeCoreElement(
|
|
198
196
|
await this.updateComplete;
|
199
197
|
// delay the focus to allow focusin to fire
|
200
198
|
setTimeout(() => {
|
201
|
-
|
199
|
+
this.shadowRoot.querySelector('.tag-list-item-content').focus();
|
202
200
|
});
|
203
201
|
});
|
204
202
|
|
@@ -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.4",
|
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",
|