@danske/sapphire-css 26.2.0 → 26.3.1
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
|
-
|
|
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
|
-
|
|
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
|
-
|
|
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
|
+
"version": "26.3.1",
|
|
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,
|
|
@@ -68,5 +68,5 @@
|
|
|
68
68
|
"dependencies": {
|
|
69
69
|
"@danske/sapphire-design-tokens": "^35.5.0"
|
|
70
70
|
},
|
|
71
|
-
"gitHead": "
|
|
71
|
+
"gitHead": "f8d78b5edaeb9f6a671e67c5aa221090e1397973"
|
|
72
72
|
}
|