@navikt/ds-css 2.9.7 → 3.0.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 +28 -0
- package/accordion.css +126 -29
- package/alert.css +0 -1
- package/button.css +5 -6
- package/chips.css +11 -6
- package/date.css +2 -1
- package/dist/component/accordion.css +131 -29
- package/dist/component/accordion.min.css +1 -1
- package/dist/component/alert.css +0 -1
- package/dist/component/alert.min.css +1 -1
- package/dist/component/button.css +5 -6
- package/dist/component/button.min.css +1 -1
- package/dist/component/chips.css +11 -6
- package/dist/component/chips.min.css +1 -1
- package/dist/component/date.css +2 -1
- package/dist/component/date.min.css +1 -1
- package/dist/component/expansioncard.css +2 -2
- package/dist/component/expansioncard.min.css +1 -1
- package/dist/component/form.css +8 -5
- package/dist/component/form.min.css +1 -1
- package/dist/component/index.css +184 -68
- package/dist/component/index.min.css +2 -2
- package/dist/component/readmore.css +17 -13
- package/dist/component/readmore.min.css +1 -1
- package/dist/component/stepper.css +27 -0
- package/dist/component/stepper.min.css +1 -1
- package/dist/component/table.css +6 -7
- package/dist/component/table.min.css +1 -1
- package/dist/component/tabs.css +1 -1
- package/dist/component/tabs.min.css +1 -1
- package/dist/components.css +183 -67
- package/dist/components.min.css +2 -2
- package/dist/global/tokens.css +1 -1
- package/dist/index.css +184 -68
- package/dist/index.min.css +2 -2
- package/expansioncard.css +2 -2
- package/form/search.css +1 -1
- package/form/select.css +6 -2
- package/form/switch.css +2 -2
- package/package.json +2 -2
- package/read-more.css +17 -13
- package/stepper.css +27 -0
- package/table.css +6 -7
- package/tabs.css +1 -1
- package/tokens.json +14 -17
package/read-more.css
CHANGED
|
@@ -32,32 +32,36 @@
|
|
|
32
32
|
.navds-read-more__content {
|
|
33
33
|
margin-top: var(--a-spacing-1);
|
|
34
34
|
border-left: 2px solid var(--ac-read-more-line, var(--a-border-divider));
|
|
35
|
+
margin-left: 13px;
|
|
36
|
+
padding-left: 13px;
|
|
37
|
+
}
|
|
38
|
+
|
|
39
|
+
.navds-read-more--small .navds-read-more__content {
|
|
35
40
|
margin-left: 11px;
|
|
36
41
|
padding-left: 11px;
|
|
37
42
|
}
|
|
38
43
|
|
|
44
|
+
.navds-read-more__content--closed {
|
|
45
|
+
display: none;
|
|
46
|
+
}
|
|
47
|
+
|
|
39
48
|
.navds-read-more__expand-icon {
|
|
40
|
-
font-size: 1.
|
|
41
|
-
height: 1.5rem;
|
|
49
|
+
font-size: 1.5rem;
|
|
42
50
|
flex-shrink: 0;
|
|
43
51
|
}
|
|
44
52
|
|
|
45
53
|
.navds-read-more--small .navds-read-more__expand-icon {
|
|
46
|
-
|
|
47
|
-
}
|
|
48
|
-
|
|
49
|
-
.navds-read-more--open > .navds-read-more__button > .navds-read-more__expand-icon {
|
|
50
|
-
transform: rotate(-180deg);
|
|
54
|
+
font-size: 1.25rem;
|
|
51
55
|
}
|
|
52
56
|
|
|
53
|
-
.navds-read-more__expand-icon
|
|
54
|
-
|
|
57
|
+
.navds-read-more__button:hover > .navds-read-more__expand-icon {
|
|
58
|
+
transform: translateY(1px);
|
|
55
59
|
}
|
|
56
60
|
|
|
57
|
-
.navds-read-
|
|
58
|
-
|
|
61
|
+
.navds-read-more--open > .navds-read-more__button > .navds-read-more__expand-icon {
|
|
62
|
+
transform: rotate(-180deg);
|
|
59
63
|
}
|
|
60
64
|
|
|
61
|
-
.navds-read-more__button:hover > .navds-read-more__expand-icon {
|
|
62
|
-
|
|
65
|
+
.navds-read-more--open > .navds-read-more__button:hover > .navds-read-more__expand-icon {
|
|
66
|
+
transform: translateY(-1px) rotate(-180deg);
|
|
63
67
|
}
|
package/stepper.css
CHANGED
|
@@ -102,6 +102,8 @@ button.navds-stepper__step {
|
|
|
102
102
|
border: none;
|
|
103
103
|
background: none;
|
|
104
104
|
font-size: 28px;
|
|
105
|
+
color: var(--a-text-on-action);
|
|
106
|
+
background-color: var(--ac-stepper-text, var(--a-surface-action));
|
|
105
107
|
}
|
|
106
108
|
|
|
107
109
|
.navds-stepper__content {
|
|
@@ -189,6 +191,11 @@ button.navds-stepper__step {
|
|
|
189
191
|
background-color: var(--ac-stepper-hover-bg, var(--a-surface-action-subtle-hover));
|
|
190
192
|
}
|
|
191
193
|
|
|
194
|
+
:where(.navds-stepper__step:not(.navds-stepper__step--active):hover) .navds-stepper__circle--success {
|
|
195
|
+
color: var(--ac-stepper-hover-bg, var(--a-surface-action-subtle-hover));
|
|
196
|
+
background-color: var(--ac-stepper-text, var(--a-surface-action));
|
|
197
|
+
}
|
|
198
|
+
|
|
192
199
|
/* Non-interactive */
|
|
193
200
|
:where(.navds-stepper__step--non-interactive.navds-stepper__step--active) .navds-stepper__content {
|
|
194
201
|
color: var(--ac-stepper-non-interactive-active, var(--a-text-default));
|
|
@@ -217,6 +224,26 @@ button.navds-stepper__step {
|
|
|
217
224
|
color: var(--ac-stepper-active-completed, var(--a-text-action-selected));
|
|
218
225
|
}
|
|
219
226
|
|
|
227
|
+
:where(.navds-stepper__step--completed.navds-stepper__step--active) .navds-stepper__circle--success {
|
|
228
|
+
color: var(--a-text-on-action);
|
|
229
|
+
background-color: var(--ac-stepper-active-completed, var(--a-surface-action-selected));
|
|
230
|
+
}
|
|
231
|
+
|
|
232
|
+
:where(.navds-stepper__step--non-interactive, .navds-stepper__step--non-interactive:hover) .navds-stepper__circle--success {
|
|
233
|
+
color: var(--a-text-on-inverted);
|
|
234
|
+
background-color: var(--ac-stepper-non-interactive-completed-bg, var(--a-surface-neutral));
|
|
235
|
+
}
|
|
236
|
+
|
|
237
|
+
:where(.navds-stepper__step--non-interactive.navds-stepper__step--active) .navds-stepper__circle--success {
|
|
238
|
+
color: var(--a-text-on-inverted);
|
|
239
|
+
background-color: var(--ac-stepper-non-interactive-active-completed, var(--a-surface-inverted));
|
|
240
|
+
}
|
|
241
|
+
|
|
220
242
|
:where(.navds-stepper__step--completed.navds-stepper__step--active.navds-stepper__step--non-interactive) .navds-stepper__circle {
|
|
221
243
|
color: var(--ac-stepper-non-interactive-active-completed, var(--a-text-default));
|
|
222
244
|
}
|
|
245
|
+
|
|
246
|
+
:where(.navds-stepper__step--completed.navds-stepper__step--active.navds-stepper__step--non-interactive)
|
|
247
|
+
.navds-stepper__circle--success {
|
|
248
|
+
color: var(--ac-stepper-non-interactive-active-completed, var(--a-text-on-inverted));
|
|
249
|
+
}
|
package/table.css
CHANGED
|
@@ -193,19 +193,18 @@
|
|
|
193
193
|
font-size: 1.25rem;
|
|
194
194
|
}
|
|
195
195
|
|
|
196
|
-
.navds-table__toggle-expand-button:hover .navds-table__expandable-icon
|
|
197
|
-
|
|
198
|
-
display: none;
|
|
199
|
-
}
|
|
200
|
-
|
|
201
|
-
.navds-table__toggle-expand-button:hover .navds-table__expandable-icon--filled {
|
|
202
|
-
display: block;
|
|
196
|
+
.navds-table__toggle-expand-button:hover .navds-table__expandable-icon {
|
|
197
|
+
transform: translateY(1px);
|
|
203
198
|
}
|
|
204
199
|
|
|
205
200
|
.navds-table__toggle-expand-cell--open .navds-table__expandable-icon {
|
|
206
201
|
transform: rotate(180deg);
|
|
207
202
|
}
|
|
208
203
|
|
|
204
|
+
.navds-table__toggle-expand-cell--open .navds-table__toggle-expand-button:hover .navds-table__expandable-icon {
|
|
205
|
+
transform: translateY(-1px) rotate(180deg);
|
|
206
|
+
}
|
|
207
|
+
|
|
209
208
|
.navds-table__expanded-row-cell {
|
|
210
209
|
padding: 0;
|
|
211
210
|
}
|
package/tabs.css
CHANGED
package/tokens.json
CHANGED
|
@@ -14,26 +14,22 @@
|
|
|
14
14
|
"--ac-alert-icon-success-color": "--a-icon-success"
|
|
15
15
|
},
|
|
16
16
|
"accordion": {
|
|
17
|
-
"--ac-accordion-header-bg": "--
|
|
18
|
-
"--ac-accordion-header-bg-hover": "--
|
|
17
|
+
"--ac-accordion-header-bg": "--a-surface-transparent",
|
|
18
|
+
"--ac-accordion-header-bg-hover": "--a-surface-hover",
|
|
19
|
+
"--ac-accordion-header-text-hover": "inherit",
|
|
19
20
|
"--ac-accordion-header-border": "--a-border-divider",
|
|
20
|
-
"--ac-accordion-header-text-hover": "--a-text-action-on-action-subtle",
|
|
21
|
-
"--ac-accordion-header-border-hover": "--a-border-default",
|
|
22
21
|
"--ac-accordion-item-bg-open": "--a-surface-action-subtle",
|
|
23
|
-
"--ac-accordion-
|
|
24
|
-
"--ac-accordion-header-bg-
|
|
25
|
-
"--ac-accordion-item-border-open": "--a-surface-action-subtle",
|
|
26
|
-
"--ac-accordion-content-border": "--a-border-divider",
|
|
27
|
-
"--ac-accordion-content-border-open": "--a-border-default"
|
|
22
|
+
"--ac-accordion-neutral-item-bg-open": "--a-surface-neutral-subtle",
|
|
23
|
+
"--ac-accordion-header-icon-bg-hover": "--a-surface-neutral-subtle-hover"
|
|
28
24
|
},
|
|
29
25
|
"button": {
|
|
30
26
|
"--ac-button-border-radius": "--a-border-radius-medium",
|
|
31
|
-
"--ac-button-padding": "
|
|
32
|
-
"--ac-button-padding-small": "
|
|
33
|
-
"--ac-button-padding-xsmall": "
|
|
34
|
-
"--ac-button-padding-icon-only": "
|
|
35
|
-
"--ac-button-padding-icon-only-small": "
|
|
36
|
-
"--ac-button-padding-icon-only-xsmall": "
|
|
27
|
+
"--ac-button-padding": "--a-spacing-3 --a-spacing-5",
|
|
28
|
+
"--ac-button-padding-small": "--a-spacing-1 --a-spacing-3",
|
|
29
|
+
"--ac-button-padding-xsmall": "--a-spacing-05 --a-spacing-2",
|
|
30
|
+
"--ac-button-padding-icon-only": "--a-spacing-3",
|
|
31
|
+
"--ac-button-padding-icon-only-small": "--a-spacing-1",
|
|
32
|
+
"--ac-button-padding-icon-only-xsmall": "--a-spacing-05",
|
|
37
33
|
"--ac-button-primary-bg": "--a-surface-action",
|
|
38
34
|
"--ac-button-primary-text": "--a-text-on-action",
|
|
39
35
|
"--ac-button-primary-hover-bg": "--a-surface-action-hover",
|
|
@@ -204,8 +200,9 @@
|
|
|
204
200
|
"--ac-stepper-active-border": "--a-border-action-selected",
|
|
205
201
|
"--ac-stepper-active-text": "--a-text-on-action",
|
|
206
202
|
"--ac-stepper-hover-bg": "--a-surface-action-subtle-hover",
|
|
207
|
-
"--ac-stepper-non-interactive-
|
|
203
|
+
"--ac-stepper-non-interactive-completed-bg": "--a-surface-subtle",
|
|
208
204
|
"--ac-stepper-non-interactive-line-completed": "--a-border-strong",
|
|
205
|
+
"--ac-stepper-non-interactive-active": "--a-text-default",
|
|
209
206
|
"--ac-stepper-non-interactive-active-bg": "--a-surface-inverted",
|
|
210
207
|
"--ac-stepper-non-interactive-active-border": "--a-surface-inverted",
|
|
211
208
|
"--ac-stepper-non-interactive-active-text": "--a-text-on-inverted",
|
|
@@ -226,7 +223,7 @@
|
|
|
226
223
|
},
|
|
227
224
|
"tabs": {
|
|
228
225
|
"--ac-tabs-border": "--a-border-divider",
|
|
229
|
-
"--ac-tabs-text": "--a-text-
|
|
226
|
+
"--ac-tabs-text": "--a-text-default",
|
|
230
227
|
"--ac-tabs-hover-border": "--a-border-subtle-hover",
|
|
231
228
|
"--ac-tabs-selected-border": "--a-border-action",
|
|
232
229
|
"--ac-tabs-selected-text": "--a-text-default",
|