@brightspace-ui/core 1.231.3 → 1.231.4

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 },
@@ -92,7 +93,8 @@ export const ListItemMixin = superclass => class extends LocalizeCoreElement(Lis
92
93
  display: none;
93
94
  }
94
95
  :host([_tooltip-showing]),
95
- :host([_dropdown-open]) {
96
+ :host([_dropdown-open]),
97
+ :host([_fullscreen-within]) {
96
98
  z-index: 10;
97
99
  }
98
100
  :host(:first-child) d2l-list-item-generic-layout[data-separators="between"] {
@@ -275,6 +277,10 @@ export const ListItemMixin = superclass => class extends LocalizeCoreElement(Lis
275
277
  width: 100%;
276
278
  z-index: 5;
277
279
  }
280
+ :host([_fullscreen-within]) .d2l-list-item-active-border,
281
+ :host([_fullscreen-within]) d2l-list-item-generic-layout.d2l-focusing + .d2l-list-item-active-border {
282
+ display: none;
283
+ }
278
284
  d2l-tooltip > div {
279
285
  font-weight: 700;
280
286
  }
@@ -298,6 +304,9 @@ export const ListItemMixin = superclass => class extends LocalizeCoreElement(Lis
298
304
  this._breakpoint = 0;
299
305
  this._contentId = getUniqueId();
300
306
  this._displayKeyboardTooltip = false;
307
+ this._fullscreenWithin = false;
308
+ this._fullscreenWithinCount = 0;
309
+
301
310
  }
302
311
 
303
312
  get breakpoints() {
@@ -421,6 +430,12 @@ export const ListItemMixin = superclass => class extends LocalizeCoreElement(Lis
421
430
  this._focusingPrimaryAction = false;
422
431
  }
423
432
 
433
+ _onFullscreenWithin(e) {
434
+ if (e.detail.state) this._fullscreenWithinCount += 1;
435
+ else this._fullscreenWithinCount -= 1;
436
+ this._fullscreenWithin = (this._fullscreenWithinCount > 0);
437
+ }
438
+
424
439
  _onMouseEnter() {
425
440
  this._hovering = true;
426
441
  }
@@ -460,6 +475,7 @@ export const ListItemMixin = superclass => class extends LocalizeCoreElement(Lis
460
475
  <d2l-list-item-generic-layout
461
476
  @focusin="${this._onFocusIn}"
462
477
  @focusout="${this._onFocusOut}"
478
+ @d2l-fullscreen-within="${this._onFullscreenWithin}"
463
479
  class="${classMap(classes)}"
464
480
  data-breakpoint="${this._breakpoint}"
465
481
  data-separators="${ifDefined(this._separators)}"
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@brightspace-ui/core",
3
- "version": "1.231.3",
3
+ "version": "1.231.4",
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",