@vaadin/field-base 25.3.4 → 25.3.6
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/field-base",
|
|
3
|
-
"version": "25.3.
|
|
3
|
+
"version": "25.3.6",
|
|
4
4
|
"publishConfig": {
|
|
5
5
|
"access": "public"
|
|
6
6
|
},
|
|
@@ -32,17 +32,17 @@
|
|
|
32
32
|
],
|
|
33
33
|
"dependencies": {
|
|
34
34
|
"@open-wc/dedupe-mixin": "^1.3.0",
|
|
35
|
-
"@vaadin/a11y-base": "~25.3.
|
|
36
|
-
"@vaadin/component-base": "~25.3.
|
|
35
|
+
"@vaadin/a11y-base": "~25.3.6",
|
|
36
|
+
"@vaadin/component-base": "~25.3.6",
|
|
37
37
|
"lit": "^3.0.0"
|
|
38
38
|
},
|
|
39
39
|
"devDependencies": {
|
|
40
|
-
"@vaadin/chai-plugins": "~25.3.
|
|
41
|
-
"@vaadin/input-container": "~25.3.
|
|
42
|
-
"@vaadin/test-runner-commands": "~25.3.
|
|
40
|
+
"@vaadin/chai-plugins": "~25.3.6",
|
|
41
|
+
"@vaadin/input-container": "~25.3.6",
|
|
42
|
+
"@vaadin/test-runner-commands": "~25.3.6",
|
|
43
43
|
"@vaadin/testing-helpers": "^2.0.0",
|
|
44
44
|
"sinon": "^22.0.0"
|
|
45
45
|
},
|
|
46
46
|
"customElements": "custom-elements.json",
|
|
47
|
-
"gitHead": "
|
|
47
|
+
"gitHead": "134c7903aec884546665a5aa5166bbced5b1631e"
|
|
48
48
|
}
|
|
@@ -9,6 +9,7 @@ import { css, unsafeCSS } from 'lit';
|
|
|
9
9
|
// postcss-lit-disable-next-line
|
|
10
10
|
export const checkable = (part, propName = part) => css`
|
|
11
11
|
:host {
|
|
12
|
+
position: relative;
|
|
12
13
|
align-items: baseline;
|
|
13
14
|
column-gap: var(--vaadin-${unsafeCSS(propName)}-gap, var(--vaadin-gap-s));
|
|
14
15
|
grid-template: none;
|
|
@@ -25,7 +26,6 @@ export const checkable = (part, propName = part) => css`
|
|
|
25
26
|
}
|
|
26
27
|
|
|
27
28
|
[part='${unsafeCSS(part)}'],
|
|
28
|
-
::slotted(input),
|
|
29
29
|
[part='label'],
|
|
30
30
|
::slotted(label) {
|
|
31
31
|
grid-row: 1;
|
|
@@ -41,8 +41,7 @@ export const checkable = (part, propName = part) => css`
|
|
|
41
41
|
cursor: var(--_cursor);
|
|
42
42
|
}
|
|
43
43
|
|
|
44
|
-
[part='${unsafeCSS(part)}']
|
|
45
|
-
::slotted(input) {
|
|
44
|
+
[part='${unsafeCSS(part)}'] {
|
|
46
45
|
grid-column: 1;
|
|
47
46
|
}
|
|
48
47
|
|
|
@@ -71,17 +70,28 @@ export const checkable = (part, propName = part) => css`
|
|
|
71
70
|
|
|
72
71
|
/* visually hidden */
|
|
73
72
|
::slotted(input) {
|
|
74
|
-
cursor: inherit;
|
|
75
|
-
align-self: stretch;
|
|
76
73
|
appearance: none;
|
|
77
74
|
cursor: var(--_cursor);
|
|
75
|
+
/* Cover the label row to make the space next to the label clickable */
|
|
76
|
+
position: absolute;
|
|
77
|
+
/* Explicit end line, or the input also covers the helper rows */
|
|
78
|
+
grid-row: 1 / 2;
|
|
79
|
+
grid-column: 1 / -1;
|
|
80
|
+
/* Ensure minimum click target (WCAG) */
|
|
81
|
+
inset-block: min(0px, (100% - 24px) / 2);
|
|
82
|
+
inset-inline: min(0px, (100% - 24px) / 2);
|
|
78
83
|
/* Override 16px from iOS UA stylesheet and CSS resets */
|
|
79
84
|
width: auto !important;
|
|
80
85
|
height: auto !important;
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
86
|
+
margin: 0 !important;
|
|
87
|
+
}
|
|
88
|
+
|
|
89
|
+
[part='label'] {
|
|
90
|
+
justify-self: start;
|
|
91
|
+
}
|
|
92
|
+
|
|
93
|
+
::slotted(label) {
|
|
94
|
+
position: relative;
|
|
85
95
|
}
|
|
86
96
|
|
|
87
97
|
/* Control container (checkbox, radio button) */
|
|
@@ -172,14 +182,9 @@ export const checkable = (part, propName = part) => css`
|
|
|
172
182
|
grid-column: 1;
|
|
173
183
|
}
|
|
174
184
|
|
|
175
|
-
[part='${unsafeCSS(part)}']
|
|
176
|
-
::slotted(input) {
|
|
185
|
+
[part='${unsafeCSS(part)}'] {
|
|
177
186
|
grid-column: 2;
|
|
178
187
|
}
|
|
179
|
-
|
|
180
|
-
::slotted(input) {
|
|
181
|
-
margin-inline: calc(min(0px, (24px - 100%) / -2) - var(--vaadin-${unsafeCSS(propName)}-gap, var(--vaadin-gap-s))) 0 !important;
|
|
182
|
-
}
|
|
183
188
|
}
|
|
184
189
|
|
|
185
190
|
@media (forced-colors: active) {
|