@vaadin/avatar 23.1.10 → 23.1.12

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.1.10",
3
+ "version": "23.1.12",
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.10",
39
- "@vaadin/item": "~23.1.10",
40
- "@vaadin/list-box": "~23.1.10",
41
- "@vaadin/vaadin-lumo-styles": "~23.1.10",
42
- "@vaadin/vaadin-material-styles": "~23.1.10",
43
- "@vaadin/vaadin-overlay": "~23.1.10",
44
- "@vaadin/vaadin-themable-mixin": "~23.1.10"
38
+ "@vaadin/component-base": "~23.1.12",
39
+ "@vaadin/item": "~23.1.12",
40
+ "@vaadin/list-box": "~23.1.12",
41
+ "@vaadin/vaadin-lumo-styles": "~23.1.12",
42
+ "@vaadin/vaadin-material-styles": "~23.1.12",
43
+ "@vaadin/vaadin-overlay": "~23.1.12",
44
+ "@vaadin/vaadin-themable-mixin": "~23.1.12"
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": "439dc60a019bae972f286adc0479d340dd1ffe72"
51
+ "gitHead": "0e0e63f33a535bc37103065550126a440f575b10"
52
52
  }
@@ -214,7 +214,11 @@ class Avatar extends FocusMixin(ElementMixin(ThemableMixin(PolymerElement))) {
214
214
  this.__setTitle(this.name);
215
215
  }
216
216
 
217
- this.setAttribute('role', 'button');
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');