@vaadin/button 24.5.0-alpha3 → 24.5.0-alpha4
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 +8 -8
- package/theme/lumo/vaadin-button-styles.js +13 -3
- package/web-types.json +1 -1
- package/web-types.lit.json +1 -1
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@vaadin/button",
|
|
3
|
-
"version": "24.5.0-
|
|
3
|
+
"version": "24.5.0-alpha4",
|
|
4
4
|
"publishConfig": {
|
|
5
5
|
"access": "public"
|
|
6
6
|
},
|
|
@@ -36,16 +36,16 @@
|
|
|
36
36
|
"dependencies": {
|
|
37
37
|
"@open-wc/dedupe-mixin": "^1.3.0",
|
|
38
38
|
"@polymer/polymer": "^3.0.0",
|
|
39
|
-
"@vaadin/a11y-base": "24.5.0-
|
|
40
|
-
"@vaadin/component-base": "24.5.0-
|
|
41
|
-
"@vaadin/vaadin-lumo-styles": "24.5.0-
|
|
42
|
-
"@vaadin/vaadin-material-styles": "24.5.0-
|
|
43
|
-
"@vaadin/vaadin-themable-mixin": "24.5.0-
|
|
39
|
+
"@vaadin/a11y-base": "24.5.0-alpha4",
|
|
40
|
+
"@vaadin/component-base": "24.5.0-alpha4",
|
|
41
|
+
"@vaadin/vaadin-lumo-styles": "24.5.0-alpha4",
|
|
42
|
+
"@vaadin/vaadin-material-styles": "24.5.0-alpha4",
|
|
43
|
+
"@vaadin/vaadin-themable-mixin": "24.5.0-alpha4",
|
|
44
44
|
"lit": "^3.0.0"
|
|
45
45
|
},
|
|
46
46
|
"devDependencies": {
|
|
47
47
|
"@esm-bundle/chai": "^4.3.4",
|
|
48
|
-
"@vaadin/icon": "24.5.0-
|
|
48
|
+
"@vaadin/icon": "24.5.0-alpha4",
|
|
49
49
|
"@vaadin/testing-helpers": "^0.6.0",
|
|
50
50
|
"sinon": "^13.0.2"
|
|
51
51
|
},
|
|
@@ -53,5 +53,5 @@
|
|
|
53
53
|
"web-types.json",
|
|
54
54
|
"web-types.lit.json"
|
|
55
55
|
],
|
|
56
|
-
"gitHead": "
|
|
56
|
+
"gitHead": "a2cd3079183a097b793073eeffd3bd59dec2b664"
|
|
57
57
|
}
|
|
@@ -101,11 +101,12 @@ const button = css`
|
|
|
101
101
|
/* Keyboard focus */
|
|
102
102
|
|
|
103
103
|
:host([focus-ring]) {
|
|
104
|
-
box-shadow: 0 0 0 var(--_focus-ring-
|
|
104
|
+
box-shadow: 0 0 0 calc(1px * var(--_focus-ring-gap-on, 0)) var(--_focus-ring-gap-color, var(--lumo-base-color)),
|
|
105
|
+
0 0 0 calc(var(--_focus-ring-width) + 1px * var(--_focus-ring-gap-on, 0)) var(--_focus-ring-color);
|
|
105
106
|
}
|
|
106
107
|
|
|
107
108
|
:host([theme~='primary'][focus-ring]) {
|
|
108
|
-
|
|
109
|
+
--_focus-ring-gap-on: 1;
|
|
109
110
|
}
|
|
110
111
|
|
|
111
112
|
/* Types (primary, tertiary, tertiary-inline */
|
|
@@ -168,7 +169,7 @@ const button = css`
|
|
|
168
169
|
opacity: 0.2;
|
|
169
170
|
}
|
|
170
171
|
|
|
171
|
-
/* Colors (success, error, contrast) */
|
|
172
|
+
/* Colors (success, warning, error, contrast) */
|
|
172
173
|
|
|
173
174
|
:host([theme~='success']) {
|
|
174
175
|
color: var(--lumo-success-text-color);
|
|
@@ -179,6 +180,15 @@ const button = css`
|
|
|
179
180
|
color: var(--lumo-success-contrast-color);
|
|
180
181
|
}
|
|
181
182
|
|
|
183
|
+
:host([theme~='warning']) {
|
|
184
|
+
color: var(--lumo-warning-text-color);
|
|
185
|
+
}
|
|
186
|
+
|
|
187
|
+
:host([theme~='warning'][theme~='primary']) {
|
|
188
|
+
background-color: var(--lumo-warning-color);
|
|
189
|
+
color: var(--lumo-warning-contrast-color);
|
|
190
|
+
}
|
|
191
|
+
|
|
182
192
|
:host([theme~='error']) {
|
|
183
193
|
color: var(--lumo-error-text-color);
|
|
184
194
|
}
|
package/web-types.json
CHANGED