@vaadin/a11y-base
Advanced tools
Comparing version
{ | ||
"name": "@vaadin/a11y-base", | ||
"version": "24.9.0-alpha1", | ||
"version": "24.9.0-alpha2", | ||
"publishConfig": { | ||
@@ -35,12 +35,12 @@ "access": "public" | ||
"@polymer/polymer": "^3.0.0", | ||
"@vaadin/component-base": "24.9.0-alpha1", | ||
"@vaadin/component-base": "24.9.0-alpha2", | ||
"lit": "^3.0.0" | ||
}, | ||
"devDependencies": { | ||
"@vaadin/chai-plugins": "24.9.0-alpha1", | ||
"@vaadin/test-runner-commands": "24.9.0-alpha1", | ||
"@vaadin/chai-plugins": "24.9.0-alpha2", | ||
"@vaadin/test-runner-commands": "24.9.0-alpha2", | ||
"@vaadin/testing-helpers": "^1.1.0", | ||
"sinon": "^18.0.0" | ||
}, | ||
"gitHead": "cc13d59f0e3cd1a3b0c19c1a900a5308446fe7ac" | ||
"gitHead": "dd99dece1b54942ab0e421892b089e506822c5f5" | ||
} |
@@ -6,3 +6,3 @@ /** | ||
*/ | ||
import { getFocusableElements, isElementFocused } from './focus-utils.js'; | ||
import { getFocusableElements, isElementFocused, isKeyboardActive } from './focus-utils.js'; | ||
@@ -91,3 +91,3 @@ const instances = []; | ||
if (this.__focusedElementIndex === -1) { | ||
this.__focusableElements[0].focus(); | ||
this.__focusableElements[0].focus({ focusVisible: isKeyboardActive() }); | ||
} | ||
@@ -152,3 +152,3 @@ } | ||
const element = focusableElements[nextIndex]; | ||
element.focus(); | ||
element.focus({ focusVisible: true }); | ||
if (element.localName === 'input') { | ||
@@ -155,0 +155,0 @@ element.select(); |
106005
0.07%22
4.76%+ Added
- Removed