@vaadin/a11y-base 24.9.0-alpha1 → 24.9.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": "24.9.0-alpha1",
3
+ "version": "24.9.0-beta1",
4
4
  "publishConfig": {
5
5
  "access": "public"
6
6
  },
@@ -32,14 +32,14 @@
32
32
  "dependencies": {
33
33
  "@open-wc/dedupe-mixin": "^1.3.0",
34
34
  "@polymer/polymer": "^3.0.0",
35
- "@vaadin/component-base": "24.9.0-alpha1",
35
+ "@vaadin/component-base": "24.9.0-beta1",
36
36
  "lit": "^3.0.0"
37
37
  },
38
38
  "devDependencies": {
39
- "@vaadin/chai-plugins": "24.9.0-alpha1",
40
- "@vaadin/test-runner-commands": "24.9.0-alpha1",
39
+ "@vaadin/chai-plugins": "24.9.0-beta1",
40
+ "@vaadin/test-runner-commands": "24.9.0-beta1",
41
41
  "@vaadin/testing-helpers": "^1.1.0",
42
42
  "sinon": "^18.0.0"
43
43
  },
44
- "gitHead": "cc13d59f0e3cd1a3b0c19c1a900a5308446fe7ac"
44
+ "gitHead": "5f6e6e33217fef06e5d5cc52baa4d760969ef1e4"
45
45
  }
@@ -3,7 +3,7 @@
3
3
  * Copyright (c) 2021 - 2025 Vaadin Ltd.
4
4
  * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
5
5
  */
6
- import { getFocusableElements, isElementFocused } from './focus-utils.js';
6
+ import { getFocusableElements, isElementFocused, isKeyboardActive } from './focus-utils.js';
7
7
 
8
8
  const instances = [];
9
9
 
@@ -87,7 +87,7 @@ export class FocusTrapController {
87
87
  instances.push(this);
88
88
 
89
89
  if (this.__focusedElementIndex === -1) {
90
- this.__focusableElements[0].focus();
90
+ this.__focusableElements[0].focus({ focusVisible: isKeyboardActive() });
91
91
  }
92
92
  }
93
93
 
@@ -147,7 +147,7 @@ export class FocusTrapController {
147
147
  const currentIndex = this.__focusedElementIndex;
148
148
  const nextIndex = (focusableElements.length + currentIndex + step) % focusableElements.length;
149
149
  const element = focusableElements[nextIndex];
150
- element.focus();
150
+ element.focus({ focusVisible: true });
151
151
  if (element.localName === 'input') {
152
152
  element.select();
153
153
  }