@navikt/ds-css 7.2.1 → 7.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.
- package/CHANGELOG.md +16 -0
- package/action-menu.css +227 -0
- package/baseline/_inline-reset.css +3 -1
- package/baseline/_utilities.css +1 -1
- package/button.css +1 -0
- package/config/_mappings.js +5 -0
- package/darkside/README.md +25 -0
- package/darkside/baseline/fonts.darkside.css +129 -0
- package/darkside/baseline/print.darkside.css +75 -0
- package/darkside/baseline/reset.darkside.css +148 -0
- package/darkside/baseline/theme.darkside.css +10 -0
- package/darkside/baseline/utilities.darkside.css +65 -0
- package/darkside/button.darkside.css +6 -0
- package/darkside/index.css +17 -0
- package/darkside/typography.darkside.css +6 -0
- package/date.css +9 -9
- package/dist/component/actionmenu.css +228 -0
- package/dist/component/actionmenu.min.css +1 -0
- package/dist/component/date.css +9 -9
- package/dist/component/date.min.css +1 -1
- package/dist/component/dropdown.css +1 -1
- package/dist/component/dropdown.min.css +1 -1
- package/dist/component/form.css +29 -35
- package/dist/component/form.min.css +2 -2
- package/dist/component/index.css +1630 -57
- package/dist/component/index.min.css +6 -5
- package/dist/component/list.css +1 -0
- package/dist/component/list.min.css +1 -1
- package/dist/component/modal.css +6 -4
- package/dist/component/primitives.css +1 -2
- package/dist/component/primitives.min.css +1 -1
- package/dist/component/stepper.css +1 -2
- package/dist/component/stepper.min.css +1 -1
- package/dist/component/togglegroup.css +1 -1
- package/dist/component/togglegroup.min.css +1 -1
- package/dist/components.css +1237 -54
- package/dist/components.min.css +6 -4
- package/dist/global/baseline.css +4 -2
- package/dist/global/baseline.min.css +1 -1
- package/dist/global/tokens.css +1 -1
- package/dist/global/tokens.min.css +1 -1
- package/dist/index.css +1630 -57
- package/dist/index.min.css +6 -5
- package/dropdown.css +1 -1
- package/form/combobox.css +2 -2
- package/form/fieldset.css +2 -2
- package/form/radio-checkbox.css +16 -22
- package/form/search.css +3 -3
- package/form/select.css +1 -1
- package/form/text-field.css +3 -3
- package/form/textarea.css +2 -2
- package/index.css +2 -0
- package/list.css +1 -0
- package/modal.css +6 -4
- package/package.json +3 -3
- package/primitives/stack.css +1 -2
- package/stepper.css +1 -2
- package/toggle-group.css +1 -1
package/dropdown.css
CHANGED
|
@@ -13,7 +13,7 @@
|
|
|
13
13
|
border-bottom: 1px solid var(--a-border-divider);
|
|
14
14
|
}
|
|
15
15
|
|
|
16
|
-
.navds-dropdown__menu > :not(.navds-dropdown__divider
|
|
16
|
+
.navds-dropdown__menu > :not(.navds-dropdown__divider, .navds-dropdown__list) {
|
|
17
17
|
margin: 0 var(--a-spacing-4) var(--a-spacing-3);
|
|
18
18
|
}
|
|
19
19
|
|
package/form/combobox.css
CHANGED
|
@@ -81,13 +81,13 @@
|
|
|
81
81
|
cursor: text;
|
|
82
82
|
}
|
|
83
83
|
|
|
84
|
-
.navds-combobox--error .navds-text-field__input:not(:hover
|
|
84
|
+
.navds-combobox--error .navds-text-field__input:not(:hover, :disabled) {
|
|
85
85
|
border-color: var(--ac-combobox-error-border, var(--a-border-danger));
|
|
86
86
|
box-shadow: 0 0 0 1px var(--ac-combobox-error-border, var(--a-border-danger));
|
|
87
87
|
}
|
|
88
88
|
|
|
89
89
|
.navds-combobox--error
|
|
90
|
-
.navds-text-field__input:not(:hover
|
|
90
|
+
.navds-text-field__input:not(:hover, :disabled, .navds-combobox__wrapper-inner--virtually-unfocused):focus-within {
|
|
91
91
|
outline: 2px solid transparent;
|
|
92
92
|
outline-offset: 2px;
|
|
93
93
|
box-shadow:
|
package/form/fieldset.css
CHANGED
|
@@ -13,7 +13,7 @@
|
|
|
13
13
|
min-width: 0;
|
|
14
14
|
}
|
|
15
15
|
|
|
16
|
-
.navds-fieldset > :not(:first-child
|
|
16
|
+
.navds-fieldset > :not(:first-child, :empty) {
|
|
17
17
|
margin-top: var(--a-spacing-2);
|
|
18
18
|
}
|
|
19
19
|
|
|
@@ -26,7 +26,7 @@
|
|
|
26
26
|
}
|
|
27
27
|
|
|
28
28
|
/* Applied when hideLegend is applied to fieldset */
|
|
29
|
-
.navds-fieldset > .navds-sr-only + :not(:first-child
|
|
29
|
+
.navds-fieldset > .navds-sr-only + :not(:first-child, :empty) {
|
|
30
30
|
margin-top: 0;
|
|
31
31
|
}
|
|
32
32
|
|
package/form/radio-checkbox.css
CHANGED
|
@@ -170,44 +170,42 @@
|
|
|
170
170
|
color: var(--ac-radio-checkbox-action, var(--a-surface-action-hover));
|
|
171
171
|
}
|
|
172
172
|
|
|
173
|
-
.navds-checkbox__input:hover:not(:disabled
|
|
174
|
-
.navds-radio__input:hover:not(:disabled
|
|
173
|
+
.navds-checkbox__input:hover:not(:disabled, :checked, :indeterminate, :focus) + .navds-checkbox__label::before,
|
|
174
|
+
.navds-radio__input:hover:not(:disabled, :checked, :focus) + .navds-radio__label::before {
|
|
175
175
|
box-shadow: 0 0 0 2px var(--ac-radio-checkbox-action, var(--a-surface-action-hover));
|
|
176
176
|
}
|
|
177
177
|
|
|
178
|
-
.navds-checkbox__input:hover:not(:disabled
|
|
179
|
-
.navds-radio__input:hover:not(:disabled
|
|
178
|
+
.navds-checkbox__input:hover:not(:disabled, :checked, :indeterminate) + .navds-checkbox__label::before,
|
|
179
|
+
.navds-radio__input:hover:not(:disabled, :checked) + .navds-radio__label::before {
|
|
180
180
|
background-color: var(--ac-radio-checkbox-action-hover-bg, var(--a-surface-action-subtle));
|
|
181
181
|
}
|
|
182
182
|
|
|
183
|
-
.navds-checkbox--error
|
|
184
|
-
|
|
185
|
-
+ .navds-checkbox__label::before,
|
|
186
|
-
.navds-radio--error > .navds-radio__input:not(:hover):not(:disabled):not(:checked) + .navds-radio__label::before {
|
|
183
|
+
.navds-checkbox--error > .navds-checkbox__input:not(:hover, :disabled, :checked, :indeterminate) + .navds-checkbox__label::before,
|
|
184
|
+
.navds-radio--error > .navds-radio__input:not(:hover, :disabled, :checked) + .navds-radio__label::before {
|
|
187
185
|
box-shadow: 0 0 0 2px var(--ac-radio-checkbox-error-border, var(--a-border-danger));
|
|
188
186
|
}
|
|
189
187
|
|
|
190
188
|
.navds-checkbox--error
|
|
191
|
-
> .navds-checkbox__input:focus:not(:hover
|
|
189
|
+
> .navds-checkbox__input:focus:not(:hover, :disabled, :checked, :indeterminate)
|
|
192
190
|
+ .navds-checkbox__label::before,
|
|
193
|
-
.navds-radio--error > .navds-radio__input:focus:not(:hover
|
|
191
|
+
.navds-radio--error > .navds-radio__input:focus:not(:hover, :disabled, :checked) + .navds-radio__label::before {
|
|
194
192
|
box-shadow:
|
|
195
193
|
0 0 0 2px var(--ac-radio-checkbox-error-border, var(--a-border-danger)),
|
|
196
194
|
0 0 0 4px var(--a-border-focus);
|
|
197
195
|
}
|
|
198
196
|
|
|
199
197
|
.navds-checkbox--error
|
|
200
|
-
> .navds-checkbox__input:hover:not(:disabled
|
|
198
|
+
> .navds-checkbox__input:hover:not(:disabled, :checked, :indeterminate, :focus)
|
|
201
199
|
+ .navds-checkbox__label::before,
|
|
202
|
-
.navds-radio--error > .navds-radio__input:hover:not(:disabled
|
|
200
|
+
.navds-radio--error > .navds-radio__input:hover:not(:disabled, :checked, :focus) + .navds-radio__label::before {
|
|
203
201
|
background-color: var(--ac-radio-checkbox-error-hover-bg, var(--a-surface-danger-subtle));
|
|
204
202
|
box-shadow: 0 0 0 2px var(--ac-radio-checkbox-error-border, var(--a-border-danger));
|
|
205
203
|
}
|
|
206
204
|
|
|
207
205
|
.navds-checkbox--error
|
|
208
|
-
> .navds-checkbox__input:focus:hover:not(:disabled
|
|
206
|
+
> .navds-checkbox__input:focus:hover:not(:disabled, :checked, :indeterminate)
|
|
209
207
|
+ .navds-checkbox__label::before,
|
|
210
|
-
.navds-radio--error > .navds-radio__input:focus:hover:not(:disabled
|
|
208
|
+
.navds-radio--error > .navds-radio__input:focus:hover:not(:disabled, :checked) + .navds-radio__label::before {
|
|
211
209
|
background-color: var(--ac-radio-checkbox-error-hover-bg, var(--a-surface-danger-subtle));
|
|
212
210
|
box-shadow:
|
|
213
211
|
0 0 0 2px var(--ac-radio-checkbox-error-border, var(--a-border-danger)),
|
|
@@ -241,14 +239,10 @@
|
|
|
241
239
|
color: var(--a-text-default);
|
|
242
240
|
}
|
|
243
241
|
|
|
244
|
-
.navds-checkbox--readonly
|
|
245
|
-
|
|
246
|
-
|
|
247
|
-
.navds-
|
|
248
|
-
> .navds-checkbox__input:hover:not(:checked):not(:indeterminate):not(:focus)
|
|
249
|
-
+ .navds-checkbox__label::before,
|
|
250
|
-
.navds-radio--readonly > .navds-radio__input:not(:disabled):not(:checked) + .navds-radio__label::before,
|
|
251
|
-
.navds-radio--readonly > .navds-radio__input:hover:not(:checked):not(:focus) + .navds-radio__label::before {
|
|
242
|
+
.navds-checkbox--readonly > .navds-checkbox__input:not(:disabled, :checked, :indeterminate) + .navds-checkbox__label::before,
|
|
243
|
+
.navds-checkbox--readonly > .navds-checkbox__input:hover:not(:checked, :indeterminate, :focus) + .navds-checkbox__label::before,
|
|
244
|
+
.navds-radio--readonly > .navds-radio__input:not(:disabled, :checked) + .navds-radio__label::before,
|
|
245
|
+
.navds-radio--readonly > .navds-radio__input:hover:not(:checked, :focus) + .navds-radio__label::before {
|
|
252
246
|
background-color: var(--__ac-radio-checkbox-readonly-bg);
|
|
253
247
|
box-shadow: 0 0 0 2px var(--__ac-radio-checkbox-readonly-border);
|
|
254
248
|
}
|
package/form/search.css
CHANGED
|
@@ -186,12 +186,12 @@
|
|
|
186
186
|
}
|
|
187
187
|
|
|
188
188
|
/* Error-handling */
|
|
189
|
-
.navds-search--error .navds-search__input:not(:hover
|
|
189
|
+
.navds-search--error .navds-search__input:not(:hover, :disabled) {
|
|
190
190
|
border-color: var(--ac-search-error-border, var(--__ac-search-error-border, var(--a-border-danger)));
|
|
191
191
|
box-shadow: inset 0 0 0 1px var(--ac-search-error-border, var(--__ac-search-error-border, var(--a-border-danger)));
|
|
192
192
|
}
|
|
193
193
|
|
|
194
|
-
.navds-search--error .navds-search__input:focus-visible:not(:hover
|
|
194
|
+
.navds-search--error .navds-search__input:focus-visible:not(:hover, :disabled) {
|
|
195
195
|
box-shadow:
|
|
196
196
|
inset 0 0 0 1px var(--ac-search-error-border, var(--__ac-search-error-border, var(--a-border-danger))),
|
|
197
197
|
var(--a-shadow-focus);
|
|
@@ -205,7 +205,7 @@
|
|
|
205
205
|
}
|
|
206
206
|
|
|
207
207
|
@supports not selector(:focus-visible) {
|
|
208
|
-
.navds-search--error .navds-search__input:focus:not(:hover
|
|
208
|
+
.navds-search--error .navds-search__input:focus:not(:hover, :disabled) {
|
|
209
209
|
box-shadow:
|
|
210
210
|
inset 0 0 0 1px var(--ac-search-error-border, var(--__ac-search-error-border, var(--a-border-danger))),
|
|
211
211
|
var(--a-shadow-focus);
|
package/form/select.css
CHANGED
|
@@ -80,7 +80,7 @@
|
|
|
80
80
|
/**
|
|
81
81
|
Error handling
|
|
82
82
|
*/
|
|
83
|
-
.navds-select--error > * select:not(:hover
|
|
83
|
+
.navds-select--error > * select:not(:hover, :focus, :disabled) {
|
|
84
84
|
box-shadow: 0 0 0 1px var(--ac-select-error-border, var(--a-surface-danger));
|
|
85
85
|
border-color: var(--ac-select-error-border, var(--a-surface-danger));
|
|
86
86
|
}
|
package/form/text-field.css
CHANGED
|
@@ -61,19 +61,19 @@
|
|
|
61
61
|
/**
|
|
62
62
|
Error handling
|
|
63
63
|
*/
|
|
64
|
-
.navds-text-field--error > .navds-text-field__input:not(:hover
|
|
64
|
+
.navds-text-field--error > .navds-text-field__input:not(:hover, :disabled) {
|
|
65
65
|
border-color: var(--ac-textfield-error-border, var(--__ac-textfield-error-border, var(--a-border-danger)));
|
|
66
66
|
box-shadow: 0 0 0 1px var(--ac-textfield-error-border, var(--__ac-textfield-error-border, var(--a-border-danger)));
|
|
67
67
|
}
|
|
68
68
|
|
|
69
|
-
.navds-text-field--error > .navds-text-field__input:focus-visible:not(:hover
|
|
69
|
+
.navds-text-field--error > .navds-text-field__input:focus-visible:not(:hover, :disabled) {
|
|
70
70
|
box-shadow:
|
|
71
71
|
0 0 0 1px var(--a-border-danger),
|
|
72
72
|
var(--a-shadow-focus);
|
|
73
73
|
}
|
|
74
74
|
|
|
75
75
|
@supports not selector(:focus-visible) {
|
|
76
|
-
.navds-text-field--error > .navds-text-field__input:focus:not(:hover
|
|
76
|
+
.navds-text-field--error > .navds-text-field__input:focus:not(:hover, :disabled) {
|
|
77
77
|
box-shadow:
|
|
78
78
|
0 0 0 1px var(--a-border-danger),
|
|
79
79
|
var(--a-shadow-focus);
|
package/form/textarea.css
CHANGED
|
@@ -111,13 +111,13 @@
|
|
|
111
111
|
/**
|
|
112
112
|
Error handling
|
|
113
113
|
*/
|
|
114
|
-
.navds-textarea--error .navds-textarea__input:not(:hover
|
|
114
|
+
.navds-textarea--error .navds-textarea__input:not(:hover, :focus-visible, :disabled) {
|
|
115
115
|
box-shadow: 0 0 0 1px var(--ac-textarea-error-border, var(--__ac-textarea-error-border, var(--a-border-danger)));
|
|
116
116
|
border-color: var(--ac-textarea-error-border, var(--__ac-textarea-error-border, var(--a-border-danger)));
|
|
117
117
|
}
|
|
118
118
|
|
|
119
119
|
@supports not selector(:focus-visible) {
|
|
120
|
-
.navds-textarea--error .navds-textarea__input:not(:hover
|
|
120
|
+
.navds-textarea--error .navds-textarea__input:not(:hover, :focus, :disabled) {
|
|
121
121
|
box-shadow: 0 0 0 1px var(--ac-textarea-error-border, var(--__ac-textarea-error-border, var(--a-border-danger)));
|
|
122
122
|
border-color: var(--ac-textarea-error-border, var(--__ac-textarea-error-border, var(--a-border-danger)));
|
|
123
123
|
}
|
package/index.css
CHANGED
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
@charset "UTF-8";
|
|
2
|
+
|
|
2
3
|
@import "baseline/index.css";
|
|
3
4
|
@import "typography.css";
|
|
4
5
|
@import "accordion.css";
|
|
@@ -8,6 +9,7 @@
|
|
|
8
9
|
@import "chips.css";
|
|
9
10
|
@import "copybutton.css";
|
|
10
11
|
@import "dropdown.css";
|
|
12
|
+
@import "action-menu.css";
|
|
11
13
|
@import "expansioncard.css";
|
|
12
14
|
@import "guide-panel.css";
|
|
13
15
|
@import "form/index.css";
|
package/list.css
CHANGED
package/modal.css
CHANGED
|
@@ -46,8 +46,9 @@
|
|
|
46
46
|
/* From polyfill */
|
|
47
47
|
position: fixed;
|
|
48
48
|
top: 0;
|
|
49
|
-
right: 0;
|
|
50
49
|
bottom: 0;
|
|
50
|
+
right: 0;
|
|
51
|
+
/* stylelint-disable-next-line declaration-block-no-redundant-longhand-properties */
|
|
51
52
|
left: 0;
|
|
52
53
|
}
|
|
53
54
|
|
|
@@ -96,8 +97,9 @@
|
|
|
96
97
|
/* From polyfill: */
|
|
97
98
|
position: fixed;
|
|
98
99
|
top: 0;
|
|
99
|
-
right: 0;
|
|
100
100
|
bottom: 0;
|
|
101
|
+
right: 0;
|
|
102
|
+
/* stylelint-disable-next-line declaration-block-no-redundant-longhand-properties */
|
|
101
103
|
left: 0;
|
|
102
104
|
}
|
|
103
105
|
|
|
@@ -176,7 +178,7 @@
|
|
|
176
178
|
}
|
|
177
179
|
|
|
178
180
|
@keyframes akselModalFadeIn {
|
|
179
|
-
|
|
181
|
+
0% {
|
|
180
182
|
opacity: 0.0001; /* Safari will not set focus inside the modal when it opens if we set this to 0 */
|
|
181
183
|
transform: translate3d(0, calc(5% + 4px), 0);
|
|
182
184
|
}
|
|
@@ -185,7 +187,7 @@
|
|
|
185
187
|
opacity: 1;
|
|
186
188
|
}
|
|
187
189
|
|
|
188
|
-
|
|
190
|
+
100% {
|
|
189
191
|
transform: none;
|
|
190
192
|
}
|
|
191
193
|
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@navikt/ds-css",
|
|
3
|
-
"version": "7.
|
|
3
|
+
"version": "7.3.1",
|
|
4
4
|
"description": "CSS for NAV Designsystem",
|
|
5
5
|
"author": "Aksel | NAV designsystem team",
|
|
6
6
|
"keywords": [
|
|
@@ -27,11 +27,11 @@
|
|
|
27
27
|
"css:get-version": "node config/get-version.js"
|
|
28
28
|
},
|
|
29
29
|
"devDependencies": {
|
|
30
|
-
"@navikt/ds-tokens": "^7.
|
|
30
|
+
"@navikt/ds-tokens": "^7.3.1",
|
|
31
31
|
"autoprefixer": "^10.4.20",
|
|
32
32
|
"cssnano": "6.0.0",
|
|
33
33
|
"fast-glob": "3.2.11",
|
|
34
|
-
"lodash": "4.17.21",
|
|
34
|
+
"lodash": "^4.17.21",
|
|
35
35
|
"nodemon": "^3.0.1",
|
|
36
36
|
"normalize.css": "^8.0.1",
|
|
37
37
|
"postcss": "^8.4.31",
|
package/primitives/stack.css
CHANGED
package/stepper.css
CHANGED
|
@@ -203,8 +203,7 @@ button.navds-stepper__step {
|
|
|
203
203
|
grid-template-columns:
|
|
204
204
|
[content-start] auto [circle] var(--navds-stepper-circle-size)
|
|
205
205
|
[content-end] auto;
|
|
206
|
-
|
|
207
|
-
align-items: center;
|
|
206
|
+
place-items: center center;
|
|
208
207
|
margin-bottom: 0;
|
|
209
208
|
}
|
|
210
209
|
|