@navikt/ds-css 1.2.5 → 1.3.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/dist/index.css +57 -8
- package/package.json +3 -3
- package/stepper.css +61 -3
- package/toggle-group.css +6 -4
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@navikt/ds-css",
|
|
3
|
-
"version": "1.
|
|
3
|
+
"version": "1.3.0",
|
|
4
4
|
"description": "Css for NAV Designsystem components",
|
|
5
5
|
"author": "NAV Designsystem team",
|
|
6
6
|
"keywords": [
|
|
@@ -20,12 +20,12 @@
|
|
|
20
20
|
"watch": "postcss --watch --use postcss-import -o dist/index.css index.css"
|
|
21
21
|
},
|
|
22
22
|
"devDependencies": {
|
|
23
|
-
"@navikt/ds-tokens": "^1.
|
|
23
|
+
"@navikt/ds-tokens": "^1.3.0",
|
|
24
24
|
"normalize.css": "^8.0.1",
|
|
25
25
|
"postcss": "^8.3.6",
|
|
26
26
|
"postcss-cli": "^8.3.1",
|
|
27
27
|
"postcss-combine-duplicated-selectors": "10.0.3",
|
|
28
28
|
"postcss-import": "^14.0.2"
|
|
29
29
|
},
|
|
30
|
-
"gitHead": "
|
|
30
|
+
"gitHead": "01a6f250da8c41fc4338fcd951ae5bc148e39b46"
|
|
31
31
|
}
|
package/stepper.css
CHANGED
|
@@ -36,6 +36,11 @@
|
|
|
36
36
|
grid-column: 1;
|
|
37
37
|
}
|
|
38
38
|
|
|
39
|
+
.navds-stepper__step--behind.navds-stepper__step--completed
|
|
40
|
+
+ .navds-stepper__line {
|
|
41
|
+
background-color: var(--navds-global-color-blue-500);
|
|
42
|
+
}
|
|
43
|
+
|
|
39
44
|
.navds-stepper__line--1 {
|
|
40
45
|
grid-row: line-1;
|
|
41
46
|
display: none;
|
|
@@ -55,7 +60,6 @@
|
|
|
55
60
|
display: grid;
|
|
56
61
|
grid-template-columns: [circle] var(--navds-stepper-circle-size) [content] auto;
|
|
57
62
|
gap: var(--navds-spacing-2);
|
|
58
|
-
align-items: baseline;
|
|
59
63
|
justify-content: flex-start;
|
|
60
64
|
text-decoration: none;
|
|
61
65
|
cursor: pointer;
|
|
@@ -73,6 +77,11 @@ button.navds-stepper__step {
|
|
|
73
77
|
text-align: inherit;
|
|
74
78
|
}
|
|
75
79
|
|
|
80
|
+
.navds-stepper__step--non-interactive {
|
|
81
|
+
color: var(--navds-global-color-gray-600);
|
|
82
|
+
cursor: default;
|
|
83
|
+
}
|
|
84
|
+
|
|
76
85
|
:where(.navds-stepper__step):focus {
|
|
77
86
|
outline: none;
|
|
78
87
|
box-shadow: var(--navds-shadow-focus);
|
|
@@ -91,10 +100,17 @@ button.navds-stepper__step {
|
|
|
91
100
|
line-height: 1;
|
|
92
101
|
}
|
|
93
102
|
|
|
103
|
+
.navds-stepper__circle--success {
|
|
104
|
+
border: none;
|
|
105
|
+
background: none;
|
|
106
|
+
font-size: 28px;
|
|
107
|
+
}
|
|
108
|
+
|
|
94
109
|
.navds-stepper__content {
|
|
95
110
|
min-width: fit-content;
|
|
96
111
|
line-height: 1.5;
|
|
97
112
|
grid-column: content;
|
|
113
|
+
padding-top: 0.035rem;
|
|
98
114
|
}
|
|
99
115
|
|
|
100
116
|
/* Horizontal */
|
|
@@ -161,11 +177,15 @@ button.navds-stepper__step {
|
|
|
161
177
|
color: var(--navds-semantic-color-interaction-primary-selected);
|
|
162
178
|
}
|
|
163
179
|
|
|
164
|
-
:where(.navds-stepper__step:
|
|
165
|
-
.navds-stepper__content {
|
|
180
|
+
:where(.navds-stepper__step:hover) .navds-stepper__content {
|
|
166
181
|
text-decoration: underline;
|
|
167
182
|
}
|
|
168
183
|
|
|
184
|
+
:where(.navds-stepper__step--non-interactive:hover, .navds-stepper__step--active:hover)
|
|
185
|
+
.navds-stepper__content {
|
|
186
|
+
text-decoration: none;
|
|
187
|
+
}
|
|
188
|
+
|
|
169
189
|
:where(.navds-stepper__step--active) .navds-stepper__circle {
|
|
170
190
|
background-color: var(--navds-semantic-color-interaction-primary-selected);
|
|
171
191
|
border-color: var(--navds-semantic-color-interaction-primary-selected);
|
|
@@ -178,3 +198,41 @@ button.navds-stepper__step {
|
|
|
178
198
|
--navds-semantic-color-interaction-primary-hover-subtle
|
|
179
199
|
);
|
|
180
200
|
}
|
|
201
|
+
|
|
202
|
+
/* Non-interactive */
|
|
203
|
+
:where(.navds-stepper__step--non-interactive.navds-stepper__step--active)
|
|
204
|
+
.navds-stepper__content {
|
|
205
|
+
color: var(--navds-global-color-gray-900);
|
|
206
|
+
}
|
|
207
|
+
|
|
208
|
+
.navds-stepper__step--non-interactive.navds-stepper__step--behind.navds-stepper__step--completed
|
|
209
|
+
+ .navds-stepper__line {
|
|
210
|
+
background-color: var(--navds-global-color-gray-600);
|
|
211
|
+
}
|
|
212
|
+
|
|
213
|
+
:where(.navds-stepper__step--non-interactive.navds-stepper__step--active)
|
|
214
|
+
.navds-stepper__circle {
|
|
215
|
+
background-color: var(--navds-global-color-gray-900);
|
|
216
|
+
border-color: var(--navds-global-color-gray-900);
|
|
217
|
+
color: var(--navds-global-color-white);
|
|
218
|
+
}
|
|
219
|
+
|
|
220
|
+
:where(.navds-stepper__step--non-interactive:hover) .navds-stepper__circle {
|
|
221
|
+
background-color: transparent;
|
|
222
|
+
}
|
|
223
|
+
|
|
224
|
+
:where(.navds-stepper__step--non-interactive.navds-stepper__step--active:hover)
|
|
225
|
+
.navds-stepper__circle {
|
|
226
|
+
background-color: var(--navds-global-color-gray-900);
|
|
227
|
+
}
|
|
228
|
+
|
|
229
|
+
:where(.navds-stepper__step--completed.navds-stepper__step--active)
|
|
230
|
+
.navds-stepper__circle {
|
|
231
|
+
background-color: inherit;
|
|
232
|
+
color: var(--navds-global-color-deepblue-500);
|
|
233
|
+
}
|
|
234
|
+
|
|
235
|
+
:where(.navds-stepper__step--completed.navds-stepper__step--active.navds-stepper__step--non-interactive)
|
|
236
|
+
.navds-stepper__circle {
|
|
237
|
+
color: var(--navds-global-color-gray-900);
|
|
238
|
+
}
|
package/toggle-group.css
CHANGED
|
@@ -18,6 +18,12 @@
|
|
|
18
18
|
);
|
|
19
19
|
}
|
|
20
20
|
|
|
21
|
+
.navds-toggle-group__wrapper {
|
|
22
|
+
display: grid;
|
|
23
|
+
justify-items: start;
|
|
24
|
+
gap: var(--navds-spacing-2);
|
|
25
|
+
}
|
|
26
|
+
|
|
21
27
|
.navds-toggle-group {
|
|
22
28
|
border-radius: 7px; /* Custom value OK */
|
|
23
29
|
background-color: var(--navds-toggle-group-color-background);
|
|
@@ -91,7 +97,3 @@
|
|
|
91
97
|
> svg {
|
|
92
98
|
font-size: 1.125rem;
|
|
93
99
|
}
|
|
94
|
-
|
|
95
|
-
.navds-toggle-group__label {
|
|
96
|
-
margin-bottom: 0.5rem;
|
|
97
|
-
}
|