@brightspace-ui/core 3.100.1 → 3.100.3

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.
@@ -53,7 +53,6 @@ export const DialogMixin = superclass => class extends RtlMixin(superclass) {
53
53
  _isFullHeight: { state: true },
54
54
  _left: { state: true },
55
55
  _margin: { state: true },
56
- _mobileDropdownShowing: { state: true },
57
56
  _nestedShowing: { state: true },
58
57
  _overflowBottom: { state: true },
59
58
  _overflowTop: { state: true },
@@ -73,7 +72,6 @@ export const DialogMixin = superclass => class extends RtlMixin(superclass) {
73
72
  this._autoSize = true;
74
73
  this._dialogId = getUniqueId();
75
74
  this._fullscreenWithin = 0;
76
- this._handleDropdownOpenClose = this._handleDropdownOpenClose.bind(this);
77
75
  this._handleMvcDialogOpen = this._handleMvcDialogOpen.bind(this);
78
76
  this._inIframe = false;
79
77
  this._isDialogMixin = true;
@@ -81,7 +79,6 @@ export const DialogMixin = superclass => class extends RtlMixin(superclass) {
81
79
  this._height = 0;
82
80
  this._left = 0;
83
81
  this._margin = { top: defaultMargin.top, right: defaultMargin.right, bottom: defaultMargin.bottom, left: defaultMargin.left };
84
- this._mobileDropdownShowing = false;
85
82
  this._nestedShowing = false;
86
83
  this._overflowBottom = false;
87
84
  this._overflowTop = false;
@@ -158,8 +155,6 @@ export const DialogMixin = superclass => class extends RtlMixin(superclass) {
158
155
  _addHandlers() {
159
156
  window.addEventListener('resize', this._updateSize);
160
157
  this.addEventListener('touchstart', this._handleTouchStart);
161
- this.addEventListener('d2l-dropdown-open', this._handleDropdownOpenClose, { capture: true });
162
- this.addEventListener('d2l-dropdown-close', this._handleDropdownOpenClose, { capture: true });
163
158
  if (this.shadowRoot) this.shadowRoot.querySelector('.d2l-dialog-content').addEventListener('scroll', this._updateOverflow);
164
159
  }
165
160
 
@@ -350,10 +345,6 @@ export const DialogMixin = superclass => class extends RtlMixin(superclass) {
350
345
  e.stopPropagation();
351
346
  }
352
347
 
353
- _handleDropdownOpenClose(e) {
354
- this._mobileDropdownShowing = e.composedPath()[0]._useMobileStyling;
355
- }
356
-
357
348
  _handleFocusTrapEnter(e) {
358
349
  // ignore focus trap events when the target is another element
359
350
  // to prevent infinite focus loops
@@ -476,8 +467,6 @@ export const DialogMixin = superclass => class extends RtlMixin(superclass) {
476
467
  _removeHandlers() {
477
468
  window.removeEventListener('resize', this._updateSize);
478
469
  this.removeEventListener('touchstart', this._handleTouchStart);
479
- this.removeEventListener('d2l-dropdown-open', this._handleDropdownOpenClose, { capture: true });
480
- this.removeEventListener('d2l-dropdown-close', this._handleDropdownOpenClose, { capture: true });
481
470
  if (this.shadowRoot) this.shadowRoot.querySelector('.d2l-dialog-content').removeEventListener('scroll', this._updateOverflow);
482
471
  }
483
472
 
@@ -506,8 +495,7 @@ export const DialogMixin = superclass => class extends RtlMixin(superclass) {
506
495
  'd2l-dialog-outer-nested-showing': !this._useNative && this._nestedShowing,
507
496
  'd2l-dialog-outer-scroll': this._scroll,
508
497
  'd2l-dialog-fullscreen-mobile': info.fullscreenMobile,
509
- 'd2l-dialog-fullscreen-within': this._fullscreenWithin !== 0,
510
- 'd2l-dialog-dropdown-mobile': this._mobileDropdownShowing
498
+ 'd2l-dialog-fullscreen-within': this._fullscreenWithin !== 0
511
499
  };
512
500
 
513
501
  return html`${this._useNative ?
@@ -151,10 +151,6 @@ export const dialogStyles = css`
151
151
  overflow: auto;
152
152
  }
153
153
 
154
- .d2l-dialog-dropdown-mobile .d2l-dialog-content {
155
- overflow: hidden; /* workaround to fix clipping of nested fixed position elements with overlowing content in Safari bug: https://bugs.webkit.org/show_bug.cgi?id=160953 */
156
- }
157
-
158
154
  .d2l-dialog-footer {
159
155
  box-sizing: border-box;
160
156
  flex: none;
@@ -97,6 +97,9 @@ class OverflowGroup extends OverflowGroupMixin(LitElement) {
97
97
  ::slotted(d2l-selection-action-dropdown) {
98
98
  margin-inline-end: 0.2rem;
99
99
  }
100
+ ::slotted(*:last-child) {
101
+ margin-inline-end: 0;
102
+ }
100
103
  `];
101
104
  }
102
105
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@brightspace-ui/core",
3
- "version": "3.100.1",
3
+ "version": "3.100.3",
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",