@brightspace-ui/core 2.132.3 → 2.132.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.
@@ -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
  }
@@ -65,6 +65,10 @@ class List extends PageableMixin(SelectionMixin(LitElement)) {
65
65
  slot[name="pager"]::slotted(*) {
66
66
  margin-top: 10px;
67
67
  }
68
+ :host([extend-separators]) slot[name="pager"]::slotted(*) {
69
+ margin-left: 0.9rem;
70
+ margin-right: 0.9rem;
71
+ }
68
72
  `;
69
73
  }
70
74
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@brightspace-ui/core",
3
- "version": "2.132.3",
3
+ "version": "2.132.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",