@brightspace-ui/core 1.231.3 → 1.231.6
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.
|
@@ -73,6 +73,7 @@ export const ListItemMixin = superclass => class extends LocalizeCoreElement(Lis
|
|
|
73
73
|
_breakpoint: { type: Number },
|
|
74
74
|
_displayKeyboardTooltip: { type: Boolean },
|
|
75
75
|
_dropdownOpen: { type: Boolean, attribute: '_dropdown-open', reflect: true },
|
|
76
|
+
_fullscreenWithin: { type: Boolean, attribute: '_fullscreen-within', reflect: true },
|
|
76
77
|
_hoveringPrimaryAction: { type: Boolean },
|
|
77
78
|
_focusing: { type: Boolean },
|
|
78
79
|
_focusingPrimaryAction: { type: Boolean },
|
|
@@ -95,6 +96,9 @@ export const ListItemMixin = superclass => class extends LocalizeCoreElement(Lis
|
|
|
95
96
|
:host([_dropdown-open]) {
|
|
96
97
|
z-index: 10;
|
|
97
98
|
}
|
|
99
|
+
:host([_fullscreen-within]) {
|
|
100
|
+
z-index: 1000; /* must be greater than floating workflow buttons */
|
|
101
|
+
}
|
|
98
102
|
:host(:first-child) d2l-list-item-generic-layout[data-separators="between"] {
|
|
99
103
|
border-top: 1px solid transparent;
|
|
100
104
|
}
|
|
@@ -275,6 +279,10 @@ export const ListItemMixin = superclass => class extends LocalizeCoreElement(Lis
|
|
|
275
279
|
width: 100%;
|
|
276
280
|
z-index: 5;
|
|
277
281
|
}
|
|
282
|
+
:host([_fullscreen-within]) .d2l-list-item-active-border,
|
|
283
|
+
:host([_fullscreen-within]) d2l-list-item-generic-layout.d2l-focusing + .d2l-list-item-active-border {
|
|
284
|
+
display: none;
|
|
285
|
+
}
|
|
278
286
|
d2l-tooltip > div {
|
|
279
287
|
font-weight: 700;
|
|
280
288
|
}
|
|
@@ -298,6 +306,9 @@ export const ListItemMixin = superclass => class extends LocalizeCoreElement(Lis
|
|
|
298
306
|
this._breakpoint = 0;
|
|
299
307
|
this._contentId = getUniqueId();
|
|
300
308
|
this._displayKeyboardTooltip = false;
|
|
309
|
+
this._fullscreenWithin = false;
|
|
310
|
+
this._fullscreenWithinCount = 0;
|
|
311
|
+
|
|
301
312
|
}
|
|
302
313
|
|
|
303
314
|
get breakpoints() {
|
|
@@ -421,6 +432,12 @@ export const ListItemMixin = superclass => class extends LocalizeCoreElement(Lis
|
|
|
421
432
|
this._focusingPrimaryAction = false;
|
|
422
433
|
}
|
|
423
434
|
|
|
435
|
+
_onFullscreenWithin(e) {
|
|
436
|
+
if (e.detail.state) this._fullscreenWithinCount += 1;
|
|
437
|
+
else this._fullscreenWithinCount -= 1;
|
|
438
|
+
this._fullscreenWithin = (this._fullscreenWithinCount > 0);
|
|
439
|
+
}
|
|
440
|
+
|
|
424
441
|
_onMouseEnter() {
|
|
425
442
|
this._hovering = true;
|
|
426
443
|
}
|
|
@@ -460,6 +477,7 @@ export const ListItemMixin = superclass => class extends LocalizeCoreElement(Lis
|
|
|
460
477
|
<d2l-list-item-generic-layout
|
|
461
478
|
@focusin="${this._onFocusIn}"
|
|
462
479
|
@focusout="${this._onFocusOut}"
|
|
480
|
+
@d2l-fullscreen-within="${this._onFullscreenWithin}"
|
|
463
481
|
class="${classMap(classes)}"
|
|
464
482
|
data-breakpoint="${this._breakpoint}"
|
|
465
483
|
data-separators="${ifDefined(this._separators)}"
|
|
@@ -16,9 +16,9 @@ export const menuItemStyles = css`
|
|
|
16
16
|
width: 100%;
|
|
17
17
|
}
|
|
18
18
|
|
|
19
|
+
:host(:focus),
|
|
20
|
+
:host([first]:focus),
|
|
19
21
|
:host(:hover),
|
|
20
|
-
:host(:focus-visible),
|
|
21
|
-
:host(:focus-visible[first]),
|
|
22
22
|
:host([first]:hover) {
|
|
23
23
|
background-color: var(--d2l-menu-background-color-hover);
|
|
24
24
|
border-bottom: 1px solid var(--d2l-menu-border-color-hover);
|
|
@@ -27,6 +27,16 @@ export const menuItemStyles = css`
|
|
|
27
27
|
z-index: 2;
|
|
28
28
|
}
|
|
29
29
|
|
|
30
|
+
/** separated because safari is having trouble parsing these */
|
|
31
|
+
:host(:focus-visible),
|
|
32
|
+
:host(:focus-visible[first]) {
|
|
33
|
+
background-color: var(--d2l-menu-background-color-hover);
|
|
34
|
+
border-bottom: 1px solid var(--d2l-menu-border-color-hover);
|
|
35
|
+
border-top: 1px solid var(--d2l-menu-border-color-hover);
|
|
36
|
+
color: var(--d2l-menu-foreground-color-hover);
|
|
37
|
+
z-index: 2;
|
|
38
|
+
}
|
|
39
|
+
|
|
30
40
|
:host([disabled]), :host([disabled]:hover), :host([disabled]:focus-visible) {
|
|
31
41
|
cursor: default;
|
|
32
42
|
opacity: 0.75;
|
|
@@ -40,11 +50,15 @@ export const menuItemStyles = css`
|
|
|
40
50
|
border-top-color: transparent;
|
|
41
51
|
}
|
|
42
52
|
|
|
43
|
-
:host([last]:focus-visible),
|
|
44
53
|
:host([last]:hover) {
|
|
45
54
|
border-bottom-color: var(--d2l-menu-border-color-hover);
|
|
46
55
|
}
|
|
47
56
|
|
|
57
|
+
/** separated because safari is having trouble parsing these */
|
|
58
|
+
:host([last]:focus-visible) {
|
|
59
|
+
border-bottom-color: var(--d2l-menu-border-color-hover);
|
|
60
|
+
}
|
|
61
|
+
|
|
48
62
|
.d2l-menu-item-text {
|
|
49
63
|
flex: auto;
|
|
50
64
|
line-height: 1rem;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@brightspace-ui/core",
|
|
3
|
-
"version": "1.231.
|
|
3
|
+
"version": "1.231.6",
|
|
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",
|