@vaadin/avatar 23.3.0-alpha2 → 24.0.0-alpha1

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.3.0-alpha2",
3
+ "version": "24.0.0-alpha1",
4
4
  "publishConfig": {
5
5
  "access": "public"
6
6
  },
@@ -37,14 +37,14 @@
37
37
  ],
38
38
  "dependencies": {
39
39
  "@polymer/polymer": "^3.0.0",
40
- "@vaadin/component-base": "23.3.0-alpha2",
41
- "@vaadin/item": "23.3.0-alpha2",
42
- "@vaadin/list-box": "23.3.0-alpha2",
43
- "@vaadin/tooltip": "23.3.0-alpha2",
44
- "@vaadin/vaadin-lumo-styles": "23.3.0-alpha2",
45
- "@vaadin/vaadin-material-styles": "23.3.0-alpha2",
46
- "@vaadin/vaadin-overlay": "23.3.0-alpha2",
47
- "@vaadin/vaadin-themable-mixin": "23.3.0-alpha2"
40
+ "@vaadin/component-base": "24.0.0-alpha1",
41
+ "@vaadin/item": "24.0.0-alpha1",
42
+ "@vaadin/list-box": "24.0.0-alpha1",
43
+ "@vaadin/overlay": "24.0.0-alpha1",
44
+ "@vaadin/tooltip": "24.0.0-alpha1",
45
+ "@vaadin/vaadin-lumo-styles": "24.0.0-alpha1",
46
+ "@vaadin/vaadin-material-styles": "24.0.0-alpha1",
47
+ "@vaadin/vaadin-themable-mixin": "24.0.0-alpha1"
48
48
  },
49
49
  "devDependencies": {
50
50
  "@esm-bundle/chai": "^4.3.4",
@@ -55,5 +55,5 @@
55
55
  "web-types.json",
56
56
  "web-types.lit.json"
57
57
  ],
58
- "gitHead": "ae61027c62ffa7f7d70cfc50e43f333addfc74b6"
58
+ "gitHead": "427527c27c4b27822d61fd41d38d7b170134770b"
59
59
  }
@@ -236,7 +236,11 @@ class Avatar extends FocusMixin(ElementMixin(ThemableMixin(ControllerMixin(Polym
236
236
 
237
237
  this.__updateVisibility();
238
238
 
239
- this.setAttribute('role', 'button');
239
+ // By default, if the user hasn't provided a custom role,
240
+ // the role attribute is set to "button".
241
+ if (!this.hasAttribute('role')) {
242
+ this.setAttribute('role', 'button');
243
+ }
240
244
 
241
245
  if (!this.hasAttribute('tabindex')) {
242
246
  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.3.0-alpha2",
4
+ "version": "24.0.0-alpha1",
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.3.0-alpha2",
4
+ "version": "24.0.0-alpha1",
5
5
  "description-markup": "markdown",
6
6
  "framework": "lit",
7
7
  "framework-config": {