@vaadin/a11y-base 25.2.0-alpha8 → 25.2.0-alpha9
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 +5 -5
- package/src/list-mixin.js +16 -0
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@vaadin/a11y-base",
|
|
3
|
-
"version": "25.2.0-
|
|
3
|
+
"version": "25.2.0-alpha9",
|
|
4
4
|
"publishConfig": {
|
|
5
5
|
"access": "public"
|
|
6
6
|
},
|
|
@@ -32,15 +32,15 @@
|
|
|
32
32
|
],
|
|
33
33
|
"dependencies": {
|
|
34
34
|
"@open-wc/dedupe-mixin": "^1.3.0",
|
|
35
|
-
"@vaadin/component-base": "25.2.0-
|
|
35
|
+
"@vaadin/component-base": "25.2.0-alpha9",
|
|
36
36
|
"lit": "^3.0.0"
|
|
37
37
|
},
|
|
38
38
|
"devDependencies": {
|
|
39
|
-
"@vaadin/chai-plugins": "25.2.0-
|
|
40
|
-
"@vaadin/test-runner-commands": "25.2.0-
|
|
39
|
+
"@vaadin/chai-plugins": "25.2.0-alpha9",
|
|
40
|
+
"@vaadin/test-runner-commands": "25.2.0-alpha9",
|
|
41
41
|
"@vaadin/testing-helpers": "^2.0.0",
|
|
42
42
|
"sinon": "^21.0.2"
|
|
43
43
|
},
|
|
44
44
|
"customElements": "custom-elements.json",
|
|
45
|
-
"gitHead": "
|
|
45
|
+
"gitHead": "a38a03e8a8be45821f39c14054c63634dafe08d0"
|
|
46
46
|
}
|
package/src/list-mixin.js
CHANGED
|
@@ -335,6 +335,22 @@ export const ListMixin = (superClass) =>
|
|
|
335
335
|
}
|
|
336
336
|
}
|
|
337
337
|
|
|
338
|
+
/**
|
|
339
|
+
* Override method inherited from `KeyboardDirectionMixin` to allow
|
|
340
|
+
* focusing disabled items that are configured so.
|
|
341
|
+
*
|
|
342
|
+
* @param {Element} item
|
|
343
|
+
* @protected
|
|
344
|
+
* @override
|
|
345
|
+
*/
|
|
346
|
+
_isItemFocusable(item) {
|
|
347
|
+
if (item.disabled && item.__shouldAllowFocusWhenDisabled) {
|
|
348
|
+
return item.__shouldAllowFocusWhenDisabled();
|
|
349
|
+
}
|
|
350
|
+
|
|
351
|
+
return super._isItemFocusable(item);
|
|
352
|
+
}
|
|
353
|
+
|
|
338
354
|
/**
|
|
339
355
|
* Fired when the selection is changed.
|
|
340
356
|
* Not fired when used in `multiple` selection mode.
|