@vaadin/a11y-base 25.3.0-alpha9 → 25.3.0-beta1

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
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@vaadin/a11y-base",
3
- "version": "25.3.0-alpha9",
3
+ "version": "25.3.0-beta1",
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.3.0-alpha9",
35
+ "@vaadin/component-base": "25.3.0-beta1",
36
36
  "lit": "^3.0.0"
37
37
  },
38
38
  "devDependencies": {
39
- "@vaadin/chai-plugins": "25.3.0-alpha9",
40
- "@vaadin/test-runner-commands": "25.3.0-alpha9",
39
+ "@vaadin/chai-plugins": "25.3.0-beta1",
40
+ "@vaadin/test-runner-commands": "25.3.0-beta1",
41
41
  "@vaadin/testing-helpers": "^2.0.0",
42
42
  "sinon": "^22.0.0"
43
43
  },
44
44
  "customElements": "custom-elements.json",
45
- "gitHead": "cb915ebde095ec5b94a87af93dd4530f51984c52"
45
+ "gitHead": "295432e44a6967e1aff36462b2e3e1d0e64eb8cc"
46
46
  }
@@ -79,7 +79,8 @@ const DelegateFocusMixinImplementation = (superclass) => {
79
79
  */
80
80
  focus(options) {
81
81
  if (this.focusElement && !this.disabled) {
82
- this.focusElement.focus();
82
+ // Only forward the native option, `focusVisible` is handled below.
83
+ this.focusElement.focus({ preventScroll: !!options?.preventScroll });
83
84
 
84
85
  // Set focus-ring attribute on programmatic focus by default
85
86
  // unless explicitly disabled by `{ focusVisible: false }`.
@@ -244,7 +244,7 @@ function collectFocusableNodes(node, result) {
244
244
  result.push(element);
245
245
  }
246
246
 
247
- let children = [];
247
+ let children;
248
248
  if (element.localName === 'slot') {
249
249
  children = element.assignedNodes({ flatten: true });
250
250
  } else {