@brightspace-ui/core 2.132.2 → 2.132.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.
@@ -413,16 +413,18 @@ class ListItemGenericLayout extends RtlMixin(LitElement) {
413
413
  while (previousElement) {
414
414
  if (previousElement.role === 'rowgroup') {
415
415
 
416
- // this check needs to account for standard list-items as well as custom
417
- const nestedList = previousElement.querySelector('[slot="nested"]') || previousElement.shadowRoot.querySelector('d2l-list');
418
- if (nestedList) {
419
- const nestedListItems = [...nestedList.children].filter(node => node.role === 'rowgroup');
420
- if (nestedListItems && nestedListItems.length > 0) {
421
- return nestedListItems[nestedListItems.length - 1];
416
+ let nestedList;
417
+ do {
418
+ // this check needs to account for standard list-items as well as custom
419
+ nestedList = previousElement.querySelector('[slot="nested"]') || previousElement.shadowRoot.querySelector('d2l-list');
420
+ if (nestedList) {
421
+ const nestedListItems = [...nestedList.children].filter(node => node.role === 'rowgroup');
422
+ if (nestedListItems.length) {
423
+ previousElement = nestedListItems[nestedListItems.length - 1];
424
+ }
422
425
  }
423
- }
426
+ } while (nestedList);
424
427
  return previousElement;
425
-
426
428
  }
427
429
  previousElement = previousElement.previousElementSibling;
428
430
  }
@@ -86,7 +86,6 @@ export const SwitchMixin = superclass => class extends FocusMixin(RtlMixin(super
86
86
  .d2l-switch-toggle {
87
87
  position: relative;
88
88
  transition: transform 150ms ease-out;
89
- z-index: 1;
90
89
  }
91
90
  .d2l-switch-toggle > div {
92
91
  background-color: #ffffff;
@@ -97,7 +96,7 @@ export const SwitchMixin = superclass => class extends FocusMixin(RtlMixin(super
97
96
  height: 1.1rem;
98
97
  left: -0.1rem;
99
98
  position: absolute;
100
- top: -0.15rem;
99
+ top: -0.95rem;
101
100
  width: 1.1rem;
102
101
  }
103
102
  :host([on]) .d2l-switch-toggle > div {
@@ -211,9 +210,9 @@ export const SwitchMixin = superclass => class extends FocusMixin(RtlMixin(super
211
210
  role="switch"
212
211
  tabindex="${ifDefined(tabindex)}">
213
212
  <div class="${classMap(innerSwitchClasses)}">
214
- <div class="d2l-switch-toggle"><div></div></div>
215
213
  <div class="d2l-switch-icon-on">${this.onIcon}</div>
216
214
  <div class="d2l-switch-icon-off">${this.offIcon}</div>
215
+ <div class="d2l-switch-toggle"><div></div></div>
217
216
  </div>
218
217
  </div>
219
218
  ${textPosition === 'end' || textPosition === 'hidden' ? switchLabel : ''}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@brightspace-ui/core",
3
- "version": "2.132.2",
3
+ "version": "2.132.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",
@@ -45,7 +45,7 @@
45
45
  "devDependencies": {
46
46
  "@babel/eslint-parser": "^7",
47
47
  "@brightspace-ui/stylelint-config": "^0.8",
48
- "@brightspace-ui/testing": "^0.11",
48
+ "@brightspace-ui/testing": "^0.15",
49
49
  "@open-wc/semantic-dom-diff": "^0.20",
50
50
  "@rollup/plugin-dynamic-import-vars": "^2",
51
51
  "@rollup/plugin-node-resolve": "^15",