@brightspace-ui/core 3.203.1 → 3.203.2
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.
|
@@ -1,7 +1,6 @@
|
|
|
1
1
|
import { css, html, LitElement } from 'lit';
|
|
2
2
|
import { findComposedAncestor, isComposedAncestor } from '../../helpers/dom.js';
|
|
3
3
|
import { getComposedActiveElement, getFirstFocusableDescendant, getFocusableDescendants, getLastFocusableDescendant, getNextFocusable, getPreviousFocusable } from '../../helpers/focus.js';
|
|
4
|
-
import { getFlag } from '../../helpers/flags.js';
|
|
5
4
|
import { isInteractiveDescendant } from '../../mixins/interactive/interactive-mixin.js';
|
|
6
5
|
|
|
7
6
|
const keyCodes = {
|
|
@@ -17,8 +16,6 @@ const keyCodes = {
|
|
|
17
16
|
UP: 38
|
|
18
17
|
};
|
|
19
18
|
|
|
20
|
-
const listItemUpButtonFixFlag = getFlag('GAUD-8229-list-up-button-fix', true);
|
|
21
|
-
|
|
22
19
|
function isRtl() {
|
|
23
20
|
return document.documentElement.getAttribute('dir') === 'rtl';
|
|
24
21
|
}
|
|
@@ -491,27 +488,16 @@ class ListItemGenericLayout extends LitElement {
|
|
|
491
488
|
do {
|
|
492
489
|
// this check needs to account for standard list-items as well as custom
|
|
493
490
|
nestedList = previousElement.querySelector('[slot="nested"]') || previousElement.shadowRoot.querySelector('d2l-list');
|
|
494
|
-
if
|
|
495
|
-
|
|
496
|
-
|
|
497
|
-
|
|
498
|
-
|
|
499
|
-
previousElement = nestedListItems[nestedListItems.length - 1];
|
|
500
|
-
} else {
|
|
501
|
-
break;
|
|
502
|
-
}
|
|
491
|
+
// if there is nested list and nested list content is accessible
|
|
492
|
+
if (nestedList && (!previousElement.expandable || (previousElement.expandable && previousElement.expanded))) {
|
|
493
|
+
const nestedListItems = [...nestedList.children].filter(node => node.role === 'row');
|
|
494
|
+
if (nestedListItems.length) {
|
|
495
|
+
previousElement = nestedListItems[nestedListItems.length - 1];
|
|
503
496
|
} else {
|
|
504
497
|
break;
|
|
505
498
|
}
|
|
506
499
|
} else {
|
|
507
|
-
|
|
508
|
-
const nestedListItems = [...nestedList.children].filter(node => node.role === 'row');
|
|
509
|
-
if (nestedListItems.length) {
|
|
510
|
-
previousElement = nestedListItems[nestedListItems.length - 1];
|
|
511
|
-
} else {
|
|
512
|
-
break;
|
|
513
|
-
}
|
|
514
|
-
}
|
|
500
|
+
break;
|
|
515
501
|
}
|
|
516
502
|
} while (nestedList);
|
|
517
503
|
return previousElement;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@brightspace-ui/core",
|
|
3
|
-
"version": "3.203.
|
|
3
|
+
"version": "3.203.2",
|
|
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",
|