@brightspace-ui/core 3.131.0 → 3.132.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.
@@ -107,6 +107,7 @@ export const ListItemMixin = superclass => class extends composeMixins(
|
|
107
107
|
_highlight: { type: Boolean, reflect: true },
|
108
108
|
_highlighting: { type: Boolean, reflect: true },
|
109
109
|
_listItemInteractiveEnabled: { type: Boolean, reflect: true, attribute: '_list-item-interactive-enabled' },
|
110
|
+
_listItemNewStyles: { type: Boolean, reflect: true, attribute: '_list-item-new-styles' },
|
110
111
|
_showAddButton: { type: Boolean, attribute: '_show-add-button', reflect: true },
|
111
112
|
_siblingHasColor: { state: true },
|
112
113
|
};
|
@@ -320,11 +321,16 @@ export const ListItemMixin = superclass => class extends composeMixins(
|
|
320
321
|
:host([_hovering-selection]) [slot="outside-control-container"],
|
321
322
|
:host([_focusing-primary-action]) [slot="outside-control-container"],
|
322
323
|
:host(:not([selection-disabled]):not([skeleton])[selected][_hovering-selection]) [slot="outside-control-container"],
|
323
|
-
:host(:not([selection-disabled]):not([skeleton])[selectable][_focusing]) [slot="outside-control-container"],
|
324
|
-
:host(:not([selection-disabled]):not([button-disabled]):not([skeleton])[_focusing
|
324
|
+
:host(:not([_list-item-new-styles]):not([selection-disabled]):not([skeleton])[selectable][_focusing]) [slot="outside-control-container"],
|
325
|
+
:host([_list-item-new-styles]:not([selection-disabled]):not([button-disabled]):not([skeleton])[_focusing]:not([current])) [slot="outside-control-container"] {
|
325
326
|
border-color: ${unsafeCSS(useNewStylesFlag ? 'var(--d2l-color-mica)' : '#b6cbe8')}; /* stylelint-disable-line */
|
326
327
|
margin-bottom: -1px;
|
327
328
|
}
|
329
|
+
/* clean up with GAUD-7495-list-item-new-styles flag */
|
330
|
+
:host(:not([selection-disabled]):not([button-disabled]):not([skeleton])[_focusing-elem]:not([current])) [slot="outside-control-container"] {
|
331
|
+
border-color: var(--d2l-color-mica);
|
332
|
+
margin-bottom: -1px;
|
333
|
+
}
|
328
334
|
/* below hides the border under the d2l-button-add */
|
329
335
|
:host([_hovering-control]) [slot="outside-control-container"].hide-bottom-border,
|
330
336
|
:host([_hovering-primary-action]) [slot="outside-control-container"].hide-bottom-border,
|
@@ -332,14 +338,22 @@ export const ListItemMixin = superclass => class extends composeMixins(
|
|
332
338
|
:host([_focusing-primary-action]) [slot="outside-control-container"].hide-bottom-border,
|
333
339
|
:host(:not([selection-disabled]):not([skeleton])[selected]) [slot="outside-control-container"].hide-bottom-border,
|
334
340
|
:host(:not([selection-disabled]):not([skeleton])[selected][_hovering-selection]) [slot="outside-control-container"].hide-bottom-border,
|
335
|
-
:host(:not([selection-disabled]):not([skeleton])[selectable][_focusing]) [slot="outside-control-container"].hide-bottom-border,
|
336
|
-
:host(:not([selection-disabled]):not([button-disabled]):not([skeleton])[_focusing
|
341
|
+
:host(:not([_list-item-new-styles]):not([selection-disabled]):not([skeleton])[selectable][_focusing]) [slot="outside-control-container"].hide-bottom-border,
|
342
|
+
:host([_list-item-new-styles]:not([selection-disabled]):not([button-disabled]):not([skeleton])[_focusing]) [slot="outside-control-container"].hide-bottom-border {
|
337
343
|
background-clip: content-box, border-box;
|
338
344
|
background-image: linear-gradient(white, white), linear-gradient(to right, ${unsafeCSS(useNewStylesFlag ? 'var(--d2l-color-mica)' : '#b6cbe8')} 20%, transparent 20%, transparent 80%, ${unsafeCSS(useNewStylesFlag ? 'var(--d2l-color-mica)' : '#b6cbe8')} 80%); /* stylelint-disable-line */
|
339
345
|
background-origin: border-box;
|
340
346
|
border: double 1px transparent;
|
341
347
|
border-radius: 6px;
|
342
348
|
}
|
349
|
+
/* clean up with GAUD-7495-list-item-new-styles flag */
|
350
|
+
:host(:not([selection-disabled]):not([button-disabled]):not([skeleton])[_focusing-elem]) [slot="outside-control-container"].hide-bottom-border {
|
351
|
+
background-clip: content-box, border-box;
|
352
|
+
background-image: linear-gradient(white, white), linear-gradient(to right, var(--d2l-color-mica) 20%, transparent 20%, transparent 80%, var(--d2l-color-mica) 80%);
|
353
|
+
background-origin: border-box;
|
354
|
+
border: double 1px transparent;
|
355
|
+
border-radius: 6px;
|
356
|
+
}
|
343
357
|
:host(:not([selection-disabled]):not([skeleton])[selected]) [slot="outside-control-container"].hide-bottom-border {
|
344
358
|
background-image: linear-gradient(#f3fbff, #f3fbff), linear-gradient(to right, ${unsafeCSS(useNewStylesFlag ? 'var(--d2l-color-mica)' : '#b6cbe8')} 20%, transparent 20%, transparent 80%, ${unsafeCSS(useNewStylesFlag ? 'var(--d2l-color-mica)' : '#b6cbe8')} 80%); /* stylelint-disable-line */
|
345
359
|
}
|
@@ -463,6 +477,7 @@ export const ListItemMixin = superclass => class extends composeMixins(
|
|
463
477
|
this._hasColorSlot = false;
|
464
478
|
this._hasNestedList = false;
|
465
479
|
this._listItemInteractiveEnabled = listItemInteractiveFlag;
|
480
|
+
this._listItemNewStyles = useNewStylesFlag;
|
466
481
|
this._siblingHasColor = false;
|
467
482
|
}
|
468
483
|
|
@@ -113,7 +113,8 @@ export const ListItemNavButtonMixin = superclass => class extends ListItemButton
|
|
113
113
|
super._onButtonClick(e);
|
114
114
|
}
|
115
115
|
|
116
|
-
#handleFocusIn() {
|
116
|
+
#handleFocusIn(e) {
|
117
|
+
e.stopPropagation(); // prevent _focusing from being set on the parent
|
117
118
|
requestAnimationFrame(() => {
|
118
119
|
const activeElement = getComposedActiveElement();
|
119
120
|
const parentListItem = findComposedAncestor(activeElement, (node) => node.role === 'row' || node.role === 'listitem');
|
package/package.json
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
{
|
2
2
|
"name": "@brightspace-ui/core",
|
3
|
-
"version": "3.
|
3
|
+
"version": "3.132.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",
|