@brightspace-ui/core 2.131.4 → 2.131.5

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.
@@ -69,7 +69,6 @@ class ListItemGenericLayout extends RtlMixin(LitElement) {
69
69
  [end actions-end];
70
70
  grid-template-rows: [main-start] [main-end nested-start] [nested-end];
71
71
  position: relative;
72
- z-index: 0;
73
72
  }
74
73
 
75
74
  ::slotted([slot="nested"]) {
@@ -80,15 +79,15 @@ class ListItemGenericLayout extends RtlMixin(LitElement) {
80
79
  grid-column: control-start / end;
81
80
  }
82
81
  :host(.d2l-dragging-over) ::slotted([slot="nested"]) {
83
- z-index: 7; /* must be greater than item's drop-target to allow dropping onto items within nested list */
82
+ order: 7; /* must be greater than item's drop-target to allow dropping onto items within nested list */
84
83
  }
85
84
 
86
85
  ::slotted([slot="drop-target"]) {
87
86
  height: 100%;
87
+ order: 6;
88
88
  position: absolute;
89
89
  top: 0;
90
90
  width: 100%;
91
- z-index: 6;
92
91
  }
93
92
 
94
93
  ::slotted([slot="outside-control"]),
@@ -105,7 +104,7 @@ class ListItemGenericLayout extends RtlMixin(LitElement) {
105
104
  ::slotted([slot="expand-collapse"]) {
106
105
  cursor: pointer;
107
106
  grid-column: expand-collapse-start / expand-collapse-end;
108
- z-index: 2;
107
+ order: 2;
109
108
  }
110
109
 
111
110
  ::slotted([slot="control"]) {
@@ -124,7 +123,7 @@ class ListItemGenericLayout extends RtlMixin(LitElement) {
124
123
  ::slotted([slot="actions"]) {
125
124
  grid-column: actions-start / actions-end;
126
125
  justify-self: end;
127
- z-index: 5;
126
+ order: 5;
128
127
  }
129
128
 
130
129
  ::slotted([slot="outside-control-action"]),
@@ -134,7 +133,7 @@ class ListItemGenericLayout extends RtlMixin(LitElement) {
134
133
  }
135
134
  ::slotted([slot="outside-control-action"]) {
136
135
  grid-column: start / end;
137
- z-index: 1;
136
+ order: 1;
138
137
  }
139
138
  :host([no-primary-action]) ::slotted([slot="outside-control-action"]) {
140
139
  grid-column: start / outside-control-end;
@@ -142,15 +141,15 @@ class ListItemGenericLayout extends RtlMixin(LitElement) {
142
141
  ::slotted([slot="control-action"]) {
143
142
  grid-column: control-start / end;
144
143
  height: 100%;
144
+ order: 3;
145
145
  width: 100%;
146
- z-index: 3;
147
146
  }
148
147
  :host([no-primary-action]) ::slotted([slot="control-action"]) {
149
148
  grid-column: control-start / control-end;
150
149
  }
151
150
  ::slotted([slot="content-action"]) {
152
151
  grid-column: content-start / end;
153
- z-index: 4;
152
+ order: 4;
154
153
  }
155
154
  :host([no-primary-action]) ::slotted([slot="content-action"]) {
156
155
  display: none;
@@ -84,15 +84,12 @@ export const ListItemMixin = superclass => class extends composeMixins(
84
84
  paddingType: { type: String, attribute: 'padding-type' },
85
85
  _breakpoint: { type: Number },
86
86
  _displayKeyboardTooltip: { type: Boolean },
87
- _dropdownOpen: { type: Boolean, attribute: '_dropdown-open', reflect: true },
88
- _fullscreenWithin: { type: Boolean, attribute: '_fullscreen-within', reflect: true },
89
87
  _hovering: { type: Boolean, reflect: true },
90
88
  _hoveringPrimaryAction: { type: Boolean, attribute: '_hovering-primary-action', reflect: true },
91
89
  _focusing: { type: Boolean, reflect: true },
92
90
  _focusingPrimaryAction: { type: Boolean, attribute: '_focusing-primary-action', reflect: true },
93
91
  _highlight: { type: Boolean, reflect: true },
94
92
  _highlighting: { type: Boolean, reflect: true },
95
- _tooltipShowing: { type: Boolean, attribute: '_tooltip-showing', reflect: true },
96
93
  _hasNestedList: { state: true }
97
94
  };
98
95
  }
@@ -108,15 +105,6 @@ export const ListItemMixin = superclass => class extends composeMixins(
108
105
  display: none;
109
106
  }
110
107
 
111
- :host([_tooltip-showing]),
112
- :host([_dropdown-open]) {
113
- z-index: 10; /* must be greater than adjacent selected items (if this is increased, d2l-collapsible-panel must be updated too) */
114
- }
115
- :host([_fullscreen-within]) {
116
- position: fixed; /* required for Safari */
117
- z-index: 998; /* must be greater than floating workflow buttons */
118
- }
119
-
120
108
  :host([dragging]) d2l-list-item-generic-layout {
121
109
  filter: grayscale(75%);
122
110
  opacity: 0.4;
@@ -126,9 +114,10 @@ export const ListItemMixin = superclass => class extends composeMixins(
126
114
  }
127
115
 
128
116
  [slot="control-container"] {
117
+ pointer-events: none;
129
118
  position: relative;
130
- z-index: -1; /* must allow for interactive content to be accessible with mouse */
131
119
  }
120
+
132
121
  :host(:first-of-type) [slot="control-container"]::before,
133
122
  [slot="control-container"]::after {
134
123
  border-top: 1px solid var(--d2l-color-mica);
@@ -389,8 +378,6 @@ export const ListItemMixin = superclass => class extends composeMixins(
389
378
  this._breakpoint = 0;
390
379
  this._contentId = getUniqueId();
391
380
  this._displayKeyboardTooltip = false;
392
- this._fullscreenWithin = false;
393
- this._fullscreenWithinCount = 0;
394
381
  this._hasNestedList = false;
395
382
  }
396
383
 
@@ -421,14 +408,6 @@ export const ListItemMixin = superclass => class extends composeMixins(
421
408
  ro.unobserve(this);
422
409
  }
423
410
 
424
- firstUpdated(changedProperties) {
425
- this.addEventListener('d2l-dropdown-open', () => this._dropdownOpen = true);
426
- this.addEventListener('d2l-dropdown-close', () => this._dropdownOpen = false);
427
- this.addEventListener('d2l-tooltip-show', () => this._tooltipShowing = true);
428
- this.addEventListener('d2l-tooltip-hide', () => this._tooltipShowing = false);
429
- super.firstUpdated(changedProperties);
430
- }
431
-
432
411
  updated(changedProperties) {
433
412
  super.updated(changedProperties);
434
413
  if (changedProperties.has('breakpoints')) {
@@ -579,12 +558,6 @@ export const ListItemMixin = superclass => class extends composeMixins(
579
558
  this._focusingPrimaryAction = false;
580
559
  }
581
560
 
582
- _onFullscreenWithin(e) {
583
- if (e.detail.state) this._fullscreenWithinCount += 1;
584
- else this._fullscreenWithinCount -= 1;
585
- this._fullscreenWithin = (this._fullscreenWithinCount > 0);
586
- }
587
-
588
561
  _onMouseEnter() {
589
562
  this._hovering = true;
590
563
  }
@@ -629,7 +602,6 @@ export const ListItemMixin = superclass => class extends composeMixins(
629
602
  align-nested="${ifDefined(this.draggable && this.selectable ? 'control' : undefined)}"
630
603
  @focusin="${this._onFocusIn}"
631
604
  @focusout="${this._onFocusOut}"
632
- @d2l-fullscreen-within="${this._onFullscreenWithin}"
633
605
  class="${classMap(classes)}"
634
606
  data-breakpoint="${this._breakpoint}"
635
607
  data-separators="${ifDefined(this._separators)}"
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@brightspace-ui/core",
3
- "version": "2.131.4",
3
+ "version": "2.131.5",
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",