@vaadin/field-base 25.0.0-alpha4 → 25.0.0-alpha6
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.0.0-
|
|
3
|
+
"version": "25.0.0-alpha6",
|
|
4
4
|
"publishConfig": {
|
|
5
5
|
"access": "public"
|
|
6
6
|
},
|
|
@@ -33,15 +33,15 @@
|
|
|
33
33
|
],
|
|
34
34
|
"dependencies": {
|
|
35
35
|
"@open-wc/dedupe-mixin": "^1.3.0",
|
|
36
|
-
"@vaadin/a11y-base": "25.0.0-
|
|
37
|
-
"@vaadin/component-base": "25.0.0-
|
|
36
|
+
"@vaadin/a11y-base": "25.0.0-alpha6",
|
|
37
|
+
"@vaadin/component-base": "25.0.0-alpha6",
|
|
38
38
|
"lit": "^3.0.0"
|
|
39
39
|
},
|
|
40
40
|
"devDependencies": {
|
|
41
|
-
"@vaadin/chai-plugins": "25.0.0-
|
|
42
|
-
"@vaadin/test-runner-commands": "25.0.0-
|
|
41
|
+
"@vaadin/chai-plugins": "25.0.0-alpha6",
|
|
42
|
+
"@vaadin/test-runner-commands": "25.0.0-alpha6",
|
|
43
43
|
"@vaadin/testing-helpers": "^2.0.0",
|
|
44
44
|
"sinon": "^18.0.0"
|
|
45
45
|
},
|
|
46
|
-
"gitHead": "
|
|
46
|
+
"gitHead": "cd1d084198d2b326c58d44bb39fa4845b71ce551"
|
|
47
47
|
}
|
|
@@ -103,13 +103,27 @@ export const InputControlMixin = (superclass) =>
|
|
|
103
103
|
|
|
104
104
|
/** @protected */
|
|
105
105
|
get slotStyles() {
|
|
106
|
-
|
|
106
|
+
const tag = this.localName;
|
|
107
|
+
|
|
107
108
|
return [
|
|
108
109
|
`
|
|
109
|
-
|
|
110
|
+
/* Needed for Safari, where ::slotted(...)::placeholder does not work */
|
|
111
|
+
${tag} > :is(input[slot='input'], textarea[slot='textarea'])::placeholder {
|
|
110
112
|
font: inherit;
|
|
111
113
|
color: inherit;
|
|
112
114
|
}
|
|
115
|
+
|
|
116
|
+
/* Override built-in autofill styles */
|
|
117
|
+
${tag} > input[slot='input']:autofill {
|
|
118
|
+
-webkit-text-fill-color: var(--vaadin-input-field-autofill-color, black);
|
|
119
|
+
background-clip: text;
|
|
120
|
+
}
|
|
121
|
+
|
|
122
|
+
${tag}:has(> input[slot='input']:autofill) {
|
|
123
|
+
--vaadin-input-field-background: var(--vaadin-input-field-autofill-background, lightyellow);
|
|
124
|
+
--vaadin-input-field-value-color: var(--vaadin-input-field-autofill-color, black);
|
|
125
|
+
--vaadin-input-field-button-color: var(--vaadin-input-field-autofill-color, black);
|
|
126
|
+
}
|
|
113
127
|
`,
|
|
114
128
|
];
|
|
115
129
|
}
|