@brightspace-ui/core 3.64.1 → 3.64.2

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.
@@ -85,6 +85,7 @@ export const ListItemMixin = superclass => class extends composeMixins(
85
85
  _hasNestedList: { type: Boolean, reflect: true, attribute: '_has-nested-list' },
86
86
  _hasNestedListAddButton: { type: Boolean, reflect: true, attribute: '_has-nested-list-add-button' },
87
87
  _hovering: { type: Boolean, reflect: true },
88
+ _hoveringControl: { type: Boolean, attribute: '_hovering-control', reflect: true },
88
89
  _hoveringPrimaryAction: { type: Boolean, attribute: '_hovering-primary-action', reflect: true },
89
90
  _focusing: { type: Boolean, reflect: true },
90
91
  _focusingPrimaryAction: { type: Boolean, attribute: '_focusing-primary-action', reflect: true },
@@ -297,6 +298,7 @@ export const ListItemMixin = superclass => class extends composeMixins(
297
298
  margin-right: -6px;
298
299
  }
299
300
 
301
+ :host([_hovering-control]) [slot="outside-control-container"],
300
302
  :host([_hovering-primary-action]) [slot="outside-control-container"],
301
303
  :host([_hovering-selection]) [slot="outside-control-container"],
302
304
  :host([_focusing-primary-action]) [slot="outside-control-container"],
@@ -306,6 +308,7 @@ export const ListItemMixin = superclass => class extends composeMixins(
306
308
  margin-bottom: -1px;
307
309
  }
308
310
  /* below hides the border under the d2l-button-add */
311
+ :host([_hovering-control]) [slot="outside-control-container"].hide-bottom-border,
309
312
  :host([_hovering-primary-action]) [slot="outside-control-container"].hide-bottom-border,
310
313
  :host([_hovering-selection]) [slot="outside-control-container"].hide-bottom-border,
311
314
  :host([_focusing-primary-action]) [slot="outside-control-container"].hide-bottom-border,
@@ -321,6 +324,7 @@ export const ListItemMixin = superclass => class extends composeMixins(
321
324
  :host(:not([selection-disabled]):not([skeleton])[selected]) [slot="outside-control-container"].hide-bottom-border {
322
325
  background-image: linear-gradient(#f3fbff, #f3fbff), linear-gradient(to right, #b6cbe8 20%, transparent 20%, transparent 80%, #b6cbe8 80%);
323
326
  }
327
+ :host([_hovering-control]) d2l-button-add,
324
328
  :host([_hovering-primary-action]) d2l-button-add,
325
329
  :host([_hovering-selection]) d2l-button-add,
326
330
  :host([_focusing-primary-action]) d2l-button-add,
@@ -328,6 +332,7 @@ export const ListItemMixin = superclass => class extends composeMixins(
328
332
  :host(:not([selection-disabled]):not([skeleton])[selected]) d2l-button-add {
329
333
  --d2l-button-add-line-color: #b6cbe8; /* celestine alpha 0.3 */
330
334
  }
335
+ :host([_hovering-control]) [slot="outside-control-container"],
331
336
  :host([_hovering-primary-action]) [slot="outside-control-container"],
332
337
  :host([_hovering-selection]) [slot="outside-control-container"] {
333
338
  box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
@@ -621,6 +626,11 @@ export const ListItemMixin = superclass => class extends composeMixins(
621
626
  this._hovering = true;
622
627
  }
623
628
 
629
+ _onMouseEnterControl() {
630
+ this._hoveringControl = true;
631
+ this._hovering = true;
632
+ }
633
+
624
634
  _onMouseEnterPrimaryAction() {
625
635
  this._hoveringPrimaryAction = true;
626
636
  this._hovering = true;
@@ -630,6 +640,11 @@ export const ListItemMixin = superclass => class extends composeMixins(
630
640
  this._hovering = false;
631
641
  }
632
642
 
643
+ _onMouseLeaveControl() {
644
+ this._hoveringControl = false;
645
+ this._hovering = false;
646
+ }
647
+
633
648
  _onMouseLeavePrimaryAction() {
634
649
  this._hoveringPrimaryAction = false;
635
650
  this._hovering = false;
@@ -706,7 +721,11 @@ export const ListItemMixin = superclass => class extends composeMixins(
706
721
  <div slot="color-indicator" class="d2l-list-item-color-outer">
707
722
  <div class="${classMap(colorClasses)}" style="${styleMap(colorStyles)}"></div>
708
723
  </div>` : nothing}
709
- <div slot="expand-collapse" class="d2l-list-expand-collapse" @click="${this._toggleExpandCollapse}">
724
+ <div slot="expand-collapse"
725
+ class="d2l-list-expand-collapse"
726
+ @click="${this._toggleExpandCollapse}"
727
+ @mouseenter="${this._onMouseEnterControl}"
728
+ @mouseleave="${this._onMouseLeaveControl}">
710
729
  ${this._renderExpandCollapse()}
711
730
  </div>
712
731
  ${this.selectable ? html`<div slot="control">${this._renderCheckbox()}</div>` : nothing}
@@ -771,7 +790,11 @@ export const ListItemMixin = superclass => class extends composeMixins(
771
790
  }
772
791
 
773
792
  _renderOutsideControlAction(dragTarget) {
774
- return html`<div slot="outside-control-action" @mouseenter="${this._onMouseEnter}" @mouseleave="${this._onMouseLeave}">${dragTarget}</div>`;
793
+ return html`<div slot="outside-control-action"
794
+ @mouseenter="${this._onMouseEnterControl}"
795
+ @mouseleave="${this._onMouseLeaveControl}">
796
+ ${dragTarget}
797
+ </div>`;
775
798
  }
776
799
 
777
800
  _renderOutsideControlHandleOnly(dragHandle) {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@brightspace-ui/core",
3
- "version": "3.64.1",
3
+ "version": "3.64.2",
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",