@vaadin/a11y-base 24.8.0-alpha17 → 24.8.0-alpha19
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.8.0-
|
|
3
|
+
"version": "24.8.0-alpha19",
|
|
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.8.0-
|
|
35
|
+
"@vaadin/component-base": "24.8.0-alpha19",
|
|
36
36
|
"lit": "^3.0.0"
|
|
37
37
|
},
|
|
38
38
|
"devDependencies": {
|
|
39
|
-
"@vaadin/chai-plugins": "24.8.0-
|
|
40
|
-
"@vaadin/test-runner-commands": "24.8.0-
|
|
39
|
+
"@vaadin/chai-plugins": "24.8.0-alpha19",
|
|
40
|
+
"@vaadin/test-runner-commands": "24.8.0-alpha19",
|
|
41
41
|
"@vaadin/testing-helpers": "^1.1.0",
|
|
42
42
|
"sinon": "^18.0.0"
|
|
43
43
|
},
|
|
44
|
-
"gitHead": "
|
|
44
|
+
"gitHead": "b66da924889a1316f7881742a13b80e1c95a4cc4"
|
|
45
45
|
}
|
|
@@ -42,6 +42,7 @@ export const DelegateFocusMixin = dedupeMixin(
|
|
|
42
42
|
type: Object,
|
|
43
43
|
readOnly: true,
|
|
44
44
|
observer: '_focusElementChanged',
|
|
45
|
+
sync: true,
|
|
45
46
|
},
|
|
46
47
|
|
|
47
48
|
/**
|
|
@@ -228,6 +229,11 @@ export const DelegateFocusMixin = dedupeMixin(
|
|
|
228
229
|
}
|
|
229
230
|
this.tabindex = undefined;
|
|
230
231
|
}
|
|
232
|
+
|
|
233
|
+
// Lit does not remove attribute when setting property to undefined
|
|
234
|
+
if (tabindex === undefined && this.hasAttribute('tabindex')) {
|
|
235
|
+
this.removeAttribute('tabindex');
|
|
236
|
+
}
|
|
231
237
|
}
|
|
232
238
|
},
|
|
233
239
|
);
|
package/src/tabindex-mixin.js
CHANGED
|
@@ -27,6 +27,7 @@ export const TabindexMixin = (superclass) =>
|
|
|
27
27
|
type: Number,
|
|
28
28
|
reflectToAttribute: true,
|
|
29
29
|
observer: '_tabindexChanged',
|
|
30
|
+
sync: true,
|
|
30
31
|
},
|
|
31
32
|
|
|
32
33
|
/**
|
|
@@ -60,9 +61,13 @@ export const TabindexMixin = (superclass) =>
|
|
|
60
61
|
if (this.tabindex !== undefined) {
|
|
61
62
|
this._lastTabIndex = this.tabindex;
|
|
62
63
|
}
|
|
63
|
-
this.tabindex
|
|
64
|
+
this.setAttribute('tabindex', '-1');
|
|
64
65
|
} else if (oldDisabled) {
|
|
65
|
-
this.
|
|
66
|
+
if (this._lastTabIndex !== undefined) {
|
|
67
|
+
this.setAttribute('tabindex', this._lastTabIndex);
|
|
68
|
+
} else {
|
|
69
|
+
this.tabindex = undefined;
|
|
70
|
+
}
|
|
66
71
|
}
|
|
67
72
|
}
|
|
68
73
|
|
|
@@ -80,7 +85,7 @@ export const TabindexMixin = (superclass) =>
|
|
|
80
85
|
|
|
81
86
|
if (this.disabled && tabindex !== -1) {
|
|
82
87
|
this._lastTabIndex = tabindex;
|
|
83
|
-
this.tabindex
|
|
88
|
+
this.setAttribute('tabindex', '-1');
|
|
84
89
|
}
|
|
85
90
|
}
|
|
86
91
|
|