@navikt/ds-css 5.16.0 → 5.17.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 +8 -0
- package/accordion.css +16 -1
- package/alert.css +10 -2
- package/button.css +53 -1
- package/chat.css +13 -0
- package/chips.css +41 -0
- package/copybutton.css +22 -0
- package/dist/component/accordion.css +16 -1
- package/dist/component/accordion.min.css +1 -1
- package/dist/component/alert.css +10 -2
- package/dist/component/alert.min.css +1 -1
- package/dist/component/button.css +56 -1
- package/dist/component/button.min.css +2 -2
- package/dist/component/chat.css +13 -0
- package/dist/component/chat.min.css +1 -1
- package/dist/component/chips.css +41 -0
- package/dist/component/chips.min.css +1 -1
- package/dist/component/copybutton.css +22 -0
- package/dist/component/copybutton.min.css +1 -1
- package/dist/component/dropdown.css +15 -2
- package/dist/component/dropdown.min.css +1 -1
- package/dist/component/expansioncard.css +10 -2
- package/dist/component/expansioncard.min.css +1 -1
- package/dist/component/form.css +267 -5
- package/dist/component/form.min.css +1 -1
- package/dist/component/helptext.css +16 -2
- package/dist/component/helptext.min.css +1 -1
- package/dist/component/index.css +734 -27
- package/dist/component/index.min.css +3 -3
- package/dist/component/internalheader.css +21 -0
- package/dist/component/internalheader.min.css +1 -1
- package/dist/component/link.css +3 -3
- package/dist/component/link.min.css +1 -1
- package/dist/component/linkpanel.css +4 -2
- package/dist/component/linkpanel.min.css +1 -1
- package/dist/component/loader.css +6 -0
- package/dist/component/loader.min.css +1 -1
- package/dist/component/modal.css +6 -0
- package/dist/component/modal.min.css +1 -1
- package/dist/component/popover.css +23 -0
- package/dist/component/popover.min.css +1 -1
- package/dist/component/readmore.css +15 -0
- package/dist/component/readmore.min.css +1 -1
- package/dist/component/skeleton.css +8 -0
- package/dist/component/skeleton.min.css +1 -1
- package/dist/component/stepper.css +35 -0
- package/dist/component/stepper.min.css +1 -1
- package/dist/component/table.css +26 -0
- package/dist/component/table.min.css +1 -1
- package/dist/component/tabs.css +21 -4
- package/dist/component/tabs.min.css +1 -1
- package/dist/component/tag.css +12 -0
- package/dist/component/tag.min.css +1 -1
- package/dist/component/timeline.css +54 -0
- package/dist/component/timeline.min.css +1 -1
- package/dist/component/togglegroup.css +33 -2
- package/dist/component/togglegroup.min.css +1 -1
- package/dist/component/tooltip.css +28 -0
- package/dist/component/tooltip.min.css +1 -1
- package/dist/components.css +770 -26
- package/dist/components.min.css +3 -3
- package/dist/global/tokens.css +1 -1
- package/dist/index.css +734 -27
- package/dist/index.min.css +3 -3
- package/dropdown.css +15 -2
- package/expansioncard.css +10 -2
- package/form/combobox.css +57 -0
- package/form/confirmation-panel.css +24 -0
- package/form/fieldset.css +7 -0
- package/form/form.css +6 -0
- package/form/radio-checkbox.css +82 -0
- package/form/search.css +12 -2
- package/form/select.css +21 -0
- package/form/switch.css +49 -0
- package/form/text-field.css +9 -1
- package/form/textarea.css +11 -2
- package/help-text.css +16 -2
- package/internalheader.css +21 -0
- package/link-panel.css +4 -2
- package/link.css +3 -3
- package/loader.css +6 -0
- package/modal.css +6 -0
- package/package.json +2 -2
- package/popover.css +23 -0
- package/read-more.css +15 -0
- package/skeleton.css +8 -0
- package/stepper.css +35 -0
- package/table.css +26 -0
- package/tabs.css +21 -4
- package/tag.css +12 -0
- package/timeline.css +54 -0
- package/toggle-group.css +33 -2
- package/tooltip.css +28 -0
package/read-more.css
CHANGED
|
@@ -16,6 +16,21 @@
|
|
|
16
16
|
padding: var(--a-spacing-05) var(--a-spacing-1) var(--a-spacing-05) var(--a-spacing-05);
|
|
17
17
|
}
|
|
18
18
|
|
|
19
|
+
@media (forced-colors: active) {
|
|
20
|
+
.navds-read-more__button {
|
|
21
|
+
background-color: ButtonFace;
|
|
22
|
+
border-color: ButtonText;
|
|
23
|
+
border: solid 1px ButtonText;
|
|
24
|
+
color: ButtonText;
|
|
25
|
+
}
|
|
26
|
+
|
|
27
|
+
.navds-read-more__button.navds-read-more__button:focus-visible {
|
|
28
|
+
box-shadow: none;
|
|
29
|
+
outline: 2px solid highlight;
|
|
30
|
+
outline-offset: 2px;
|
|
31
|
+
}
|
|
32
|
+
}
|
|
33
|
+
|
|
19
34
|
.navds-read-more__button:hover {
|
|
20
35
|
background-color: var(--ac-read-more-hover-bg, var(--a-surface-hover));
|
|
21
36
|
}
|
package/skeleton.css
CHANGED
package/stepper.css
CHANGED
|
@@ -70,6 +70,41 @@
|
|
|
70
70
|
margin: calc(var(--navds-stepper-border-width) * -1) calc(var(--navds-stepper-border-width) * -1) 1.75rem;
|
|
71
71
|
}
|
|
72
72
|
|
|
73
|
+
@media (forced-colors: active) {
|
|
74
|
+
.navds-stepper__step {
|
|
75
|
+
background-color: ButtonFace;
|
|
76
|
+
color: ButtonText;
|
|
77
|
+
}
|
|
78
|
+
|
|
79
|
+
.navds-stepper__circle.navds-stepper__circle {
|
|
80
|
+
border: 0;
|
|
81
|
+
}
|
|
82
|
+
|
|
83
|
+
.navds-stepper__step .navds-stepper__circle {
|
|
84
|
+
forced-color-adjust: none;
|
|
85
|
+
background-color: ButtonText;
|
|
86
|
+
border-color: ButtonText;
|
|
87
|
+
color: ButtonFace;
|
|
88
|
+
}
|
|
89
|
+
|
|
90
|
+
.navds-stepper__step.navds-stepper__step:focus-visible {
|
|
91
|
+
box-shadow: none;
|
|
92
|
+
outline: 2px solid highlight;
|
|
93
|
+
outline-offset: 2px;
|
|
94
|
+
}
|
|
95
|
+
|
|
96
|
+
.navds-stepper__step.navds-stepper__step--active .navds-stepper__circle {
|
|
97
|
+
forced-color-adjust: none;
|
|
98
|
+
background-color: highlight;
|
|
99
|
+
border-color: highlighttext;
|
|
100
|
+
color: highlighttext;
|
|
101
|
+
}
|
|
102
|
+
|
|
103
|
+
.navds-stepper__line {
|
|
104
|
+
background-color: ButtonText;
|
|
105
|
+
}
|
|
106
|
+
}
|
|
107
|
+
|
|
73
108
|
button.navds-stepper__step {
|
|
74
109
|
appearance: none;
|
|
75
110
|
border: none;
|
package/table.css
CHANGED
|
@@ -264,3 +264,29 @@
|
|
|
264
264
|
.navds-table--small .navds-table__expanded-row-content {
|
|
265
265
|
padding: var(--a-spacing-2) calc(var(--a-spacing-2) + 3rem);
|
|
266
266
|
}
|
|
267
|
+
|
|
268
|
+
@media (forced-colors: active) {
|
|
269
|
+
.navds-date.navds-date button.rdp-day_selected {
|
|
270
|
+
forced-color-adjust: none;
|
|
271
|
+
background-color: highlight;
|
|
272
|
+
color: highlighttext;
|
|
273
|
+
box-shadow: none;
|
|
274
|
+
}
|
|
275
|
+
|
|
276
|
+
.navds-date.navds-date button {
|
|
277
|
+
color: buttontext;
|
|
278
|
+
forced-color-adjust: none;
|
|
279
|
+
outline: none;
|
|
280
|
+
box-shadow: none;
|
|
281
|
+
}
|
|
282
|
+
|
|
283
|
+
.navds-date button:focus-visible {
|
|
284
|
+
color: buttontext;
|
|
285
|
+
forced-color-adjust: none;
|
|
286
|
+
outline: 2px solid highlight;
|
|
287
|
+
}
|
|
288
|
+
|
|
289
|
+
.navds-date.navds-date button.rdp-day_disabled {
|
|
290
|
+
color: GrayText;
|
|
291
|
+
}
|
|
292
|
+
}
|
package/tabs.css
CHANGED
|
@@ -63,14 +63,15 @@
|
|
|
63
63
|
}
|
|
64
64
|
|
|
65
65
|
.navds-tabs__tab:focus-visible {
|
|
66
|
-
outline:
|
|
66
|
+
outline: 2px solid transparent;
|
|
67
|
+
outline-offset: -2px;
|
|
67
68
|
box-shadow: inset var(--a-shadow-focus);
|
|
68
69
|
color: var(--ac-tabs-focus-text, var(--a-text-default));
|
|
69
70
|
}
|
|
70
71
|
|
|
71
72
|
@supports not selector(:focus-visible) {
|
|
72
73
|
.navds-tabs__tab:focus {
|
|
73
|
-
outline:
|
|
74
|
+
outline: 2px solid transparent;
|
|
74
75
|
box-shadow: inset var(--a-shadow-focus);
|
|
75
76
|
color: var(--ac-tabs-focus-text, var(--a-text-default));
|
|
76
77
|
}
|
|
@@ -117,13 +118,29 @@
|
|
|
117
118
|
}
|
|
118
119
|
|
|
119
120
|
.navds-tabs__tabpanel:focus-visible {
|
|
120
|
-
outline:
|
|
121
|
+
outline: 2px solid transparent;
|
|
121
122
|
box-shadow: inset 0 0 0 2px var(--a-border-focus);
|
|
122
123
|
}
|
|
123
124
|
|
|
124
125
|
@supports not selector(:focus-visible) {
|
|
125
126
|
.navds-tabs__tabpanel:focus {
|
|
126
|
-
outline:
|
|
127
|
+
outline: 2px solid transparent;
|
|
127
128
|
box-shadow: inset 0 0 0 2px var(--a-border-focus);
|
|
128
129
|
}
|
|
129
130
|
}
|
|
131
|
+
|
|
132
|
+
@media (forced-colors: active) {
|
|
133
|
+
.navds-tabs__tab[aria-selected="true"] {
|
|
134
|
+
border-bottom: 3px solid canvastext;
|
|
135
|
+
padding-block-end: calc(var(--a-spacing-3) - 3px);
|
|
136
|
+
}
|
|
137
|
+
|
|
138
|
+
.navds-tabs__tab--small[aria-selected="true"] {
|
|
139
|
+
padding-block-end: calc(var(--a-spacing-1-alt) - 3px);
|
|
140
|
+
}
|
|
141
|
+
|
|
142
|
+
.navds-tabs__tab-icon--top[aria-selected="true"],
|
|
143
|
+
.navds-tabs__tab--small.navds-tabs__tab-icon--top[aria-selected="true"] {
|
|
144
|
+
padding-block-end: calc(var(--a-spacing-1) - 3px);
|
|
145
|
+
}
|
|
146
|
+
}
|
package/tag.css
CHANGED
|
@@ -180,3 +180,15 @@
|
|
|
180
180
|
background-color: var(--ac-tag-alt-3-moderate-bg, var(--a-surface-alt-3-moderate));
|
|
181
181
|
color: var(--ac-tag-alt-3-moderate-text, var(--a-text-default));
|
|
182
182
|
}
|
|
183
|
+
|
|
184
|
+
@media (forced-colors: active) {
|
|
185
|
+
.navds-tag {
|
|
186
|
+
forced-color-adjust: none;
|
|
187
|
+
}
|
|
188
|
+
|
|
189
|
+
.navds-tag--neutral,
|
|
190
|
+
.navds-tag--neutral-moderate {
|
|
191
|
+
border-color: canvastext;
|
|
192
|
+
color: canvastext;
|
|
193
|
+
}
|
|
194
|
+
}
|
package/timeline.css
CHANGED
|
@@ -393,3 +393,57 @@
|
|
|
393
393
|
border-right-color: transparent;
|
|
394
394
|
border-top-color: transparent;
|
|
395
395
|
}
|
|
396
|
+
|
|
397
|
+
@media (forced-colors: active) {
|
|
398
|
+
.navds-timeline__period:focus {
|
|
399
|
+
outline: 2px solid highlight;
|
|
400
|
+
outline-offset: 2px;
|
|
401
|
+
}
|
|
402
|
+
|
|
403
|
+
.navds-timeline__period--success,
|
|
404
|
+
.navds-timeline__period--warning,
|
|
405
|
+
.navds-timeline__period--info,
|
|
406
|
+
.navds-timeline__period--neutral,
|
|
407
|
+
.navds-timeline__period--danger {
|
|
408
|
+
forced-color-adjust: none;
|
|
409
|
+
}
|
|
410
|
+
|
|
411
|
+
.navds-timeline__row {
|
|
412
|
+
border: 1px solid transparent;
|
|
413
|
+
}
|
|
414
|
+
|
|
415
|
+
.navds-timeline__pin-wrapper::before {
|
|
416
|
+
border: 1px solid transparent;
|
|
417
|
+
}
|
|
418
|
+
|
|
419
|
+
.navds-timeline__pin-button {
|
|
420
|
+
outline: 4px solid transparent;
|
|
421
|
+
}
|
|
422
|
+
|
|
423
|
+
.navds-timeline__pin-button:focus,
|
|
424
|
+
.navds-timeline__pin-button:focus-visible {
|
|
425
|
+
outline: 4px solid highlight;
|
|
426
|
+
outline-offset: 2px;
|
|
427
|
+
box-shadow: none;
|
|
428
|
+
}
|
|
429
|
+
|
|
430
|
+
.navds-timeline__popover[data-placement^="top"] > .navds-timeline__popover-arrow {
|
|
431
|
+
border-left-color: canvas;
|
|
432
|
+
border-top-color: canvas;
|
|
433
|
+
}
|
|
434
|
+
|
|
435
|
+
.navds-timeline__popover[data-placement^="bottom"] > .navds-timeline__popover-arrow {
|
|
436
|
+
border-bottom-color: canvas;
|
|
437
|
+
border-right-color: canvas;
|
|
438
|
+
}
|
|
439
|
+
|
|
440
|
+
.navds-timeline__popover[data-placement^="left"] > .navds-timeline__popover-arrow {
|
|
441
|
+
border-left-color: canvas;
|
|
442
|
+
border-bottom-color: canvas;
|
|
443
|
+
}
|
|
444
|
+
|
|
445
|
+
.navds-timeline__popover[data-placement^="right"] > .navds-timeline__popover-arrow {
|
|
446
|
+
border-right-color: canvas;
|
|
447
|
+
border-top-color: canvas;
|
|
448
|
+
}
|
|
449
|
+
}
|
package/toggle-group.css
CHANGED
|
@@ -65,7 +65,8 @@
|
|
|
65
65
|
}
|
|
66
66
|
|
|
67
67
|
.navds-toggle-group__button:focus-visible {
|
|
68
|
-
outline:
|
|
68
|
+
outline: 2px solid transparent;
|
|
69
|
+
outline-offset: 1px;
|
|
69
70
|
box-shadow:
|
|
70
71
|
0 0 0 1px var(--a-surface-default),
|
|
71
72
|
0 0 0 4px var(--a-border-focus);
|
|
@@ -73,7 +74,8 @@
|
|
|
73
74
|
|
|
74
75
|
@supports not selector(:focus-visible) {
|
|
75
76
|
.navds-toggle-group__button:focus {
|
|
76
|
-
outline:
|
|
77
|
+
outline: 2px solid transparent;
|
|
78
|
+
outline-offset: 1px;
|
|
77
79
|
box-shadow:
|
|
78
80
|
0 0 0 1px var(--a-surface-default),
|
|
79
81
|
0 0 0 4px var(--a-border-focus);
|
|
@@ -144,3 +146,32 @@
|
|
|
144
146
|
.navds-toggle-group--small > .navds-toggle-group__button > .navds-toggle-group__button-inner > svg {
|
|
145
147
|
font-size: 1.125rem;
|
|
146
148
|
}
|
|
149
|
+
|
|
150
|
+
@media (forced-colors: active) {
|
|
151
|
+
.navds-toggle-group {
|
|
152
|
+
border: 2px solid transparent;
|
|
153
|
+
}
|
|
154
|
+
|
|
155
|
+
.navds-toggle-group__button:hover {
|
|
156
|
+
color: highlight;
|
|
157
|
+
}
|
|
158
|
+
|
|
159
|
+
.navds-toggle-group__button[aria-checked="true"],
|
|
160
|
+
.navds-toggle-group__button[aria-pressed="true"] {
|
|
161
|
+
background-color: selecteditem;
|
|
162
|
+
color: selecteditemtext;
|
|
163
|
+
}
|
|
164
|
+
|
|
165
|
+
.navds-toggle-group__button[aria-checked="true"] > *,
|
|
166
|
+
.navds-toggle-group__button[aria-pressed="true"] > * {
|
|
167
|
+
forced-color-adjust: none;
|
|
168
|
+
}
|
|
169
|
+
|
|
170
|
+
.navds-toggle-group__button:active {
|
|
171
|
+
background-color: none !important;
|
|
172
|
+
}
|
|
173
|
+
|
|
174
|
+
.navds-toggle-group__button:focus-visible {
|
|
175
|
+
outline-color: highlight;
|
|
176
|
+
}
|
|
177
|
+
}
|
package/tooltip.css
CHANGED
|
@@ -51,3 +51,31 @@
|
|
|
51
51
|
align-items: center;
|
|
52
52
|
justify-content: center;
|
|
53
53
|
}
|
|
54
|
+
|
|
55
|
+
@media (forced-colors: active) {
|
|
56
|
+
.navds-tooltip {
|
|
57
|
+
--__a-tooltip-high-contrast-border: 1px solid transparent;
|
|
58
|
+
|
|
59
|
+
border: var(--__a-tooltip-high-contrast-border);
|
|
60
|
+
}
|
|
61
|
+
|
|
62
|
+
.navds-tooltip[data-side="top"] .navds-tooltip__arrow {
|
|
63
|
+
border-bottom: var(--__a-tooltip-high-contrast-border);
|
|
64
|
+
border-right: var(--__a-tooltip-high-contrast-border);
|
|
65
|
+
}
|
|
66
|
+
|
|
67
|
+
.navds-tooltip[data-side="right"] .navds-tooltip__arrow {
|
|
68
|
+
border-bottom: var(--__a-tooltip-high-contrast-border);
|
|
69
|
+
border-left: var(--__a-tooltip-high-contrast-border);
|
|
70
|
+
}
|
|
71
|
+
|
|
72
|
+
.navds-tooltip[data-side="bottom"] .navds-tooltip__arrow {
|
|
73
|
+
border-left: var(--__a-tooltip-high-contrast-border);
|
|
74
|
+
border-top: var(--__a-tooltip-high-contrast-border);
|
|
75
|
+
}
|
|
76
|
+
|
|
77
|
+
.navds-tooltip[data-side="left"] .navds-tooltip__arrow {
|
|
78
|
+
border-top: var(--__a-tooltip-high-contrast-border);
|
|
79
|
+
border-right: var(--__a-tooltip-high-contrast-border);
|
|
80
|
+
}
|
|
81
|
+
}
|