@navikt/ds-css 6.8.0 → 6.9.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.
- package/CHANGELOG.md +8 -0
- package/dist/component/form.css +29 -41
- package/dist/component/form.min.css +1 -1
- package/dist/component/index.css +31 -43
- package/dist/component/index.min.css +1 -1
- package/dist/component/primitives.css +1 -1
- package/dist/component/primitives.min.css +1 -1
- package/dist/components.css +32 -49
- package/dist/components.min.css +1 -1
- package/dist/global/tokens.css +1 -1
- package/dist/index.css +31 -43
- package/dist/index.min.css +1 -1
- package/form/combobox.css +31 -48
- package/package.json +2 -2
- package/primitives/page.css +1 -1
package/form/combobox.css
CHANGED
|
@@ -1,18 +1,41 @@
|
|
|
1
1
|
.navds-combobox__wrapper {
|
|
2
|
+
--__ac-combobox-icon-size: 1.5rem;
|
|
3
|
+
--__ac-combobox-wrapper-inner-padding: var(--a-spacing-2);
|
|
4
|
+
--__ac-combobox-list-item-padding-block: var(--a-spacing-3);
|
|
5
|
+
--__ac-combobox-list-item-padding-inline: var(--a-spacing-3);
|
|
6
|
+
--__ac-combobox-border-width: 1px;
|
|
7
|
+
--__ac-combobox-input-height: 2rem;
|
|
8
|
+
|
|
2
9
|
display: flex;
|
|
3
10
|
flex-direction: column;
|
|
4
11
|
width: 100%;
|
|
5
12
|
position: relative;
|
|
6
13
|
}
|
|
7
14
|
|
|
8
|
-
.navds-
|
|
15
|
+
.navds-form-field--small .navds-combobox__wrapper {
|
|
16
|
+
--__ac-combobox-icon-size: 1.25rem;
|
|
17
|
+
--__ac-combobox-wrapper-inner-padding: var(--a-spacing-1);
|
|
18
|
+
--__ac-combobox-list-item-padding-block: var(--a-spacing-1-alt);
|
|
19
|
+
--__ac-combobox-list-item-padding-inline: var(--a-spacing-2);
|
|
20
|
+
--__ac-combobox-input-height: 1.5rem;
|
|
21
|
+
}
|
|
22
|
+
|
|
23
|
+
.navds-combobox__button-clear svg,
|
|
24
|
+
.navds-combobox__button-toggle-list svg,
|
|
25
|
+
.navds-combobox__list svg {
|
|
26
|
+
width: var(--__ac-combobox-icon-size);
|
|
27
|
+
height: var(--__ac-combobox-icon-size);
|
|
28
|
+
}
|
|
29
|
+
|
|
30
|
+
.navds-combobox__wrapper-inner.navds-text-field__input {
|
|
9
31
|
position: relative;
|
|
10
32
|
display: flex;
|
|
11
33
|
flex-direction: row;
|
|
12
34
|
align-items: center;
|
|
13
35
|
justify-content: space-between;
|
|
14
36
|
width: 100%;
|
|
15
|
-
padding: calc(var(--
|
|
37
|
+
padding-block: calc(var(--__ac-combobox-wrapper-inner-padding) - var(--__ac-combobox-border-width));
|
|
38
|
+
padding-inline: var(--__ac-combobox-wrapper-inner-padding);
|
|
16
39
|
}
|
|
17
40
|
|
|
18
41
|
.navds-combobox__wrapper-inner > :first-child {
|
|
@@ -24,10 +47,6 @@
|
|
|
24
47
|
flex-flow: row nowrap;
|
|
25
48
|
}
|
|
26
49
|
|
|
27
|
-
.navds-form-field--small .navds-combobox__wrapper-inner {
|
|
28
|
-
padding: var(--a-spacing-1) calc(var(--a-spacing-3) / 2);
|
|
29
|
-
}
|
|
30
|
-
|
|
31
50
|
.navds-combobox__wrapper-inner:hover {
|
|
32
51
|
cursor: text;
|
|
33
52
|
}
|
|
@@ -47,7 +66,7 @@
|
|
|
47
66
|
}
|
|
48
67
|
|
|
49
68
|
.navds-combobox__selected-options {
|
|
50
|
-
gap: var(--
|
|
69
|
+
gap: var(--__ac-combobox-wrapper-inner-padding);
|
|
51
70
|
align-items: center;
|
|
52
71
|
}
|
|
53
72
|
|
|
@@ -82,7 +101,7 @@
|
|
|
82
101
|
margin: 0;
|
|
83
102
|
min-width: 10ch;
|
|
84
103
|
width: 100%;
|
|
85
|
-
height:
|
|
104
|
+
height: var(--__ac-combobox-input-height);
|
|
86
105
|
}
|
|
87
106
|
|
|
88
107
|
.navds-combobox__input:focus-visible {
|
|
@@ -147,11 +166,6 @@
|
|
|
147
166
|
padding: 0;
|
|
148
167
|
}
|
|
149
168
|
|
|
150
|
-
.navds-combobox__button-clear svg {
|
|
151
|
-
width: 1.5rem;
|
|
152
|
-
height: 1.5rem;
|
|
153
|
-
}
|
|
154
|
-
|
|
155
169
|
.navds-combobox__input::-webkit-search-cancel-button {
|
|
156
170
|
display: none;
|
|
157
171
|
}
|
|
@@ -197,18 +211,6 @@
|
|
|
197
211
|
}
|
|
198
212
|
}
|
|
199
213
|
|
|
200
|
-
.navds-combobox__button-toggle-list svg {
|
|
201
|
-
width: 1.5rem;
|
|
202
|
-
height: 1.5rem;
|
|
203
|
-
pointer-events: none;
|
|
204
|
-
}
|
|
205
|
-
|
|
206
|
-
.navds-form-field--small .navds-combobox__button-toggle-list svg,
|
|
207
|
-
.navds-form-field--small .navds-combobox__button-clear svg {
|
|
208
|
-
width: 1.25rem;
|
|
209
|
-
height: 1.25rem;
|
|
210
|
-
}
|
|
211
|
-
|
|
212
214
|
/* dropdown & non selectable dropdown items */
|
|
213
215
|
|
|
214
216
|
.navds-combobox__list {
|
|
@@ -226,18 +228,12 @@
|
|
|
226
228
|
border-radius: var(--a-border-radius-medium);
|
|
227
229
|
background-color: var(--ac-combobox-list-bg, var(--a-surface-default));
|
|
228
230
|
color: var(--ac-combobox-list-text, var(--a-text-default));
|
|
229
|
-
gap: var(--a-spacing-1) 0;
|
|
230
231
|
}
|
|
231
232
|
|
|
232
233
|
.navds-combobox__list--closed {
|
|
233
234
|
display: none;
|
|
234
235
|
}
|
|
235
236
|
|
|
236
|
-
.navds-combobox__list svg {
|
|
237
|
-
height: 1.5rem;
|
|
238
|
-
width: 1.5rem;
|
|
239
|
-
}
|
|
240
|
-
|
|
241
237
|
.navds-combobox__list_non-selectables {
|
|
242
238
|
position: sticky;
|
|
243
239
|
top: 0;
|
|
@@ -251,23 +247,17 @@
|
|
|
251
247
|
.navds-combobox__list-item--no-options,
|
|
252
248
|
.navds-combobox__list-item--new-option,
|
|
253
249
|
.navds-combobox__list-item--max-selected {
|
|
250
|
+
align-items: center;
|
|
254
251
|
display: flex;
|
|
255
252
|
flex-direction: row;
|
|
256
253
|
justify-content: space-between;
|
|
257
|
-
padding: var(--
|
|
254
|
+
padding-block: var(--__ac-combobox-list-item-padding-block);
|
|
255
|
+
padding-inline: var(--__ac-combobox-list-item-padding-inline);
|
|
258
256
|
width: 100%;
|
|
259
257
|
background-color: var(--ac-combobox-list-item-bg, var(--a-surface-default));
|
|
260
258
|
scroll-margin-top: 50px;
|
|
261
259
|
}
|
|
262
260
|
|
|
263
|
-
.navds-form-field--small .navds-combobox__list-item,
|
|
264
|
-
.navds-form-field--small .navds-combobox__list-item--loading,
|
|
265
|
-
.navds-form-field--small .navds-combobox__list-item--no-options,
|
|
266
|
-
.navds-form-field--small .navds-combobox__list-item--new-option,
|
|
267
|
-
.navds-form-field--small .navds-combobox__list-item--max-selected {
|
|
268
|
-
padding: calc(var(--a-spacing-3) / 2) var(--a-spacing-2);
|
|
269
|
-
}
|
|
270
|
-
|
|
271
261
|
.navds-combobox__list-item--loading {
|
|
272
262
|
justify-content: center;
|
|
273
263
|
background-color: var(--ac-combobox-list-item-loading-bg, var(--a-surface-default));
|
|
@@ -278,7 +268,6 @@
|
|
|
278
268
|
border-start-start-radius: calc(var(--a-border-radius-medium) - 1px);
|
|
279
269
|
border-start-end-radius: calc(var(--a-border-radius-medium) - 1px);
|
|
280
270
|
border: 1px solid var(--ac-combobox-list-item-max-selected-border, var(--a-border-info));
|
|
281
|
-
margin-bottom: calc(var(--a-spacing-1) * -1);
|
|
282
271
|
}
|
|
283
272
|
|
|
284
273
|
.navds-combobox__list_non-selectables:hover {
|
|
@@ -305,12 +294,7 @@
|
|
|
305
294
|
background-color: var(--ac-combobox-list-item-hover-bg, var(--a-surface-hover));
|
|
306
295
|
cursor: pointer;
|
|
307
296
|
border-left: 4px solid var(--ac-combobox-list-item-hover-border-left, var(--a-border-strong));
|
|
308
|
-
padding-
|
|
309
|
-
}
|
|
310
|
-
|
|
311
|
-
.navds-form-field--small .navds-combobox__list-item--focus,
|
|
312
|
-
.navds-combobox__list--with-hover .navds-form-field--small .navds-combobox__list-item:hover {
|
|
313
|
-
padding-left: calc(var(--a-spacing-2) - 4px);
|
|
297
|
+
padding-inline-start: calc(var(--__ac-combobox-list-item-padding-inline) - 4px);
|
|
314
298
|
}
|
|
315
299
|
|
|
316
300
|
.navds-combobox__list-item[data-no-focus="true"] {
|
|
@@ -330,7 +314,6 @@
|
|
|
330
314
|
.navds-combobox__list--with-hover .navds-combobox__list-item--selected:hover {
|
|
331
315
|
background-color: var(--ac-combobox-list-item-selected-hover-bg, var(--a-surface-action-subtle-hover));
|
|
332
316
|
border-left: 4px solid var(--ac-combobox-list-item-selected-hover-border-left, var(--a-border-focus));
|
|
333
|
-
padding-left: calc(var(--a-spacing-3) - 4px);
|
|
334
317
|
}
|
|
335
318
|
|
|
336
319
|
.navds-combobox__list-item--new-option {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@navikt/ds-css",
|
|
3
|
-
"version": "6.
|
|
3
|
+
"version": "6.9.0",
|
|
4
4
|
"description": "CSS for NAV Designsystem",
|
|
5
5
|
"author": "Aksel | NAV designsystem team",
|
|
6
6
|
"keywords": [
|
|
@@ -27,7 +27,7 @@
|
|
|
27
27
|
"css:get-version": "node config/get-version.js"
|
|
28
28
|
},
|
|
29
29
|
"devDependencies": {
|
|
30
|
-
"@navikt/ds-tokens": "^6.
|
|
30
|
+
"@navikt/ds-tokens": "^6.9.0",
|
|
31
31
|
"cssnano": "6.0.0",
|
|
32
32
|
"fast-glob": "3.2.11",
|
|
33
33
|
"lodash": "4.17.21",
|