@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-alpha4",
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-alpha4",
37
- "@vaadin/component-base": "25.0.0-alpha4",
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-alpha4",
42
- "@vaadin/test-runner-commands": "25.0.0-alpha4",
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": "ce4421f0daf26027b863b91787a474e4cc264344"
46
+ "gitHead": "cd1d084198d2b326c58d44bb39fa4845b71ce551"
47
47
  }
@@ -103,13 +103,27 @@ export const InputControlMixin = (superclass) =>
103
103
 
104
104
  /** @protected */
105
105
  get slotStyles() {
106
- // Needed for Safari, where ::slotted(...)::placeholder does not work
106
+ const tag = this.localName;
107
+
107
108
  return [
108
109
  `
109
- :is(input[slot='input'], textarea[slot='textarea'])::placeholder {
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
  }
@@ -57,7 +57,7 @@ export const checkable = (part, propName = part) => css`
57
57
  cursor: inherit;
58
58
  margin: 0;
59
59
  align-self: stretch;
60
- -webkit-appearance: none;
60
+ appearance: none;
61
61
  width: initial;
62
62
  height: initial;
63
63
  }