@vaadin/aura 25.0.0-alpha20 → 25.0.0-beta1

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.
@@ -1,29 +1,37 @@
1
- :where(:root, :host) {
2
- --vaadin-button-border-color: var(--vaadin-border-color);
1
+ :where(:root),
2
+ :where(:host) {
3
3
  --vaadin-button-shadow: 0 1px 4px -1px hsla(0, 0%, 0%, 0.07);
4
4
  }
5
5
 
6
- :is(vaadin-button, vaadin-menu-bar-button, vaadin-drawer-toggle) {
6
+ :is(vaadin-button, vaadin-menu-bar-button, vaadin-drawer-toggle, vaadin-crud-edit) {
7
7
  transition: scale 180ms;
8
8
  position: relative;
9
- }
10
-
11
- :is(vaadin-button, vaadin-menu-bar-button, vaadin-drawer-toggle):where(:not([theme~='tertiary'])) {
9
+ --_accent: light-dark(
10
+ oklch(from var(--aura-accent-light) calc(l + 0.2) c h / min(0.3, c / 2)),
11
+ oklch(from var(--aura-accent-dark) calc(l - 0.2) c h / min(0.3, c / 2))
12
+ );
13
+ --_accent-border: light-dark(
14
+ oklch(from var(--aura-accent-light) l calc(c / 2) h / calc(min(0.15, 0.1 + c / 2) + 0.1 * var(--aura-contrast))),
15
+ oklch(from var(--aura-accent-dark) l calc(c / 2) h / calc(min(0.15, 0.1 + c / 2) + 0.1 * var(--aura-contrast)))
16
+ );
17
+ --_background: linear-gradient(var(--_accent), var(--_accent)) var(--aura-surface) padding-box;
18
+ }
19
+
20
+ :is(vaadin-button, vaadin-menu-bar-button, vaadin-drawer-toggle, vaadin-crud-edit):where(:not([theme~='tertiary'])) {
12
21
  --aura-surface-level: 6;
13
22
  --aura-surface-opacity: 0.3;
14
23
  box-shadow: var(--vaadin-button-shadow);
15
24
  }
16
25
 
17
- :is(vaadin-button, vaadin-menu-bar-button, vaadin-drawer-toggle):not([theme~='primary'], [theme~='tertiary']) {
18
- background: var(--vaadin-button-background, var(--aura-surface) padding-box);
26
+ /* prettier-ignore */
27
+ :is(vaadin-button, vaadin-menu-bar-button, vaadin-drawer-toggle, vaadin-crud-edit):not([theme~='primary'], [theme~='tertiary']) {
28
+ background: var(--vaadin-button-background, var(--_background));
29
+ --vaadin-button-border-color: var(--_accent-border);
19
30
  }
20
31
 
21
- :is(vaadin-button, vaadin-menu-bar-button, vaadin-drawer-toggle):where(:not([theme~='primary'])) {
32
+ :is(vaadin-button, vaadin-menu-bar-button, vaadin-drawer-toggle, vaadin-crud-edit):where(:not([theme~='primary'])) {
22
33
  outline-offset: calc(var(--vaadin-button-border-width, 1px) * -1);
23
- }
24
-
25
- :is(vaadin-button, vaadin-menu-bar-button, vaadin-drawer-toggle):where([theme~='primary']) {
26
- outline-offset: 2px;
34
+ --vaadin-button-text-color: var(--aura-accent-text);
27
35
  }
28
36
 
29
37
  /*
@@ -31,7 +39,7 @@ Increase padding, but only for buttons that don't have an icon in the default sl
31
39
  Buttons that place an icon in the default slot are assumed to be icon-only buttons.
32
40
  */
33
41
  /* prettier-ignore */
34
- :is(vaadin-button, vaadin-menu-bar-button, vaadin-drawer-toggle):not(:has(:is(vaadin-icon, svg, i[class*='fa-'], vaadin-avatar):not([slot]))) {
42
+ :is(vaadin-button, vaadin-menu-bar-button, vaadin-drawer-toggle, vaadin-crud-edit):not(:has(:is(vaadin-icon, svg, i[class*='fa-'], vaadin-avatar):not([slot]))) {
35
43
  --vaadin-button-padding: round(var(--vaadin-padding-s) / 1.4, 1px)
36
44
  max(var(--vaadin-padding-m), round(var(--vaadin-radius-m) / 1.5, 1px));
37
45
  }
@@ -43,22 +51,27 @@ vaadin-drawer-toggle:empty {
43
51
  }
44
52
 
45
53
  /* prettier-ignore */
46
- :is(vaadin-button, vaadin-menu-bar-button, vaadin-drawer-toggle):has([slot='suffix']:is(vaadin-icon, svg, i[class*='fa-'], vaadin-avatar)),
54
+ :is(vaadin-button, vaadin-menu-bar-button, vaadin-drawer-toggle, vaadin-crud-edit):has([slot='suffix']:is(vaadin-icon, svg, i[class*='fa-'], vaadin-avatar)),
47
55
  vaadin-drawer-toggle:empty,
48
- vaadin-menu-bar-button[aria-haspopup='true'] {
56
+ vaadin-menu-bar-button[aria-haspopup='true']:not([slot='overflow']) {
49
57
  padding-inline-end: max(var(--vaadin-padding-s), round(var(--vaadin-radius-m) / 1.75, 1px));
50
58
  }
51
59
 
52
- :is(vaadin-button, vaadin-menu-bar-button, vaadin-drawer-toggle)[theme~='primary'] {
60
+ :is(vaadin-button, vaadin-menu-bar-button, vaadin-drawer-toggle, vaadin-crud-edit):where([theme~='primary']) {
61
+ outline-offset: 2px;
53
62
  --vaadin-button-font-weight: var(--aura-font-weight-semibold);
54
- --vaadin-button-text-color: light-dark(var(--vaadin-background-color), var(--aura-background-dark));
63
+ --vaadin-button-text-color: var(--aura-accent-contrast);
64
+ --vaadin-button-background: var(--aura-accent-color);
65
+ --vaadin-button-border-color: var(--vaadin-border-color-secondary);
66
+ --vaadin-button-shadow: 0 2px 3px -1px hsla(0, 0%, 0%, 0.24);
55
67
  }
56
68
 
57
- :is(vaadin-button, vaadin-menu-bar-button, vaadin-drawer-toggle)[disabled][theme~='primary'] {
58
- --vaadin-button-text-color: var(--vaadin-text-color-secondary);
69
+ /* prettier-ignore */
70
+ :is(vaadin-button, vaadin-menu-bar-button, vaadin-drawer-toggle, vaadin-crud-edit)[disabled][theme~='primary']::part(label) {
71
+ color: color-mix(in srgb, currentColor 50%, transparent);
59
72
  }
60
73
 
61
- :is(vaadin-button, vaadin-menu-bar-button, vaadin-drawer-toggle):not([disabled])::before {
74
+ :is(vaadin-button, vaadin-menu-bar-button, vaadin-drawer-toggle, vaadin-crud-edit):not([disabled])::before {
62
75
  content: '';
63
76
  position: absolute;
64
77
  inset: calc(var(--vaadin-button-border-width, 1px) * -1);
@@ -72,18 +85,19 @@ vaadin-menu-bar-button[aria-haspopup='true'] {
72
85
  }
73
86
 
74
87
  @supports (color: hsl(0 0 0)) {
75
- :is(vaadin-button, vaadin-menu-bar-button, vaadin-drawer-toggle):not([disabled])::before {
76
- background-color: oklch(from currentColor calc(l + 0.4 - c) c h);
88
+ :is(vaadin-button, vaadin-menu-bar-button, vaadin-drawer-toggle, vaadin-crud-edit):not([disabled])::before {
89
+ background-color: oklch(from currentColor calc(l + 0.4 - c) c h / calc(1 - l / 2));
77
90
  }
78
91
  }
79
92
 
80
93
  @media (any-hover: hover) {
81
- :is(vaadin-button, vaadin-menu-bar-button, vaadin-drawer-toggle):hover:not([disabled], [active])::before {
82
- opacity: 0.05;
94
+ /* prettier-ignore */
95
+ :is(vaadin-button, vaadin-menu-bar-button, vaadin-drawer-toggle, vaadin-crud-edit):hover:not([disabled], [active])::before {
96
+ opacity: 0.03;
83
97
  }
84
98
 
85
99
  /* prettier-ignore */
86
- :is(vaadin-button, vaadin-menu-bar-button, vaadin-drawer-toggle)[theme~='primary']:hover:not([disabled], [active])::before {
100
+ :is(vaadin-button, vaadin-menu-bar-button, vaadin-drawer-toggle, vaadin-crud-edit)[theme~='primary']:hover:not([disabled], [active])::before {
87
101
  opacity: 0.12;
88
102
  }
89
103
  }
@@ -96,13 +110,18 @@ vaadin-menu-bar-button[aria-haspopup='true'] {
96
110
  }
97
111
  }
98
112
 
99
- :is(vaadin-button, vaadin-menu-bar-button, vaadin-drawer-toggle)[active]:not([disabled])::before {
113
+ :is(vaadin-button, vaadin-menu-bar-button, vaadin-drawer-toggle, vaadin-crud-edit)[active]:not([disabled]) {
114
+ box-shadow: none;
115
+ }
116
+
117
+ :is(vaadin-button, vaadin-menu-bar-button, vaadin-drawer-toggle, vaadin-crud-edit)[active]:not([disabled])::before {
100
118
  transition-duration: 0s;
101
119
  opacity: 0.08;
102
120
  background: oklch(from currentColor min(c, 1 - l + c) calc(c * 0.9) h);
103
121
  }
104
122
 
105
- :is(vaadin-button, vaadin-menu-bar-button, vaadin-drawer-toggle)[theme~='primary'][active]:not([disabled])::before {
123
+ /* prettier-ignore */
124
+ :is(vaadin-button, vaadin-menu-bar-button, vaadin-drawer-toggle, vaadin-crud-edit)[theme~='primary'][active]:not([disabled])::before {
106
125
  opacity: 0.16;
107
126
  }
108
127
 
@@ -111,3 +130,16 @@ vaadin-menu-bar-button[aria-haspopup='true'] {
111
130
  border-inline-start-color: transparent;
112
131
  }
113
132
  }
133
+
134
+ /* Color variants */
135
+
136
+ :is(vaadin-button, vaadin-menu-bar-button, vaadin-drawer-toggle, vaadin-crud-edit):where(:not([theme~='accent'])) {
137
+ --aura-accent-light: var(--aura-text-light);
138
+ --aura-accent-dark: var(--aura-text-dark);
139
+ }
140
+
141
+ /* prettier-ignore */
142
+ :is(vaadin-button, vaadin-menu-bar-button, vaadin-drawer-toggle, vaadin-crud-edit):is([theme~='danger'], [theme~='error']) {
143
+ --aura-accent-light: var(--aura-red);
144
+ --aura-accent-dark: var(--aura-red);
145
+ }
@@ -1,4 +1,5 @@
1
- :where(:root, :host) {
1
+ :where(:root),
2
+ :where(:host) {
2
3
  --vaadin-card-title-font-weight: var(--aura-font-weight-medium);
3
4
  --vaadin-card-padding: var(--vaadin-padding-l);
4
5
  --vaadin-card-gap: var(--vaadin-gap-m) var(--vaadin-gap-l);
@@ -1,5 +1,6 @@
1
- :where(:root, :host) {
2
- --vaadin-radio-button-dot-size: 6px;
1
+ :where(:root),
2
+ :where(:host) {
3
+ --vaadin-radio-button-marker-size: 6px;
3
4
  --vaadin-checkbox-size: round(1lh - 2px, 2px);
4
5
  --vaadin-radio-button-size: round(1lh - 2px, 2px);
5
6
  }
@@ -30,15 +31,15 @@ vaadin-radio-button:not([checked])::part(radio) {
30
31
  }
31
32
 
32
33
  vaadin-checkbox:is([checked], [indeterminate]):not([readonly], [disabled])::part(checkbox) {
33
- /* TODO add/use selection color */
34
34
  --vaadin-checkbox-background: var(--aura-accent-color);
35
- --vaadin-checkbox-color: var(--aura-accent-contrast);
35
+ --vaadin-checkbox-marker-color: var(--aura-accent-contrast);
36
+ --vaadin-checkbox-border-color: var(--vaadin-border-color-secondary);
36
37
  }
37
38
 
38
39
  vaadin-radio-button[checked]:not([readonly], [disabled])::part(radio) {
39
- /* TODO add/use selection color */
40
40
  --vaadin-radio-button-background: var(--aura-accent-color);
41
- --vaadin-radio-button-color: var(--aura-accent-contrast);
41
+ --vaadin-radio-button-marker-color: var(--aura-accent-contrast);
42
+ --vaadin-radio-button-border-color: var(--vaadin-border-color-secondary);
42
43
  }
43
44
 
44
45
  vaadin-checkbox:not([readonly], [disabled])::part(checkbox)::before,
@@ -0,0 +1,14 @@
1
+ vaadin-confirm-dialog::part(footer) {
2
+ width: fit-content;
3
+ margin-inline-start: auto;
4
+ }
5
+
6
+ vaadin-confirm-dialog::part(cancel-button),
7
+ vaadin-confirm-dialog::part(reject-button),
8
+ vaadin-confirm-dialog::part(confirm-button) {
9
+ flex: 1;
10
+ }
11
+
12
+ vaadin-confirm-dialog :is([slot='cancel-button'], [slot='reject-button'], [slot='confirm-button']) {
13
+ display: flex;
14
+ }
@@ -0,0 +1,13 @@
1
+ :where(:root),
2
+ :where(:host) {
3
+ --vaadin-crud-background: var(--aura-surface) padding-box;
4
+ }
5
+
6
+ vaadin-crud-edit {
7
+ padding: var(--vaadin-padding-xs);
8
+ --vaadin-icon-visual-size: 0.75lh;
9
+ }
10
+
11
+ vaadin-crud::part(editor) {
12
+ background: var(--aura-surface);
13
+ }
@@ -0,0 +1,113 @@
1
+ :where(:root),
2
+ :where(:host) {
3
+ --vaadin-dashboard-widget-title-font-weight: var(--aura-font-weight-medium);
4
+ --vaadin-dashboard-widget-header-padding: var(--vaadin-padding-s) var(--vaadin-padding-m);
5
+ --vaadin-dashboard-header-gap: var(--vaadin-gap-xs);
6
+ --vaadin-dashboard-widget-border-color: var(--vaadin-border-color-secondary);
7
+ --vaadin-dashboard-widget-background: var(--aura-surface) padding-box;
8
+ --vaadin-dashboard-widget-border-radius: var(--vaadin-radius-m);
9
+ }
10
+
11
+ vaadin-dashboard-widget {
12
+ border-radius: calc(var(--vaadin-dashboard-widget-border-radius) - var(--vaadin-dashboard-widget-border-width, 1px));
13
+
14
+ &::before {
15
+ inset: calc(var(--vaadin-dashboard-widget-border-width, 1px) * -1);
16
+ border-radius: var(--vaadin-dashboard-widget-border-radius);
17
+ }
18
+
19
+ &::part(content) {
20
+ transition: 200ms;
21
+ transition-property: filter, opacity;
22
+ }
23
+
24
+ &:is([resize-mode], [move-mode])::part(content) {
25
+ opacity: 0.75;
26
+ filter: blur(10px);
27
+ clip-path: inset(0);
28
+ transition-duration: 50ms;
29
+ }
30
+ }
31
+
32
+ vaadin-dashboard-section {
33
+ vaadin-dashboard-widget {
34
+ transition: 200ms;
35
+ transition-property: filter, opacity;
36
+ }
37
+
38
+ &[move-mode] vaadin-dashboard-widget {
39
+ opacity: 0.75;
40
+ filter: blur(10px);
41
+ clip-path: inset(0);
42
+ transition-duration: 50ms;
43
+ }
44
+ }
45
+
46
+ :is(vaadin-dashboard-widget, vaadin-dashboard-section) {
47
+ &::part(move-forward-button),
48
+ &::part(move-backward-button),
49
+ &::part(resize-shrink-height-button),
50
+ &::part(resize-grow-height-button),
51
+ &::part(resize-shrink-width-button),
52
+ &::part(resize-grow-width-button) {
53
+ background: var(--aura-surface) padding-box;
54
+ color: var(--vaadin-text-color-secondary);
55
+ border: 1px solid var(--vaadin-border-color);
56
+ transition: 120ms color;
57
+ outline-offset: -1px;
58
+ }
59
+
60
+ &::part(resize-shrink-height-button),
61
+ &::part(resize-grow-height-button) {
62
+ margin-top: 0;
63
+ border-bottom: 0;
64
+ }
65
+
66
+ &::part(move-forward-button),
67
+ &::part(resize-shrink-width-button),
68
+ &::part(resize-grow-width-button) {
69
+ margin-inline-start: 0;
70
+ border-inline-end: 0;
71
+ }
72
+
73
+ &::part(move-backward-button) {
74
+ margin-inline-end: 0;
75
+ border-inline-start: 0;
76
+ }
77
+
78
+ &::part(move-apply-button),
79
+ &::part(resize-apply-button) {
80
+ background: var(--aura-accent-color);
81
+ color: var(--aura-accent-contrast);
82
+ box-shadow: 0 0 0 3px var(--aura-surface);
83
+ outline-offset: 2px;
84
+ }
85
+
86
+ &::part(move-button),
87
+ &::part(remove-button),
88
+ &::part(resize-button) {
89
+ color: var(--vaadin-text-color-disabled);
90
+ transition: 120ms color;
91
+ outline-offset: -2px;
92
+ }
93
+
94
+ &[editable] {
95
+ --vaadin-dashboard-widget-header-padding: var(--vaadin-padding-xs);
96
+ }
97
+ }
98
+
99
+ @media (any-hover: hover) {
100
+ :is(vaadin-dashboard-widget, vaadin-dashboard-section) {
101
+ &::part(move-button):hover,
102
+ &::part(remove-button):hover,
103
+ &::part(resize-button):hover,
104
+ &::part(move-forward-button):hover,
105
+ &::part(move-backward-button):hover,
106
+ &::part(resize-shrink-height-button):hover,
107
+ &::part(resize-grow-height-button):hover,
108
+ &::part(resize-shrink-width-button):hover,
109
+ &::part(resize-grow-width-button):hover {
110
+ color: var(--vaadin-text-color);
111
+ }
112
+ }
113
+ }
@@ -1,4 +1,5 @@
1
- :where(:root, :host) {
1
+ :where(:root),
2
+ :where(:host) {
2
3
  --vaadin-date-picker-year-scroller-background: light-dark(var(--vaadin-background-container), transparent);
3
4
  --vaadin-date-picker-month-header-font-weight: var(--aura-font-weight-semibold);
4
5
  /* TODO add/use selection color */
@@ -6,7 +7,9 @@
6
7
  --vaadin-date-picker-date-selected-color: var(--aura-accent-contrast);
7
8
  }
8
9
 
9
- :where(:root, :host, [theme]) {
10
+ :where(:root),
11
+ :where(:host),
12
+ :where([theme]) {
10
13
  --vaadin-date-picker-date-width: calc(var(--aura-font-size-m) * 2.5);
11
14
  --vaadin-date-picker-year-scroller-width: calc(var(--aura-font-size-m) * 3.5);
12
15
  }
@@ -1,10 +1,12 @@
1
- :where(:root, :host) {
1
+ :where(:root),
2
+ :where(:host) {
2
3
  --vaadin-dialog-title-font-size: var(--aura-font-size-l);
3
4
  --vaadin-dialog-border-width: 0px;
4
5
  }
5
6
 
6
7
  vaadin-dialog,
7
- vaadin-confirm-dialog {
8
+ vaadin-confirm-dialog,
9
+ vaadin-crud::part(overlay) {
8
10
  color-scheme: var(--aura-content-color-scheme);
9
11
  }
10
12
 
@@ -1,25 +1,28 @@
1
- :where(:root, :host) {
2
- /* TODO should likely be just a color prop, not a background-image */
3
- --vaadin-grid-row-selected-background: linear-gradient(
4
- var(--vaadin-background-container),
5
- var(--vaadin-background-container)
6
- );
1
+ :where(:root),
2
+ :where(:host) {
3
+ --vaadin-grid-row-selected-background-color: color-mix(in srgb, var(--aura-accent-color) 10%, transparent);
4
+ --vaadin-grid-background: linear-gradient(var(--aura-surface), var(--aura-surface)) var(--aura-background) padding-box;
7
5
  }
8
6
 
9
- vaadin-grid[theme~='no-border']::part(first-column-cell) {
10
- /* TODO can't use --vaadin-grid-cell-padding, it only works on the host */
11
- /* quite difficult to override the cell padding when it’s on the slotted vaadin-grid-cell-content element */
12
- --_cell-padding: var(--vaadin-padding-xs) var(--vaadin-padding-s) var(--vaadin-padding-xs) var(--vaadin-padding-l);
13
- }
14
-
15
- vaadin-grid[theme~='no-border']::part(last-column-cell) {
16
- --_cell-padding: var(--vaadin-padding-xs) var(--vaadin-padding-l) var(--vaadin-padding-xs) var(--vaadin-padding-s);
7
+ :is(vaadin-grid, vaadin-crud-grid)::part(empty-state) {
8
+ display: flex;
9
+ align-items: center;
10
+ justify-content: center;
17
11
  }
18
12
 
19
13
  /* TODO custom part name: how should we indicate an active row? Should we have a built-in part name? */
20
14
  vaadin-grid::part(active-nav-item) {
21
- /* TODO should likely be just a color prop, not a background-image */
22
- /* TODO need a custom prop in grid base styles that can be used to just highlight a row, which works together with row stripes, selection color, etc. */
23
- --vaadin-grid-cell-background: linear-gradient(var(--vaadin-background-container), var(--vaadin-background-container))
24
- var(--vaadin-background-color);
15
+ --vaadin-grid-row-highlight-background-color: var(--vaadin-background-container);
16
+ }
17
+
18
+ vaadin-grid-sorter::part(indicators) {
19
+ transition: color 120ms;
20
+ }
21
+
22
+ :is(vaadin-grid, vaadin-crud)[theme~='column-borders'] {
23
+ --vaadin-grid-column-border-width: 1px;
24
+ }
25
+
26
+ :is(vaadin-grid, vaadin-crud)[theme~='no-row-borders'] {
27
+ --vaadin-grid-row-border-width: 0px;
25
28
  }
@@ -1,6 +1,8 @@
1
- :where(:root, :host, [theme]) {
1
+ :where(:root),
2
+ :where(:host),
3
+ :where([theme]) {
2
4
  --vaadin-input-field-background: var(--aura-surface);
3
- --vaadin-input-field-error-color: var(--aura-red);
5
+ --vaadin-input-field-error-color: var(--aura-red-text);
4
6
  }
5
7
 
6
8
  ::part(input-field),
@@ -0,0 +1,77 @@
1
+ :where(:root),
2
+ :where(:host) {
3
+ --vaadin-item-overlay-padding: var(--vaadin-gap-xs);
4
+ --vaadin-item-border-radius: calc(var(--vaadin-radius-m) - var(--vaadin-item-overlay-padding));
5
+ --vaadin-item-checkmark-color: var(--aura-accent-text);
6
+ }
7
+
8
+ :is(
9
+ vaadin-avatar-group-menu-item,
10
+ vaadin-combo-box-item,
11
+ vaadin-context-menu-item,
12
+ vaadin-time-picker-item,
13
+ vaadin-item,
14
+ vaadin-menu-bar-item,
15
+ vaadin-multi-select-combo-box-item,
16
+ vaadin-select-item[role]
17
+ ) {
18
+ font-weight: var(--aura-font-weight-medium);
19
+ --vaadin-item-checkmark-color: var(--aura-accent-text);
20
+
21
+ &::part(checkmark) {
22
+ --vaadin-icon-visual-size: 75%;
23
+ }
24
+
25
+ &::part(content) {
26
+ display: flex;
27
+ }
28
+
29
+ @media (any-hover: hover) {
30
+ &:not([disabled], [aria-disabled='true']):hover {
31
+ background: color-mix(in srgb, var(--aura-accent-color) 10%, transparent);
32
+
33
+ &[theme~='filled'] {
34
+ background: var(--aura-accent-color);
35
+ color: var(--aura-accent-contrast);
36
+ --vaadin-text-color: var(--aura-accent-contrast);
37
+ --vaadin-text-color-secondary: color-mix(in srgb, var(--aura-accent-contrast) 70%, transparent);
38
+ --vaadin-text-color-disabled: color-mix(in srgb, var(--aura-accent-contrast) 50%, transparent);
39
+ --vaadin-item-checkmark-color: var(--aura-accent-contrast);
40
+
41
+ > * {
42
+ --aura-red: var(--aura-accent-contrast);
43
+ --aura-red-text: var(--aura-accent-contrast);
44
+ --aura-orange: var(--aura-accent-contrast);
45
+ --aura-orange-text: var(--aura-accent-contrast);
46
+ --aura-yellow: var(--aura-accent-contrast);
47
+ --aura-yellow-text: var(--aura-accent-contrast);
48
+ --aura-green: var(--aura-accent-contrast);
49
+ --aura-green-text: var(--aura-accent-contrast);
50
+ --aura-blue: var(--aura-accent-contrast);
51
+ --aura-blue-text: var(--aura-accent-contrast);
52
+ --aura-purple: var(--aura-accent-contrast);
53
+ --aura-purple-text: var(--aura-accent-contrast);
54
+ }
55
+ }
56
+ }
57
+ }
58
+
59
+ &[aria-expanded='true']:not(:hover) {
60
+ background: var(--vaadin-background-container-strong);
61
+ }
62
+
63
+ &[theme~='danger'] {
64
+ --aura-accent-light: var(--aura-red);
65
+ --aura-accent-dark: var(--aura-red);
66
+ color: var(--aura-red-text);
67
+ }
68
+ }
69
+
70
+ /* TODO is there a better selector? */
71
+ [role='menu'] [role='separator'] {
72
+ margin-block: var(--vaadin-gap-xs);
73
+ margin-inline-start: calc(
74
+ var(--vaadin-icon-size, 1lh) + var(--vaadin-item-gap, var(--vaadin-gap-s)) + var(--vaadin-gap-xs) * 2
75
+ );
76
+ border-color: var(--vaadin-border-color);
77
+ }
@@ -0,0 +1,43 @@
1
+ :where(:root),
2
+ :where(:host) {
3
+ --vaadin-login-form-error-color: var(--aura-red-text);
4
+ --vaadin-login-form-padding: var(--vaadin-padding-xl);
5
+ --vaadin-login-overlay-brand-padding: var(--vaadin-padding-xl);
6
+ --vaadin-login-overlay-brand-background: transparent;
7
+ --vaadin-login-overlay-title-font-size: 1.5em;
8
+ --vaadin-login-overlay-title-line-height: 1.2;
9
+ --vaadin-login-overlay-title-font-weight: var(--aura-font-weight-semibold);
10
+ --vaadin-login-overlay-title-color: var(--vaadin-text-color);
11
+ --vaadin-login-overlay-description-color: var(--vaadin-text-color-secondary);
12
+ }
13
+
14
+ vaadin-login-form::part(error-message) {
15
+ border-radius: var(--vaadin-radius-m);
16
+ padding: var(--vaadin-padding-m);
17
+ background: color-mix(in srgb, var(--aura-red) 10%, transparent);
18
+ }
19
+
20
+ vaadin-login-form::part(error-message-title) {
21
+ font-weight: var(--aura-font-weight-semibold);
22
+ }
23
+
24
+ vaadin-login-overlay {
25
+ --vaadin-overlay-backdrop-background: var(--aura-app-background);
26
+
27
+ &::part(overlay) {
28
+ --aura-surface-level: 2;
29
+ }
30
+
31
+ &::part(brand) {
32
+ text-align: center;
33
+ padding-bottom: 0;
34
+ }
35
+
36
+ &::part(form-title) {
37
+ display: none;
38
+ }
39
+
40
+ [slot='title'] {
41
+ letter-spacing: -0.03em;
42
+ }
43
+ }
@@ -0,0 +1,17 @@
1
+ @container not style(--vaadin-menu-bar-gap) {
2
+ vaadin-menu-bar:not([has-single-button]) vaadin-menu-bar-button:not([first-visible]) {
3
+ border-inline-start-color: transparent;
4
+ }
5
+ }
6
+
7
+ @media (any-hover: hover) {
8
+ /* Increase specificity to reset hover styles */
9
+ vaadin-menu-bar-button vaadin-menu-bar-item:not([disabled]):not([tabindex]):hover {
10
+ background: transparent;
11
+ }
12
+ }
13
+
14
+ vaadin-menu-bar-button[slot='overflow'] {
15
+ font-family: system-ui, sans-serif;
16
+ font-weight: 600;
17
+ }
@@ -1,4 +1,5 @@
1
- :where(:root, :host) {
1
+ :where(:root),
2
+ :where(:host) {
2
3
  --vaadin-chip-padding: 0.4em;
3
4
  --vaadin-chip-background: var(--vaadin-background-container-strong);
4
5
  }
@@ -1,4 +1,5 @@
1
- :where(:root, :host) {
1
+ :where(:root),
2
+ :where(:host) {
2
3
  --vaadin-notification-border-width: 0px;
3
4
  --vaadin-ease-fluid: cubic-bezier(0.78, 0, 0.22, 1);
4
5
  }
@@ -1,4 +1,5 @@
1
- :where(:root, :host) {
1
+ :where(:root),
2
+ :where(:host) {
2
3
  --vaadin-overlay-border-width: 0px;
3
4
  --vaadin-overlay-backdrop-background: light-dark(
4
5
  oklch(from var(--aura-background-light) calc(l * 0.1) c h / 0.15),
@@ -12,7 +13,7 @@
12
13
  --aura-overlay-shadow:
13
14
  inset 0 0 0 1px var(--aura-overlay-inner-outline-color), 0 0 0 1px var(--aura-overlay-outline-color),
14
15
  var(--aura-shadow-m);
15
- --aura-overlay-backdrop-filter: blur(12px) brightness(1.2) saturate(1.2);
16
+ --aura-overlay-backdrop-filter: blur(20px) brightness(1.1) saturate(1.2);
16
17
  --aura-overlay-surface-opacity: 0.85;
17
18
 
18
19
  @media (prefers-reduced-transparency: reduce) {
@@ -0,0 +1,17 @@
1
+ :where(:root),
2
+ :where(:host) {
3
+ --vaadin-progress-bar-border-width: 0px;
4
+ --vaadin-progress-bar-value-background: linear-gradient(
5
+ 90deg,
6
+ var(--aura-accent-color),
7
+ color-mix(in hsl, var(--aura-accent-color) 60%, hsl(45, 31%, 95%))
8
+ );
9
+ }
10
+
11
+ vaadin-progress-bar {
12
+ height: var(--vaadin-gap-s);
13
+
14
+ &[dir='rtl']::part(value) {
15
+ scale: -1;
16
+ }
17
+ }