@vaadin/a11y-base 25.3.0-alpha12 → 25.3.0-alpha14

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-alpha12",
3
+ "version": "25.3.0-alpha14",
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-alpha12",
35
+ "@vaadin/component-base": "25.3.0-alpha14",
36
36
  "lit": "^3.0.0"
37
37
  },
38
38
  "devDependencies": {
39
- "@vaadin/chai-plugins": "25.3.0-alpha12",
40
- "@vaadin/test-runner-commands": "25.3.0-alpha12",
39
+ "@vaadin/chai-plugins": "25.3.0-alpha14",
40
+ "@vaadin/test-runner-commands": "25.3.0-alpha14",
41
41
  "@vaadin/testing-helpers": "^2.0.0",
42
42
  "sinon": "^22.0.0"
43
43
  },
44
44
  "customElements": "custom-elements.json",
45
- "gitHead": "0f0337783efe38332f5dc6a8968f207d2982de4b"
45
+ "gitHead": "10a01ae7a1e278af50eda7255dbb68dafc0e4caf"
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 }`.