@vaadin/vaadin-lumo-styles 25.0.0-alpha17 → 25.0.0-alpha18

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.
@@ -4,7 +4,6 @@
4
4
  * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
5
5
  */
6
6
  @import '../src/mixins/field-button.css';
7
- @import '../src/components/upload-file-list.css';
8
7
  @import '../src/components/upload-file.css';
9
8
  @import '../src/components/upload-icon.css';
10
9
  @import '../src/components/upload.css';
@@ -22,7 +21,11 @@
22
21
  --vaadin-upload-file-lumo-inject-modules:
23
22
  lumo_mixins_field-button,
24
23
  lumo_components_upload-file;
24
+ }
25
25
 
26
- --vaadin-upload-file-list-lumo-inject: 1;
27
- --vaadin-upload-file-list-lumo-inject-modules: lumo_components_upload-file-list;
26
+ :where(:root, :host) {
27
+ --vaadin-upload-gap: 0;
28
+ --vaadin-upload-file-list-border-color: var(
29
+ --lumo-contrast-10pct
30
+ );
28
31
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@vaadin/vaadin-lumo-styles",
3
- "version": "25.0.0-alpha17",
3
+ "version": "25.0.0-alpha18",
4
4
  "publishConfig": {
5
5
  "access": "public"
6
6
  },
@@ -42,9 +42,9 @@
42
42
  "web-component"
43
43
  ],
44
44
  "dependencies": {
45
- "@vaadin/component-base": "25.0.0-alpha17",
46
- "@vaadin/icon": "25.0.0-alpha17",
47
- "@vaadin/vaadin-themable-mixin": "25.0.0-alpha17"
45
+ "@vaadin/component-base": "25.0.0-alpha18",
46
+ "@vaadin/icon": "25.0.0-alpha18",
47
+ "@vaadin/vaadin-themable-mixin": "25.0.0-alpha18"
48
48
  },
49
49
  "devDependencies": {
50
50
  "gulp": "^5.0.1",
@@ -54,5 +54,5 @@
54
54
  "imagemin": "^9.0.0",
55
55
  "imagemin-svgo": "^10.0.1"
56
56
  },
57
- "gitHead": "8264c71309907be99368b09414f0f8d7f591e0b9"
57
+ "gitHead": "cb5cafb5687a117ebead1b81e2116991cec13abe"
58
58
  }
@@ -7,6 +7,7 @@
7
7
  :host {
8
8
  align-items: flex-start;
9
9
  justify-content: flex-start;
10
+ --_default-offset: var(--lumo-space-xs);
10
11
  /* TODO These style overrides should not be needed.
11
12
  We should instead offer a way to have non-selectable items inside the context menu. */
12
13
  --_lumo-list-box-item-selected-icon-display: none;
@@ -38,4 +39,24 @@
38
39
  outline: 3px solid !important;
39
40
  }
40
41
  }
42
+
43
+ :host([position^='top'][top-aligned]) [part='overlay'],
44
+ :host([position^='bottom'][top-aligned]) [part='overlay'] {
45
+ margin-top: var(--vaadin-context-menu-offset-top, var(--_default-offset));
46
+ }
47
+
48
+ :host([position^='top'][bottom-aligned]) [part='overlay'],
49
+ :host([position^='bottom'][bottom-aligned]) [part='overlay'] {
50
+ margin-bottom: var(--vaadin-context-menu-offset-bottom, var(--_default-offset));
51
+ }
52
+
53
+ :host([position^='start'][start-aligned]) [part='overlay'],
54
+ :host([position^='end'][start-aligned]) [part='overlay'] {
55
+ margin-inline-start: var(--vaadin-context-menu-offset-start, var(--_default-offset));
56
+ }
57
+
58
+ :host([position^='start'][end-aligned]) [part='overlay'],
59
+ :host([position^='end'][end-aligned]) [part='overlay'] {
60
+ margin-inline-end: var(--vaadin-context-menu-offset-end, var(--_default-offset));
61
+ }
41
62
  }
@@ -12,9 +12,9 @@
12
12
  }
13
13
 
14
14
  :host(:focus-visible) {
15
- outline: none;
16
15
  border-radius: var(--lumo-border-radius-s);
17
- box-shadow: 0 0 0 var(--_focus-ring-width) var(--_focus-ring-color);
16
+ outline: var(--_focus-ring-width) solid var(--_focus-ring-color);
17
+ outline-offset: calc(var(--_focus-ring-width) * -1);
18
18
  }
19
19
 
20
20
  [part='status'],
@@ -49,7 +49,8 @@
49
49
  }
50
50
 
51
51
  [part$='button']:focus {
52
- box-shadow: 0 0 0 var(--_focus-ring-width) var(--_focus-ring-color);
52
+ outline: var(--_focus-ring-width) solid var(--_focus-ring-color);
53
+ outline-offset: calc(var(--_focus-ring-width) * -1);
53
54
  }
54
55
 
55
56
  /* Vertically align icons / buttons with the first line of text */
package/utility.css CHANGED
@@ -3,7 +3,6 @@
3
3
  * Copyright (c) 2000 - 2025 Vaadin Ltd.
4
4
  * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
5
5
  */
6
- @import './props.css';
7
6
  @import './src/utilities/accessibility.css';
8
7
  @import './src/utilities/background.css';
9
8
  @import './src/utilities/border.css';
@@ -1,24 +0,0 @@
1
- /**
2
- * @license
3
- * Copyright (c) 2000 - 2025 Vaadin Ltd.
4
- * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
5
- */
6
- @media lumo_components_upload-file-list {
7
- :host {
8
- display: block;
9
- }
10
-
11
- :host([hidden]) {
12
- display: none !important;
13
- }
14
-
15
- [part='list'] {
16
- padding: 0;
17
- margin: 0;
18
- list-style-type: none;
19
- }
20
-
21
- ::slotted(li:not(:first-of-type)) {
22
- border-top: 1px solid var(--lumo-contrast-10pct);
23
- }
24
- }