@lumx/react 3.19.1-alpha.8 → 3.19.1-alpha.9
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.
package/package.json
CHANGED
|
@@ -6,8 +6,8 @@
|
|
|
6
6
|
"url": "https://github.com/lumapps/design-system/issues"
|
|
7
7
|
},
|
|
8
8
|
"dependencies": {
|
|
9
|
-
"@lumx/core": "^3.19.1-alpha.
|
|
10
|
-
"@lumx/icons": "^3.19.1-alpha.
|
|
9
|
+
"@lumx/core": "^3.19.1-alpha.9",
|
|
10
|
+
"@lumx/icons": "^3.19.1-alpha.9",
|
|
11
11
|
"@popperjs/core": "^2.5.4",
|
|
12
12
|
"body-scroll-lock": "^3.1.5",
|
|
13
13
|
"classnames": "^2.3.2",
|
|
@@ -103,5 +103,5 @@
|
|
|
103
103
|
"build:storybook": "storybook build"
|
|
104
104
|
},
|
|
105
105
|
"sideEffects": false,
|
|
106
|
-
"version": "3.19.1-alpha.
|
|
106
|
+
"version": "3.19.1-alpha.9"
|
|
107
107
|
}
|
|
@@ -43,7 +43,7 @@ describe(`<${ListItem.displayName}>`, () => {
|
|
|
43
43
|
it('should render disabled list item button', async () => {
|
|
44
44
|
const onItemSelected = vi.fn();
|
|
45
45
|
const { link } = setup({ children: 'Label', isDisabled: true, onItemSelected });
|
|
46
|
-
expect(link).
|
|
46
|
+
expect(link).toHaveAttribute('aria-disabled', 'true');
|
|
47
47
|
// The `renderLink` util removes the onClick handler but `user-event` will also not fire events on disabled elements.
|
|
48
48
|
if (link) await userEvent.click(link);
|
|
49
49
|
expect(onItemSelected).not.toHaveBeenCalled();
|
|
@@ -57,6 +57,7 @@ describe(`<${ListItem.displayName}>`, () => {
|
|
|
57
57
|
linkProps: { href: 'https://example.com' },
|
|
58
58
|
onItemSelected,
|
|
59
59
|
});
|
|
60
|
+
expect(link).not.toHaveAttribute('href');
|
|
60
61
|
expect(link).toHaveAttribute('aria-disabled', 'true');
|
|
61
62
|
if (link) await userEvent.click(link);
|
|
62
63
|
expect(onItemSelected).not.toHaveBeenCalled();
|
|
@@ -78,6 +79,7 @@ describe(`<${ListItem.displayName}>`, () => {
|
|
|
78
79
|
linkProps: { href: 'https://example.com' },
|
|
79
80
|
onItemSelected,
|
|
80
81
|
});
|
|
82
|
+
expect(link).not.toHaveAttribute('href');
|
|
81
83
|
expect(link).toHaveAttribute('aria-disabled', 'true');
|
|
82
84
|
if (link) await userEvent.click(link);
|
|
83
85
|
expect(onItemSelected).not.toHaveBeenCalled();
|