@vaadin/a11y-base 25.0.0-alpha20 → 25.0.0-alpha21

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.0.0-alpha20",
3
+ "version": "25.0.0-alpha21",
4
4
  "publishConfig": {
5
5
  "access": "public"
6
6
  },
@@ -31,14 +31,14 @@
31
31
  ],
32
32
  "dependencies": {
33
33
  "@open-wc/dedupe-mixin": "^1.3.0",
34
- "@vaadin/component-base": "25.0.0-alpha20",
34
+ "@vaadin/component-base": "25.0.0-alpha21",
35
35
  "lit": "^3.0.0"
36
36
  },
37
37
  "devDependencies": {
38
- "@vaadin/chai-plugins": "25.0.0-alpha20",
39
- "@vaadin/test-runner-commands": "25.0.0-alpha20",
38
+ "@vaadin/chai-plugins": "25.0.0-alpha21",
39
+ "@vaadin/test-runner-commands": "25.0.0-alpha21",
40
40
  "@vaadin/testing-helpers": "^2.0.0",
41
41
  "sinon": "^21.0.0"
42
42
  },
43
- "gitHead": "c948aae591a30b432f3784000d4677674cae56e0"
43
+ "gitHead": "8fb9e9710c01449edf623a1aaac4655cdc11a933"
44
44
  }
@@ -108,11 +108,12 @@ export const KeyboardDirectionMixin = (superclass) =>
108
108
  if (
109
109
  this._tabNavigation &&
110
110
  key === 'Tab' &&
111
- ((idx > currentIdx && event.shiftKey) || (idx < currentIdx && !event.shiftKey))
111
+ ((idx > currentIdx && event.shiftKey) || (idx < currentIdx && !event.shiftKey) || idx === currentIdx)
112
112
  ) {
113
113
  // Prevent "roving tabindex" logic and let the normal Tab behavior if
114
114
  // - currently on the first focusable item and Shift + Tab is pressed,
115
- // - currently on the last focusable item and Tab is pressed.
115
+ // - currently on the last focusable item and Tab is pressed,
116
+ // - currently on the only focusable item and Tab is pressed
116
117
  return;
117
118
  }
118
119