@vaadin/avatar 23.2.5 → 23.2.7
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 +9 -9
- package/src/vaadin-avatar.js +5 -1
- package/web-types.json +1 -1
- package/web-types.lit.json +1 -1
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@vaadin/avatar",
|
|
3
|
-
"version": "23.2.
|
|
3
|
+
"version": "23.2.7",
|
|
4
4
|
"publishConfig": {
|
|
5
5
|
"access": "public"
|
|
6
6
|
},
|
|
@@ -37,13 +37,13 @@
|
|
|
37
37
|
],
|
|
38
38
|
"dependencies": {
|
|
39
39
|
"@polymer/polymer": "^3.0.0",
|
|
40
|
-
"@vaadin/component-base": "~23.2.
|
|
41
|
-
"@vaadin/item": "~23.2.
|
|
42
|
-
"@vaadin/list-box": "~23.2.
|
|
43
|
-
"@vaadin/vaadin-lumo-styles": "~23.2.
|
|
44
|
-
"@vaadin/vaadin-material-styles": "~23.2.
|
|
45
|
-
"@vaadin/vaadin-overlay": "~23.2.
|
|
46
|
-
"@vaadin/vaadin-themable-mixin": "~23.2.
|
|
40
|
+
"@vaadin/component-base": "~23.2.7",
|
|
41
|
+
"@vaadin/item": "~23.2.7",
|
|
42
|
+
"@vaadin/list-box": "~23.2.7",
|
|
43
|
+
"@vaadin/vaadin-lumo-styles": "~23.2.7",
|
|
44
|
+
"@vaadin/vaadin-material-styles": "~23.2.7",
|
|
45
|
+
"@vaadin/vaadin-overlay": "~23.2.7",
|
|
46
|
+
"@vaadin/vaadin-themable-mixin": "~23.2.7"
|
|
47
47
|
},
|
|
48
48
|
"devDependencies": {
|
|
49
49
|
"@esm-bundle/chai": "^4.3.4",
|
|
@@ -54,5 +54,5 @@
|
|
|
54
54
|
"web-types.json",
|
|
55
55
|
"web-types.lit.json"
|
|
56
56
|
],
|
|
57
|
-
"gitHead": "
|
|
57
|
+
"gitHead": "bdaf12e4200bd68a3a9224bdf4cb41954f1b8bf1"
|
|
58
58
|
}
|
package/src/vaadin-avatar.js
CHANGED
|
@@ -217,7 +217,11 @@ class Avatar extends FocusMixin(ElementMixin(ThemableMixin(PolymerElement))) {
|
|
|
217
217
|
this.__setTitle(this.name);
|
|
218
218
|
}
|
|
219
219
|
|
|
220
|
-
|
|
220
|
+
// By default, if the user hasn't provided a custom role,
|
|
221
|
+
// the role attribute is set to "button".
|
|
222
|
+
if (!this.hasAttribute('role')) {
|
|
223
|
+
this.setAttribute('role', 'button');
|
|
224
|
+
}
|
|
221
225
|
|
|
222
226
|
if (!this.hasAttribute('tabindex')) {
|
|
223
227
|
this.setAttribute('tabindex', '0');
|
package/web-types.json
CHANGED