@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 CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@vaadin/avatar",
3
- "version": "23.2.5",
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.5",
41
- "@vaadin/item": "~23.2.5",
42
- "@vaadin/list-box": "~23.2.5",
43
- "@vaadin/vaadin-lumo-styles": "~23.2.5",
44
- "@vaadin/vaadin-material-styles": "~23.2.5",
45
- "@vaadin/vaadin-overlay": "~23.2.5",
46
- "@vaadin/vaadin-themable-mixin": "~23.2.5"
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": "ec895786a271257420f69043ffb8de7088cea22c"
57
+ "gitHead": "bdaf12e4200bd68a3a9224bdf4cb41954f1b8bf1"
58
58
  }
@@ -217,7 +217,11 @@ class Avatar extends FocusMixin(ElementMixin(ThemableMixin(PolymerElement))) {
217
217
  this.__setTitle(this.name);
218
218
  }
219
219
 
220
- this.setAttribute('role', 'button');
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
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "$schema": "https://json.schemastore.org/web-types",
3
3
  "name": "@vaadin/avatar",
4
- "version": "23.2.5",
4
+ "version": "23.2.7",
5
5
  "description-markup": "markdown",
6
6
  "contributions": {
7
7
  "html": {
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "$schema": "https://json.schemastore.org/web-types",
3
3
  "name": "@vaadin/avatar",
4
- "version": "23.2.5",
4
+ "version": "23.2.7",
5
5
  "description-markup": "markdown",
6
6
  "framework": "lit",
7
7
  "framework-config": {