@vaadin/field-base 25.4.0-alpha5 → 25.4.0-alpha7
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.4.0-
|
|
3
|
+
"version": "25.4.0-alpha7",
|
|
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.4.0-
|
|
36
|
-
"@vaadin/component-base": "25.4.0-
|
|
35
|
+
"@vaadin/a11y-base": "25.4.0-alpha7",
|
|
36
|
+
"@vaadin/component-base": "25.4.0-alpha7",
|
|
37
37
|
"lit": "^3.0.0"
|
|
38
38
|
},
|
|
39
39
|
"devDependencies": {
|
|
40
|
-
"@vaadin/chai-plugins": "25.4.0-
|
|
41
|
-
"@vaadin/input-container": "25.4.0-
|
|
42
|
-
"@vaadin/test-runner-commands": "25.4.0-
|
|
40
|
+
"@vaadin/chai-plugins": "25.4.0-alpha7",
|
|
41
|
+
"@vaadin/input-container": "25.4.0-alpha7",
|
|
42
|
+
"@vaadin/test-runner-commands": "25.4.0-alpha7",
|
|
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": "368fb0f0df09ec6f51766d9c44047c8d7620d6bd"
|
|
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;
|
|
@@ -29,7 +30,6 @@ export const checkable = (part, propName = part) => css`
|
|
|
29
30
|
}
|
|
30
31
|
|
|
31
32
|
[part='${unsafeCSS(part)}'],
|
|
32
|
-
::slotted(input),
|
|
33
33
|
[part='label'],
|
|
34
34
|
::slotted(label) {
|
|
35
35
|
grid-row: 1;
|
|
@@ -45,8 +45,7 @@ export const checkable = (part, propName = part) => css`
|
|
|
45
45
|
cursor: var(--_cursor);
|
|
46
46
|
}
|
|
47
47
|
|
|
48
|
-
[part='${unsafeCSS(part)}']
|
|
49
|
-
::slotted(input) {
|
|
48
|
+
[part='${unsafeCSS(part)}'] {
|
|
50
49
|
grid-column: 1;
|
|
51
50
|
}
|
|
52
51
|
|
|
@@ -77,17 +76,28 @@ export const checkable = (part, propName = part) => css`
|
|
|
77
76
|
|
|
78
77
|
/* visually hidden */
|
|
79
78
|
::slotted(input) {
|
|
80
|
-
cursor: inherit;
|
|
81
|
-
align-self: stretch;
|
|
82
79
|
appearance: none;
|
|
83
80
|
cursor: var(--_cursor);
|
|
81
|
+
/* Cover the label row to make the space next to the label clickable */
|
|
82
|
+
position: absolute;
|
|
83
|
+
/* Explicit end line, or the input also covers the helper rows */
|
|
84
|
+
grid-row: 1 / 2;
|
|
85
|
+
grid-column: 1 / -1;
|
|
86
|
+
/* Ensure minimum click target (WCAG) */
|
|
87
|
+
inset-block: min(0px, (100% - 24px) / 2);
|
|
88
|
+
inset-inline: min(0px, (100% - 24px) / 2);
|
|
84
89
|
/* Override 16px from iOS UA stylesheet and CSS resets */
|
|
85
90
|
width: auto !important;
|
|
86
91
|
height: auto !important;
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
92
|
+
margin: 0 !important;
|
|
93
|
+
}
|
|
94
|
+
|
|
95
|
+
[part='label'] {
|
|
96
|
+
justify-self: start;
|
|
97
|
+
}
|
|
98
|
+
|
|
99
|
+
::slotted(label) {
|
|
100
|
+
position: relative;
|
|
91
101
|
}
|
|
92
102
|
|
|
93
103
|
/* Control container (checkbox, radio button) */
|
|
@@ -178,14 +188,9 @@ export const checkable = (part, propName = part) => css`
|
|
|
178
188
|
grid-column: 1;
|
|
179
189
|
}
|
|
180
190
|
|
|
181
|
-
[part='${unsafeCSS(part)}']
|
|
182
|
-
::slotted(input) {
|
|
191
|
+
[part='${unsafeCSS(part)}'] {
|
|
183
192
|
grid-column: 2;
|
|
184
193
|
}
|
|
185
|
-
|
|
186
|
-
::slotted(input) {
|
|
187
|
-
margin-inline: calc(min(0px, (24px - 100%) / -2) - var(--vaadin-${unsafeCSS(propName)}-gap, var(--vaadin-gap-s))) 0 !important;
|
|
188
|
-
}
|
|
189
194
|
}
|
|
190
195
|
|
|
191
196
|
@media (forced-colors: active) {
|