@danske/sapphire-css 26.3.0 → 26.4.0

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.
@@ -1,8 +1,10 @@
1
1
  .sapphire-text-field {
2
2
  width: var(--sapphire-text-field-size-width-control);
3
- box-shadow: inset 0px 0px 0px var(--sapphire-text-field-size-width-border)
3
+ outline: solid var(--sapphire-text-field-size-width-border)
4
4
  var(--sapphire-text-field-color-border-default);
5
+ outline-offset: calc(0px - var(--sapphire-text-field-size-width-border));
5
6
  box-sizing: border-box;
7
+ overflow-x: hidden;
6
8
  display: flex;
7
9
  align-items: center;
8
10
  border-radius: var(--sapphire-text-field-size-radius);
@@ -86,6 +88,7 @@
86
88
  .sapphire-text-field .sapphire-text-field__affix {
87
89
  color: var(--sapphire-text-field-color-affix);
88
90
  flex-shrink: 0;
91
+ z-index: 1;
89
92
  }
90
93
 
91
94
  .sapphire-text-field .sapphire-text-field__affix--icon {
@@ -172,7 +175,7 @@
172
175
  }
173
176
 
174
177
  .sapphire-text-field--error {
175
- box-shadow: inset 0px 0px 0px var(--sapphire-text-field-size-width-border)
178
+ outline: solid var(--sapphire-text-field-size-width-border)
176
179
  var(--sapphire-text-field-color-border-error);
177
180
  }
178
181
 
@@ -181,6 +184,20 @@
181
184
  */
182
185
  .sapphire-text-field.is-focus,
183
186
  .sapphire-text-field:focus-within {
184
- box-shadow: inset 0px 0px 0px var(--sapphire-text-field-size-focus-ring)
187
+ outline: solid var(--sapphire-text-field-size-focus-ring)
185
188
  var(--sapphire-text-field-color-focus-ring);
189
+ outline-offset: calc(0px - var(--sapphire-text-field-size-focus-ring));
190
+ }
191
+
192
+ .sapphire-text-field.is-focus .sapphire-text-field__input:autofill,
193
+ .sapphire-text-field:focus-within .sapphire-text-field__input:autofill {
194
+ /*
195
+ * https://developer.mozilla.org/en-US/docs/Web/CSS/:autofill
196
+ * Overriding background-color property of auto filled input is not possible,
197
+ * so box-shadow is used here to achieve the same look.
198
+ * Fixes the state when the field is focused and the user is hovering
199
+ * or focusing on the list of browser autofilling suggestions.
200
+ */
201
+ box-shadow: 0 0 0 var(--sapphire-text-field-size-height-field-l) inset
202
+ var(--sapphire-text-field-color-background) !important;
186
203
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@danske/sapphire-css",
3
- "version": "26.3.0",
3
+ "version": "26.4.0",
4
4
  "description": "CSS implementation of the Sapphire Design System from Danske Bank A/S",
5
5
  "license": "SEE LICENSE IN LICENSE",
6
6
  "sideEffects": false,
@@ -66,7 +66,7 @@
66
66
  "typescript": "~4.6.4"
67
67
  },
68
68
  "dependencies": {
69
- "@danske/sapphire-design-tokens": "^35.5.0"
69
+ "@danske/sapphire-design-tokens": "^35.6.0"
70
70
  },
71
- "gitHead": "a0ed76e1470520cca2aeae0ca02767703e2c3997"
71
+ "gitHead": "c222c5288d3c710afe6604154a769930274c076d"
72
72
  }