@brightspace-ui/core 1.233.0 → 1.233.1

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,8 @@ 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;
301
309
  }
302
310
 
303
311
  get breakpoints() {
@@ -421,6 +429,12 @@ export const ListItemMixin = superclass => class extends LocalizeCoreElement(Lis
421
429
  this._focusingPrimaryAction = false;
422
430
  }
423
431
 
432
+ _onFullscreenWithin(e) {
433
+ if (e.detail.state) this._fullscreenWithinCount += 1;
434
+ else this._fullscreenWithinCount -= 1;
435
+ this._fullscreenWithin = (this._fullscreenWithinCount > 0);
436
+ }
437
+
424
438
  _onMouseEnter() {
425
439
  this._hovering = true;
426
440
  }
@@ -460,6 +474,7 @@ export const ListItemMixin = superclass => class extends LocalizeCoreElement(Lis
460
474
  <d2l-list-item-generic-layout
461
475
  @focusin="${this._onFocusIn}"
462
476
  @focusout="${this._onFocusOut}"
477
+ @d2l-fullscreen-within="${this._onFullscreenWithin}"
463
478
  class="${classMap(classes)}"
464
479
  data-breakpoint="${this._breakpoint}"
465
480
  data-separators="${ifDefined(this._separators)}"
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@brightspace-ui/core",
3
- "version": "1.233.0",
3
+ "version": "1.233.1",
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",