@vaadin/avatar 23.1.10 → 23.1.11
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/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@vaadin/avatar",
|
|
3
|
-
"version": "23.1.
|
|
3
|
+
"version": "23.1.11",
|
|
4
4
|
"publishConfig": {
|
|
5
5
|
"access": "public"
|
|
6
6
|
},
|
|
@@ -35,18 +35,18 @@
|
|
|
35
35
|
],
|
|
36
36
|
"dependencies": {
|
|
37
37
|
"@polymer/polymer": "^3.0.0",
|
|
38
|
-
"@vaadin/component-base": "~23.1.
|
|
39
|
-
"@vaadin/item": "~23.1.
|
|
40
|
-
"@vaadin/list-box": "~23.1.
|
|
41
|
-
"@vaadin/vaadin-lumo-styles": "~23.1.
|
|
42
|
-
"@vaadin/vaadin-material-styles": "~23.1.
|
|
43
|
-
"@vaadin/vaadin-overlay": "~23.1.
|
|
44
|
-
"@vaadin/vaadin-themable-mixin": "~23.1.
|
|
38
|
+
"@vaadin/component-base": "~23.1.11",
|
|
39
|
+
"@vaadin/item": "~23.1.11",
|
|
40
|
+
"@vaadin/list-box": "~23.1.11",
|
|
41
|
+
"@vaadin/vaadin-lumo-styles": "~23.1.11",
|
|
42
|
+
"@vaadin/vaadin-material-styles": "~23.1.11",
|
|
43
|
+
"@vaadin/vaadin-overlay": "~23.1.11",
|
|
44
|
+
"@vaadin/vaadin-themable-mixin": "~23.1.11"
|
|
45
45
|
},
|
|
46
46
|
"devDependencies": {
|
|
47
47
|
"@esm-bundle/chai": "^4.3.4",
|
|
48
48
|
"@vaadin/testing-helpers": "^0.3.2",
|
|
49
49
|
"sinon": "^13.0.2"
|
|
50
50
|
},
|
|
51
|
-
"gitHead": "
|
|
51
|
+
"gitHead": "8431798f6d50c35193817be868ddee0de021166c"
|
|
52
52
|
}
|
package/src/vaadin-avatar.js
CHANGED
|
@@ -214,7 +214,11 @@ class Avatar extends FocusMixin(ElementMixin(ThemableMixin(PolymerElement))) {
|
|
|
214
214
|
this.__setTitle(this.name);
|
|
215
215
|
}
|
|
216
216
|
|
|
217
|
-
|
|
217
|
+
// By default, if the user hasn't provided a custom role,
|
|
218
|
+
// the role attribute is set to "button".
|
|
219
|
+
if (!this.hasAttribute('role')) {
|
|
220
|
+
this.setAttribute('role', 'button');
|
|
221
|
+
}
|
|
218
222
|
|
|
219
223
|
if (!this.hasAttribute('tabindex')) {
|
|
220
224
|
this.setAttribute('tabindex', '0');
|