@brightspace-ui/core 3.141.0 → 3.142.0
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.
- package/components/dialog/dialog-mixin.js +2 -5
- package/components/dialog/dialog.js +1 -6
- package/components/inputs/input-color.js +1 -1
- package/components/list/demo/list-nav.html +4 -4
- package/components/list/list-item-mixin.js +12 -0
- package/components/list/list-item-nav-mixin.js +14 -0
- package/package.json +1 -1
@@ -454,11 +454,8 @@ export const DialogMixin = superclass => class extends RtlMixin(superclass) {
|
|
454
454
|
if (reduceMotion) await new Promise(resolve => requestAnimationFrame(resolve));
|
455
455
|
else await animPromise;
|
456
456
|
|
457
|
-
|
458
|
-
|
459
|
-
await this.waitForUpdateComplete();
|
460
|
-
await this._updateSize();
|
461
|
-
}
|
457
|
+
await this.waitForUpdateComplete();
|
458
|
+
await this._updateSize();
|
462
459
|
/** Dispatched when the dialog is opened */
|
463
460
|
this.dispatchEvent(new CustomEvent(
|
464
461
|
'd2l-dialog-open', { bubbles: true, composed: true }
|
@@ -205,12 +205,7 @@ class Dialog extends PropertyRequiredMixin(LocalizeCoreElement(AsyncContainerMix
|
|
205
205
|
super.updated(changedProperties);
|
206
206
|
if (!changedProperties.has('asyncState')) return;
|
207
207
|
if (this.asyncState === asyncStates.complete) {
|
208
|
-
|
209
|
-
if (flag) {
|
210
|
-
this.waitForUpdateComplete().then(() => this.resize());
|
211
|
-
} else {
|
212
|
-
this.resize();
|
213
|
-
}
|
208
|
+
this.waitForUpdateComplete().then(() => this.resize());
|
214
209
|
}
|
215
210
|
}
|
216
211
|
|
@@ -359,7 +359,7 @@ class InputColor extends InputInlineHelpMixin(PropertyRequiredMixin(FocusMixin(F
|
|
359
359
|
|
360
360
|
_getTooltipLabel() {
|
361
361
|
const valueLabel = this.value !== undefined ? this.value : this.localize('components.input-color.none');
|
362
|
-
return `${this._getLabel()}: ${valueLabel}
|
362
|
+
return `${this._getLabel()}: ${valueLabel}`;
|
363
363
|
}
|
364
364
|
|
365
365
|
_handleClose() {
|
@@ -30,7 +30,7 @@
|
|
30
30
|
<div>Welcome!</div>
|
31
31
|
</d2l-list-item-content>
|
32
32
|
<d2l-list slot="nested" grid>
|
33
|
-
<d2l-list-item-nav key="L2-1" label="Syallabus Confirmation">
|
33
|
+
<d2l-list-item-nav key="L2-1" label="Syallabus Confirmation" action-href="https://d2l.com" prevent-navigation>
|
34
34
|
<d2l-list-item-content>
|
35
35
|
<div><d2l-icon style="margin-right: 0.7rem;" icon="tier2:file-document"></d2l-icon>Syallabus Confirmation</div>
|
36
36
|
<div slot="secondary"><d2l-tooltip-help text="Due: May 2, 2023 at 2 pm" style="padding: 5px;">Start: May 1, 2023 at 12:01 AM</d2l-tooltip-help></div>
|
@@ -38,18 +38,18 @@
|
|
38
38
|
</d2l-list-item-nav>
|
39
39
|
</d2l-list>
|
40
40
|
</d2l-list-item-nav>
|
41
|
-
<d2l-list-item-nav key="L2-2" label="Unit 1: Poetry" color="#29a6ff" expandable expanded>
|
41
|
+
<d2l-list-item-nav key="L2-2" label="Unit 1: Poetry" color="#29a6ff" expandable expanded action-href="https://d2l.com" prevent-navigation>
|
42
42
|
<d2l-list-item-content>
|
43
43
|
<div>Unit 1: Fiction</div>
|
44
44
|
<div slot="secondary"><d2l-tooltip-help text="Due: May 2, 2023 at 5 pm" style="padding: 5px;">Starts: May 1, 2023 at 12:01 AM</d2l-tooltip-help></div>
|
45
45
|
</d2l-list-item-content>
|
46
46
|
<d2l-list slot="nested" grid>
|
47
|
-
<d2l-list-item-nav key="L3-2" label="Fiction">
|
47
|
+
<d2l-list-item-nav key="L3-2" label="Fiction" action-href="https://d2l.com" prevent-navigation>
|
48
48
|
<d2l-list-item-content>
|
49
49
|
<div><d2l-icon style="margin-right: 0.7rem;" icon="tier2:file-document"></d2l-icon>Fiction</div>
|
50
50
|
</d2l-list-item-content>
|
51
51
|
</d2l-list-item-nav>
|
52
|
-
<d2l-list-item-nav key="L3-2" label="Ten rules for writing fiction">
|
52
|
+
<d2l-list-item-nav key="L3-2" label="Ten rules for writing fiction" action-href="https://d2l.com" prevent-navigation>
|
53
53
|
<d2l-list-item-content>
|
54
54
|
<div><d2l-icon style="margin-right: 0.7rem;" icon="tier2:file-document"></d2l-icon>Ten rules for writing fiction</div>
|
55
55
|
</d2l-list-item-content>
|
@@ -208,6 +208,18 @@ export const ListItemMixin = superclass => class extends composeMixins(
|
|
208
208
|
--d2l-list-item-content-text-outline: 2px solid var(--d2l-color-celestine);
|
209
209
|
--d2l-list-item-content-text-outline-offset: 1px;
|
210
210
|
}
|
211
|
+
@supports selector(:has(a, b)) {
|
212
|
+
:host([_list-item-new-styles][_focusing-primary-action]) .d2l-list-item-content {
|
213
|
+
--d2l-list-item-content-text-border-radius: initial;
|
214
|
+
--d2l-list-item-content-text-outline: initial;
|
215
|
+
--d2l-list-item-content-text-outline-offset: initial;
|
216
|
+
}
|
217
|
+
:host([_list-item-new-styles][_focusing-primary-action]):has(:focus-visible) .d2l-list-item-content {
|
218
|
+
--d2l-list-item-content-text-border-radius: 3px;
|
219
|
+
--d2l-list-item-content-text-outline: 2px solid var(--d2l-color-celestine);
|
220
|
+
--d2l-list-item-content-text-outline-offset: 1px;
|
221
|
+
}
|
222
|
+
}
|
211
223
|
[slot="content-action"] {
|
212
224
|
height: 100%;
|
213
225
|
}
|
@@ -45,6 +45,20 @@ export const ListItemNavMixin = superclass => class extends ListItemLinkMixin(su
|
|
45
45
|
--d2l-list-item-content-text-decoration: none;
|
46
46
|
}
|
47
47
|
|
48
|
+
/* clean up with GAUD-7495-list-item-new-styles flag */
|
49
|
+
@supports selector(:has(a, b)) {
|
50
|
+
:host([_focusing-primary-action]) .d2l-list-item-content {
|
51
|
+
--d2l-list-item-content-text-border-radius: initial;
|
52
|
+
--d2l-list-item-content-text-outline: initial;
|
53
|
+
--d2l-list-item-content-text-outline-offset: initial;
|
54
|
+
}
|
55
|
+
:host([_focusing-primary-action]):has(:focus-visible) .d2l-list-item-content {
|
56
|
+
--d2l-list-item-content-text-border-radius: 3px;
|
57
|
+
--d2l-list-item-content-text-outline: 2px solid var(--d2l-color-celestine);
|
58
|
+
--d2l-list-item-content-text-outline-offset: 1px;
|
59
|
+
}
|
60
|
+
}
|
61
|
+
|
48
62
|
` ];
|
49
63
|
|
50
64
|
super.styles && styles.unshift(super.styles);
|
package/package.json
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
{
|
2
2
|
"name": "@brightspace-ui/core",
|
3
|
-
"version": "3.
|
3
|
+
"version": "3.142.0",
|
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",
|