@vaadin/avatar 25.0.0-alpha4 → 25.0.0-alpha6

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": "25.0.0-alpha4",
3
+ "version": "25.0.0-alpha6",
4
4
  "publishConfig": {
5
5
  "access": "public"
6
6
  },
@@ -38,16 +38,16 @@
38
38
  ],
39
39
  "dependencies": {
40
40
  "@open-wc/dedupe-mixin": "^1.3.0",
41
- "@vaadin/a11y-base": "25.0.0-alpha4",
42
- "@vaadin/component-base": "25.0.0-alpha4",
43
- "@vaadin/tooltip": "25.0.0-alpha4",
44
- "@vaadin/vaadin-lumo-styles": "25.0.0-alpha4",
45
- "@vaadin/vaadin-themable-mixin": "25.0.0-alpha4",
41
+ "@vaadin/a11y-base": "25.0.0-alpha6",
42
+ "@vaadin/component-base": "25.0.0-alpha6",
43
+ "@vaadin/tooltip": "25.0.0-alpha6",
44
+ "@vaadin/vaadin-lumo-styles": "25.0.0-alpha6",
45
+ "@vaadin/vaadin-themable-mixin": "25.0.0-alpha6",
46
46
  "lit": "^3.0.0"
47
47
  },
48
48
  "devDependencies": {
49
- "@vaadin/chai-plugins": "25.0.0-alpha4",
50
- "@vaadin/test-runner-commands": "25.0.0-alpha4",
49
+ "@vaadin/chai-plugins": "25.0.0-alpha6",
50
+ "@vaadin/test-runner-commands": "25.0.0-alpha6",
51
51
  "@vaadin/testing-helpers": "^2.0.0",
52
52
  "sinon": "^18.0.0"
53
53
  },
@@ -55,5 +55,5 @@
55
55
  "web-types.json",
56
56
  "web-types.lit.json"
57
57
  ],
58
- "gitHead": "ce4421f0daf26027b863b91787a474e4cc264344"
58
+ "gitHead": "cd1d084198d2b326c58d44bb39fa4845b71ce551"
59
59
  }
@@ -13,14 +13,14 @@ export const avatarStyles = css`
13
13
  flex: none;
14
14
  border-radius: 50%;
15
15
  cursor: default;
16
- color: var(--vaadin-avatar-color, inherit);
16
+ color: var(--vaadin-avatar-color, var(--vaadin-color-subtle));
17
17
  line-height: 0;
18
18
  overflow: hidden;
19
19
  height: var(--vaadin-avatar-size, 2em);
20
20
  width: var(--vaadin-avatar-size, 2em);
21
21
  border: var(--vaadin-focus-ring-width) solid transparent;
22
22
  margin: calc(var(--vaadin-focus-ring-width) * -1);
23
- background: var(--vaadin-avatar-background, var(--_vaadin-background-container-strong));
23
+ background: var(--vaadin-avatar-background, var(--vaadin-background-container-strong));
24
24
  background-clip: content-box;
25
25
  vertical-align: middle;
26
26
  -webkit-user-select: none;
@@ -47,6 +47,7 @@ export const avatarStyles = css`
47
47
 
48
48
  [part='abbr'] {
49
49
  font-size: 2.75em;
50
+ fill: currentColor;
50
51
  }
51
52
 
52
53
  :host([hidden]),
@@ -56,6 +57,7 @@ export const avatarStyles = css`
56
57
 
57
58
  :host([has-color-index]) {
58
59
  background-color: var(--vaadin-avatar-user-color);
60
+ color: oklch(from var(--vaadin-avatar-user-color) clamp(0, (0.62 - l) * 1000, 1) 0 0);
59
61
  }
60
62
 
61
63
  :host([has-color-index])::before {
@@ -10,7 +10,7 @@ import { defineCustomElement } from '@vaadin/component-base/src/define.js';
10
10
  import { ElementMixin } from '@vaadin/component-base/src/element-mixin.js';
11
11
  import { PolylitMixin } from '@vaadin/component-base/src/polylit-mixin.js';
12
12
  import { TooltipController } from '@vaadin/component-base/src/tooltip-controller.js';
13
- import { CSSInjectionMixin } from '@vaadin/vaadin-themable-mixin/css-injection-mixin.js';
13
+ import { LumoInjectionMixin } from '@vaadin/vaadin-themable-mixin/lumo-injection-mixin.js';
14
14
  import { ThemableMixin } from '@vaadin/vaadin-themable-mixin/vaadin-themable-mixin.js';
15
15
  import { avatarStyles } from './styles/vaadin-avatar-core-styles.js';
16
16
  import { AvatarMixin } from './vaadin-avatar-mixin.js';
@@ -47,7 +47,7 @@ import { AvatarMixin } from './vaadin-avatar-mixin.js';
47
47
  * @mixes ElementMixin
48
48
  * @mixes ThemableMixin
49
49
  */
50
- class Avatar extends AvatarMixin(ElementMixin(ThemableMixin(CSSInjectionMixin(PolylitMixin(LitElement))))) {
50
+ class Avatar extends AvatarMixin(ElementMixin(ThemableMixin(LumoInjectionMixin(PolylitMixin(LitElement))))) {
51
51
  static get is() {
52
52
  return 'vaadin-avatar';
53
53
  }
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": "25.0.0-alpha4",
4
+ "version": "25.0.0-alpha6",
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": "25.0.0-alpha4",
4
+ "version": "25.0.0-alpha6",
5
5
  "description-markup": "markdown",
6
6
  "framework": "lit",
7
7
  "framework-config": {