@navikt/ds-css 7.5.3 → 7.7.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 +20 -0
- package/darkside/action-menu.darkside.css +1 -6
- package/darkside/alert.darkside.css +2 -2
- package/darkside/button.darkside.css +134 -149
- package/darkside/chat.darkside.css +2 -2
- package/darkside/date.darkside.css +171 -232
- package/darkside/expansioncard.darkside.css +3 -9
- package/darkside/form/combobox.darkside.css +12 -20
- package/darkside/form/error-summary.darkside.css +2 -2
- package/darkside/form/file-upload.darkside.css +12 -13
- package/darkside/form/form-progress.darkside.css +1 -1
- package/darkside/form/form-summary.darkside.css +3 -2
- package/darkside/form/index.css +14 -16
- package/darkside/form/search.darkside.css +82 -160
- package/darkside/form/select.darkside.css +74 -68
- package/darkside/form/switch.darkside.css +125 -132
- package/darkside/form/text-field.darkside.css +2 -2
- package/darkside/form/textarea.darkside.css +36 -78
- package/darkside/help-text.darkside.css +0 -6
- package/darkside/index.css +23 -14
- package/darkside/internalheader.darkside.css +45 -49
- package/darkside/modal.darkside.css +7 -10
- package/darkside/popover.darkside.css +2 -5
- package/darkside/primitives/base.darkside.css +350 -350
- package/darkside/primitives/bleed.darkside.css +52 -52
- package/darkside/primitives/box.darkside.css +21 -21
- package/darkside/primitives/hgrid.darkside.css +28 -28
- package/darkside/primitives/index.css +7 -36
- package/darkside/primitives/page.darkside.css +6 -9
- package/darkside/primitives/stack.darkside.css +58 -58
- package/darkside/read-more.darkside.css +68 -57
- package/darkside/skeleton.darkside.css +21 -24
- package/darkside/stepper.darkside.css +181 -221
- package/darkside/tabs.darkside.css +67 -74
- package/darkside/toggle-group.darkside.css +52 -120
- package/dist/component/form.css +22 -18
- package/dist/component/form.min.css +2 -2
- package/dist/component/index.css +40 -22
- package/dist/component/index.min.css +3 -3
- package/dist/component/modal.css +8 -0
- package/dist/component/modal.min.css +1 -1
- package/dist/component/readmore.css +4 -0
- package/dist/component/readmore.min.css +1 -1
- package/dist/components.css +40 -22
- package/dist/components.min.css +3 -3
- package/dist/global/tokens.css +1 -1
- package/dist/global/tokens.min.css +1 -1
- package/dist/index.css +40 -22
- package/dist/index.min.css +3 -3
- package/form/combobox.css +9 -2
- package/form/file-upload.css +7 -9
- package/form/select.css +2 -9
- package/form/switch.css +8 -0
- package/modal.css +8 -0
- package/package.json +2 -2
- package/read-more.css +4 -0
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,25 @@
|
|
|
1
1
|
# @navikt/ds-css
|
|
2
2
|
|
|
3
|
+
## 7.7.0
|
|
4
|
+
|
|
5
|
+
## 7.6.0
|
|
6
|
+
|
|
7
|
+
### Minor Changes
|
|
8
|
+
|
|
9
|
+
- ReadMore: Added size 'large'. ([#3372](https://github.com/navikt/aksel/pull/3372))
|
|
10
|
+
|
|
11
|
+
### Patch Changes
|
|
12
|
+
|
|
13
|
+
- Select: Now shows focus-outline when ':focus' is set trough pointer or label in all browsers. Chrome and Firefox handles `:focus-visible` differently for 'select', previously causing outline-border not to show in Firefox. ([#3415](https://github.com/navikt/aksel/pull/3415))
|
|
14
|
+
|
|
15
|
+
- Modal: Don't add scroll shadow when polyfilled ([#3408](https://github.com/navikt/aksel/pull/3408))
|
|
16
|
+
|
|
17
|
+
- Modal: Now shows up while screensharing with Vergic ([#3407](https://github.com/navikt/aksel/pull/3407))
|
|
18
|
+
|
|
19
|
+
- FileUpload: Remove browser styling from FileUpload.Item when used in list. ([#3413](https://github.com/navikt/aksel/pull/3413))
|
|
20
|
+
|
|
21
|
+
- Combobox: Single-select now shows cursor closer to selected item. ([#3384](https://github.com/navikt/aksel/pull/3384))
|
|
22
|
+
|
|
3
23
|
## 7.5.3
|
|
4
24
|
|
|
5
25
|
## 7.5.2
|
|
@@ -3,12 +3,7 @@
|
|
|
3
3
|
overflow: hidden;
|
|
4
4
|
border-radius: var(--ax-border-radius-large);
|
|
5
5
|
border: 1px solid var(--ax-border-subtleA);
|
|
6
|
-
|
|
7
|
-
/* TODO: Use token here when added */
|
|
8
|
-
box-shadow:
|
|
9
|
-
0 0 1px 0 rgb(7 9 13/ 0.02),
|
|
10
|
-
0 2px 5px 0 rgb(7 9 13/ 0.1),
|
|
11
|
-
0 10px 16px 0 rgb(7 9 13/ 0.12);
|
|
6
|
+
box-shadow: var(--ax-shadow-dialog);
|
|
12
7
|
transition: transform 250ms cubic-bezier(0, 0, 0, 1) allow-discrete;
|
|
13
8
|
|
|
14
9
|
&[data-state="open"] {
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
.navds-alert {
|
|
2
2
|
border-radius: var(--ax-border-radius-xlarge);
|
|
3
3
|
border: 1px solid;
|
|
4
|
-
padding: var(--ax-spacing-4);
|
|
4
|
+
padding: var(--ax-spacing-4) var(--ax-spacing-5);
|
|
5
5
|
display: flex;
|
|
6
6
|
gap: var(--ax-spacing-3);
|
|
7
7
|
align-items: center;
|
|
@@ -25,7 +25,7 @@
|
|
|
25
25
|
}
|
|
26
26
|
|
|
27
27
|
.navds-alert--small {
|
|
28
|
-
padding: var(--ax-spacing-
|
|
28
|
+
padding: var(--ax-spacing-3) var(--ax-spacing-4);
|
|
29
29
|
gap: var(--ax-spacing-2);
|
|
30
30
|
|
|
31
31
|
> .navds-alert__icon {
|
|
@@ -1,4 +1,9 @@
|
|
|
1
1
|
.navds-button {
|
|
2
|
+
--__axc-button-icon-size: 1.5rem;
|
|
3
|
+
--__axc-button-icon-margin: -4px;
|
|
4
|
+
--__axc-button-border-color: transparent;
|
|
5
|
+
--__axc-button-border-width: 2px;
|
|
6
|
+
|
|
2
7
|
padding: var(--ax-spacing-3) var(--ax-spacing-5);
|
|
3
8
|
border-radius: var(--ax-border-radius-medium);
|
|
4
9
|
display: inline-flex;
|
|
@@ -9,6 +14,18 @@
|
|
|
9
14
|
align-items: center;
|
|
10
15
|
justify-content: center;
|
|
11
16
|
gap: var(--ax-spacing-2);
|
|
17
|
+
box-shadow: inset 0 0 0 var(--__axc-button-border-width) var(--__axc-button-border-color);
|
|
18
|
+
|
|
19
|
+
&:focus-visible {
|
|
20
|
+
outline: 2px solid var(--ax-border-focus);
|
|
21
|
+
outline-offset: 2px;
|
|
22
|
+
}
|
|
23
|
+
}
|
|
24
|
+
|
|
25
|
+
.navds-button--small,
|
|
26
|
+
.navds-button--xsmall {
|
|
27
|
+
--__axc-button-icon-margin: -2px;
|
|
28
|
+
--__axc-button-icon-size: 1.25rem;
|
|
12
29
|
}
|
|
13
30
|
|
|
14
31
|
.navds-button--small {
|
|
@@ -24,19 +41,14 @@
|
|
|
24
41
|
|
|
25
42
|
.navds-button--icon-only {
|
|
26
43
|
padding: var(--ax-spacing-3);
|
|
27
|
-
}
|
|
28
44
|
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
}
|
|
32
|
-
|
|
33
|
-
.navds-button--xsmall.navds-button--icon-only {
|
|
34
|
-
padding: var(--ax-spacing-05);
|
|
35
|
-
}
|
|
45
|
+
&.navds-button--small {
|
|
46
|
+
padding: var(--ax-spacing-1);
|
|
47
|
+
}
|
|
36
48
|
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
49
|
+
&.navds-button--xsmall {
|
|
50
|
+
padding: var(--ax-spacing-05);
|
|
51
|
+
}
|
|
40
52
|
}
|
|
41
53
|
|
|
42
54
|
@supports not selector(:focus-visible) {
|
|
@@ -46,224 +58,197 @@
|
|
|
46
58
|
}
|
|
47
59
|
|
|
48
60
|
.navds-button__icon {
|
|
49
|
-
font-size:
|
|
61
|
+
font-size: var(--__axc-button-icon-size);
|
|
50
62
|
display: flex;
|
|
51
63
|
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
.navds-button__icon:first-child {
|
|
56
|
-
margin-left: var(--__axc-button-icon-margin);
|
|
57
|
-
}
|
|
58
|
-
|
|
59
|
-
.navds-button__icon:last-child {
|
|
60
|
-
margin-right: var(--__axc-button-icon-margin);
|
|
61
|
-
}
|
|
62
|
-
|
|
63
|
-
:where(.navds-button--xsmall, .navds-button--small) .navds-button__icon {
|
|
64
|
-
--__axc-button-icon-margin: -2px;
|
|
64
|
+
&:first-child {
|
|
65
|
+
margin-left: var(--__axc-button-icon-margin);
|
|
66
|
+
}
|
|
65
67
|
|
|
66
|
-
|
|
67
|
-
|
|
68
|
+
&:last-child {
|
|
69
|
+
margin-right: var(--__axc-button-icon-margin);
|
|
70
|
+
}
|
|
68
71
|
|
|
69
|
-
|
|
70
|
-
|
|
72
|
+
&:only-child {
|
|
73
|
+
margin: 0;
|
|
74
|
+
}
|
|
71
75
|
}
|
|
72
76
|
|
|
73
77
|
/*************************
|
|
74
78
|
* .navds-button--primary *
|
|
75
79
|
*************************/
|
|
76
|
-
|
|
77
80
|
.navds-button--primary {
|
|
78
81
|
background-color: var(--ax-bg-accent-strong);
|
|
79
82
|
color: var(--ax-text-accent-contrast);
|
|
80
|
-
}
|
|
81
83
|
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
background-color: highlight;
|
|
85
|
-
color: highlighttext;
|
|
84
|
+
&:hover {
|
|
85
|
+
background-color: var(--ax-bg-accent-strong-hover);
|
|
86
86
|
}
|
|
87
87
|
|
|
88
|
-
|
|
89
|
-
|
|
88
|
+
&:active {
|
|
89
|
+
background-color: var(--ax-bg-accent-strong-pressed);
|
|
90
90
|
}
|
|
91
|
-
}
|
|
92
91
|
|
|
93
|
-
.navds-button--
|
|
94
|
-
|
|
95
|
-
}
|
|
92
|
+
&:is(:disabled, .navds-button--disabled) {
|
|
93
|
+
background-color: var(--ax-bg-accent-strong);
|
|
94
|
+
}
|
|
96
95
|
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
96
|
+
@media (forced-colors: active) {
|
|
97
|
+
&:not(:disabled) {
|
|
98
|
+
background-color: highlight;
|
|
99
|
+
color: highlighttext;
|
|
100
|
+
}
|
|
100
101
|
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
|
|
102
|
+
& span {
|
|
103
|
+
forced-color-adjust: none;
|
|
104
|
+
}
|
|
105
|
+
}
|
|
104
106
|
}
|
|
105
107
|
|
|
106
108
|
/*************************
|
|
107
109
|
* .navds-button--primary-neutral *
|
|
108
110
|
*************************/
|
|
109
|
-
|
|
110
111
|
.navds-button--primary-neutral {
|
|
111
112
|
background-color: var(--ax-bg-neutral-strong);
|
|
112
113
|
color: var(--ax-text-neutral-contrast);
|
|
113
|
-
}
|
|
114
114
|
|
|
115
|
-
|
|
116
|
-
|
|
117
|
-
}
|
|
115
|
+
&:hover {
|
|
116
|
+
background-color: var(--ax-bg-neutral-strong-hover);
|
|
117
|
+
}
|
|
118
118
|
|
|
119
|
-
|
|
120
|
-
|
|
121
|
-
}
|
|
119
|
+
&:active {
|
|
120
|
+
background-color: var(--ax-bg-neutral-strong-pressed);
|
|
121
|
+
}
|
|
122
122
|
|
|
123
|
-
|
|
124
|
-
|
|
125
|
-
|
|
123
|
+
&:is(:disabled, .navds-button--disabled) {
|
|
124
|
+
background-color: var(--ax-bg-neutral-strong);
|
|
125
|
+
}
|
|
126
126
|
}
|
|
127
127
|
|
|
128
128
|
/**************************
|
|
129
129
|
* .navds-button--secondary *
|
|
130
130
|
**************************/
|
|
131
|
-
|
|
132
131
|
.navds-button--secondary {
|
|
132
|
+
--__axc-button-border-color: var(--ax-border-accent);
|
|
133
|
+
|
|
133
134
|
background-color: transparent;
|
|
134
135
|
color: var(--ax-text-accent);
|
|
135
|
-
box-shadow: inset 0 0 0 2px var(--ax-border-accent);
|
|
136
|
-
}
|
|
137
136
|
|
|
138
|
-
|
|
139
|
-
|
|
140
|
-
color: var(--ax-text-accent-strong);
|
|
141
|
-
box-shadow: inset 0 0 0 2px var(--ax-bg-accent-strong-hover);
|
|
142
|
-
}
|
|
137
|
+
&:hover {
|
|
138
|
+
--__axc-button-border-color: var(--ax-border-accent-strong);
|
|
143
139
|
|
|
144
|
-
|
|
145
|
-
|
|
146
|
-
|
|
147
|
-
box-shadow: none;
|
|
148
|
-
}
|
|
140
|
+
background-color: var(--ax-bg-accent-moderate-hoverA);
|
|
141
|
+
color: var(--ax-text-accent-strong);
|
|
142
|
+
}
|
|
149
143
|
|
|
150
|
-
|
|
151
|
-
|
|
152
|
-
|
|
153
|
-
|
|
144
|
+
&:active {
|
|
145
|
+
--__axc-button-border-color: transparent;
|
|
146
|
+
|
|
147
|
+
background-color: var(--ax-bg-accent-strong-pressed);
|
|
148
|
+
color: var(--ax-text-accent-contrast);
|
|
149
|
+
}
|
|
150
|
+
|
|
151
|
+
&:is(:disabled, .navds-button--disabled) {
|
|
152
|
+
--__axc-button-border-color: var(--ax-border-accent);
|
|
153
|
+
|
|
154
|
+
background-color: transparent;
|
|
155
|
+
color: var(--ax-text-accent);
|
|
156
|
+
}
|
|
154
157
|
}
|
|
155
158
|
|
|
156
159
|
/**************************
|
|
157
160
|
* .navds-button--secondary-neutral *
|
|
158
161
|
**************************/
|
|
159
|
-
|
|
160
162
|
.navds-button--secondary-neutral {
|
|
163
|
+
--__axc-button-border-color: var(--ax-border-default);
|
|
164
|
+
|
|
161
165
|
background-color: transparent;
|
|
162
|
-
color: var(--ax-text-
|
|
163
|
-
box-shadow: inset 0 0 0 2px var(--ax-border-neutral);
|
|
164
|
-
}
|
|
166
|
+
color: var(--ax-text-default);
|
|
165
167
|
|
|
166
|
-
|
|
167
|
-
|
|
168
|
-
color: var(--ax-text-neutral-strong);
|
|
169
|
-
}
|
|
168
|
+
&:hover {
|
|
169
|
+
--__axc-button-border-color: var(--ax-border-strong);
|
|
170
170
|
|
|
171
|
-
|
|
172
|
-
|
|
173
|
-
background-color: var(--ax-bg-neutral-strong-pressed);
|
|
174
|
-
box-shadow: none;
|
|
175
|
-
}
|
|
171
|
+
background-color: var(--ax-bg-neutral-moderate-hoverA);
|
|
172
|
+
}
|
|
176
173
|
|
|
177
|
-
|
|
178
|
-
|
|
179
|
-
|
|
180
|
-
|
|
181
|
-
|
|
174
|
+
&:active {
|
|
175
|
+
--__axc-button-border-color: transparent;
|
|
176
|
+
|
|
177
|
+
color: var(--ax-text-neutral-contrast);
|
|
178
|
+
background-color: var(--ax-bg-neutral-strong-pressed);
|
|
179
|
+
}
|
|
180
|
+
|
|
181
|
+
&:is(:disabled, .navds-button--disabled) {
|
|
182
|
+
--__axc-button-border-color: var(--ax-border-neutral);
|
|
183
|
+
|
|
184
|
+
color: var(--ax-text-default);
|
|
185
|
+
background-color: transparent;
|
|
186
|
+
}
|
|
182
187
|
}
|
|
183
188
|
|
|
184
189
|
/****************************
|
|
185
190
|
* .navds-button--tertiary *
|
|
186
191
|
****************************/
|
|
187
|
-
|
|
188
192
|
.navds-button--tertiary {
|
|
189
193
|
background-color: transparent;
|
|
190
194
|
color: var(--ax-text-accent);
|
|
191
|
-
}
|
|
192
|
-
|
|
193
|
-
.navds-button--tertiary:hover {
|
|
194
|
-
background-color: var(--ax-bg-accent-hoverA);
|
|
195
|
-
color: var(--ax-text-accent-strong);
|
|
196
|
-
}
|
|
197
195
|
|
|
198
|
-
|
|
199
|
-
|
|
200
|
-
|
|
201
|
-
}
|
|
196
|
+
&:hover {
|
|
197
|
+
background-color: var(--ax-bg-accent-moderate-hoverA);
|
|
198
|
+
color: var(--ax-text-accent-strong);
|
|
199
|
+
}
|
|
202
200
|
|
|
203
|
-
|
|
204
|
-
|
|
205
|
-
|
|
201
|
+
&:active {
|
|
202
|
+
background-color: var(--ax-bg-accent-strong-pressed);
|
|
203
|
+
color: var(--ax-text-accent-contrast);
|
|
204
|
+
}
|
|
206
205
|
|
|
207
|
-
|
|
208
|
-
|
|
209
|
-
|
|
210
|
-
|
|
211
|
-
color: var(--ax-text-accent);
|
|
212
|
-
background: none;
|
|
213
|
-
box-shadow: none;
|
|
206
|
+
&:is(:disabled, .navds-button--disabled) {
|
|
207
|
+
color: var(--ax-text-accent);
|
|
208
|
+
background-color: transparent;
|
|
209
|
+
}
|
|
214
210
|
}
|
|
215
211
|
|
|
216
212
|
/****************************
|
|
217
213
|
* .navds-button--tertiary-neutral *
|
|
218
214
|
****************************/
|
|
219
|
-
|
|
220
215
|
.navds-button--tertiary-neutral {
|
|
221
|
-
color:
|
|
222
|
-
|
|
223
|
-
|
|
224
|
-
.navds-button--tertiary-neutral:hover {
|
|
225
|
-
background-color: var(--ax-bg-neutral-hoverA);
|
|
226
|
-
color: var(--ax-text-neutral-strong);
|
|
227
|
-
}
|
|
216
|
+
background-color: transparent;
|
|
217
|
+
color: var(--ax-text-default);
|
|
228
218
|
|
|
229
|
-
|
|
230
|
-
|
|
231
|
-
|
|
232
|
-
}
|
|
219
|
+
&:hover {
|
|
220
|
+
background-color: var(--ax-bg-neutral-moderate-hoverA);
|
|
221
|
+
}
|
|
233
222
|
|
|
234
|
-
|
|
235
|
-
|
|
236
|
-
|
|
223
|
+
&:active {
|
|
224
|
+
background-color: var(--ax-bg-neutral-strong-pressed);
|
|
225
|
+
color: var(--ax-text-neutral-contrast);
|
|
226
|
+
}
|
|
237
227
|
|
|
238
|
-
|
|
239
|
-
|
|
240
|
-
|
|
241
|
-
|
|
242
|
-
color: var(--ax-text-default);
|
|
243
|
-
background: none;
|
|
244
|
-
box-shadow: none;
|
|
228
|
+
&:is(:disabled, .navds-button--disabled) {
|
|
229
|
+
color: var(--ax-text-default);
|
|
230
|
+
background-color: transparent;
|
|
231
|
+
}
|
|
245
232
|
}
|
|
246
233
|
|
|
247
234
|
/*************************
|
|
248
235
|
* .navds-button--danger *
|
|
249
236
|
*************************/
|
|
250
|
-
|
|
251
237
|
.navds-button--danger {
|
|
252
238
|
background-color: var(--ax-bg-danger-strong);
|
|
253
239
|
color: var(--ax-text-danger-contrast);
|
|
254
|
-
}
|
|
255
240
|
|
|
256
|
-
|
|
257
|
-
|
|
258
|
-
}
|
|
241
|
+
&:hover {
|
|
242
|
+
background-color: var(--ax-bg-danger-strong-hover);
|
|
243
|
+
}
|
|
259
244
|
|
|
260
|
-
|
|
261
|
-
|
|
262
|
-
}
|
|
245
|
+
&:active {
|
|
246
|
+
background-color: var(--ax-bg-danger-strong-pressed);
|
|
247
|
+
}
|
|
263
248
|
|
|
264
|
-
|
|
265
|
-
|
|
266
|
-
|
|
249
|
+
&:is(:disabled, .navds-button--disabled) {
|
|
250
|
+
background-color: var(--ax-bg-danger-strong);
|
|
251
|
+
}
|
|
267
252
|
}
|
|
268
253
|
|
|
269
254
|
/**************************
|
|
@@ -300,14 +285,14 @@
|
|
|
300
285
|
background-color: ButtonFace;
|
|
301
286
|
}
|
|
302
287
|
|
|
303
|
-
.navds-button:hover {
|
|
288
|
+
.navds-button:not(:disabled):hover {
|
|
304
289
|
background-color: highlighttext;
|
|
305
290
|
border-color: highlight;
|
|
306
291
|
color: highlight;
|
|
307
292
|
box-shadow: none;
|
|
308
293
|
}
|
|
309
294
|
|
|
310
|
-
.navds-button:hover span {
|
|
295
|
+
.navds-button:not(:disabled):hover span {
|
|
311
296
|
forced-color-adjust: none;
|
|
312
297
|
}
|
|
313
298
|
|
|
@@ -54,7 +54,7 @@
|
|
|
54
54
|
}
|
|
55
55
|
|
|
56
56
|
.navds-chat__bubble {
|
|
57
|
-
padding: var(--ax-spacing-4);
|
|
57
|
+
padding: var(--ax-spacing-4) var(--ax-spacing-5);
|
|
58
58
|
width: fit-content;
|
|
59
59
|
background-color: var(--ax-bg-raised);
|
|
60
60
|
display: flex;
|
|
@@ -66,7 +66,7 @@
|
|
|
66
66
|
}
|
|
67
67
|
|
|
68
68
|
.navds-chat--small .navds-chat__bubble {
|
|
69
|
-
padding: var(--ax-spacing-3);
|
|
69
|
+
padding: var(--ax-spacing-3) var(--ax-spacing-4);
|
|
70
70
|
}
|
|
71
71
|
|
|
72
72
|
/* -------------------------- Chat bubble variants -------------------------- */
|