@brightspace-ui/core 1.231.2 → 1.231.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.
@@ -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 },
@@ -95,6 +96,9 @@ export const ListItemMixin = superclass => class extends LocalizeCoreElement(Lis
95
96
  :host([_dropdown-open]) {
96
97
  z-index: 10;
97
98
  }
99
+ :host([_fullscreen-within]) {
100
+ z-index: 1000; /* must be greater than floating workflow buttons */
101
+ }
98
102
  :host(:first-child) d2l-list-item-generic-layout[data-separators="between"] {
99
103
  border-top: 1px solid transparent;
100
104
  }
@@ -275,6 +279,10 @@ export const ListItemMixin = superclass => class extends LocalizeCoreElement(Lis
275
279
  width: 100%;
276
280
  z-index: 5;
277
281
  }
282
+ :host([_fullscreen-within]) .d2l-list-item-active-border,
283
+ :host([_fullscreen-within]) d2l-list-item-generic-layout.d2l-focusing + .d2l-list-item-active-border {
284
+ display: none;
285
+ }
278
286
  d2l-tooltip > div {
279
287
  font-weight: 700;
280
288
  }
@@ -298,6 +306,9 @@ export const ListItemMixin = superclass => class extends LocalizeCoreElement(Lis
298
306
  this._breakpoint = 0;
299
307
  this._contentId = getUniqueId();
300
308
  this._displayKeyboardTooltip = false;
309
+ this._fullscreenWithin = false;
310
+ this._fullscreenWithinCount = 0;
311
+
301
312
  }
302
313
 
303
314
  get breakpoints() {
@@ -421,6 +432,12 @@ export const ListItemMixin = superclass => class extends LocalizeCoreElement(Lis
421
432
  this._focusingPrimaryAction = false;
422
433
  }
423
434
 
435
+ _onFullscreenWithin(e) {
436
+ if (e.detail.state) this._fullscreenWithinCount += 1;
437
+ else this._fullscreenWithinCount -= 1;
438
+ this._fullscreenWithin = (this._fullscreenWithinCount > 0);
439
+ }
440
+
424
441
  _onMouseEnter() {
425
442
  this._hovering = true;
426
443
  }
@@ -460,6 +477,7 @@ export const ListItemMixin = superclass => class extends LocalizeCoreElement(Lis
460
477
  <d2l-list-item-generic-layout
461
478
  @focusin="${this._onFocusIn}"
462
479
  @focusout="${this._onFocusOut}"
480
+ @d2l-fullscreen-within="${this._onFullscreenWithin}"
463
481
  class="${classMap(classes)}"
464
482
  data-breakpoint="${this._breakpoint}"
465
483
  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.2",
3
+ "version": "1.231.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",
@@ -542,7 +542,6 @@ class TemplatePrimarySecondary extends FocusVisiblePolyfillMixin(RtlMixin(Locali
542
542
 
543
543
  main {
544
544
  flex: 2 0 0;
545
- -webkit-overflow-scrolling: touch;
546
545
  overflow-x: hidden;
547
546
  transition: none;
548
547
  }
@@ -570,7 +569,6 @@ class TemplatePrimarySecondary extends FocusVisiblePolyfillMixin(RtlMixin(Locali
570
569
  aside {
571
570
  height: 100%;
572
571
  min-width: ${desktopMinSize}px;
573
- -webkit-overflow-scrolling: touch;
574
572
  overflow-x: hidden;
575
573
  overflow-y: scroll;
576
574
  }