@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/dropdown.css
CHANGED
|
@@ -58,13 +58,15 @@
|
|
|
58
58
|
}
|
|
59
59
|
|
|
60
60
|
.navds-dropdown__item:focus-visible {
|
|
61
|
-
outline:
|
|
61
|
+
outline: 2px solid transparent;
|
|
62
|
+
outline-offset: -2px;
|
|
62
63
|
box-shadow: inset 0 0 0 2px var(--a-border-focus);
|
|
63
64
|
}
|
|
64
65
|
|
|
65
66
|
@supports not selector(:focus-visible) {
|
|
66
67
|
.navds-dropdown__item:focus {
|
|
67
|
-
outline:
|
|
68
|
+
outline: 2px solid transparent;
|
|
69
|
+
outline-offset: -2px;
|
|
68
70
|
box-shadow: inset 0 0 0 2px var(--a-border-focus);
|
|
69
71
|
}
|
|
70
72
|
}
|
|
@@ -75,3 +77,14 @@
|
|
|
75
77
|
background: transparent;
|
|
76
78
|
cursor: not-allowed;
|
|
77
79
|
}
|
|
80
|
+
|
|
81
|
+
@media (forced-colors: active) {
|
|
82
|
+
.navds-dropdown__item:hover {
|
|
83
|
+
color: highlight;
|
|
84
|
+
}
|
|
85
|
+
|
|
86
|
+
.navds-dropdown__item:disabled {
|
|
87
|
+
opacity: 1;
|
|
88
|
+
color: graytext;
|
|
89
|
+
}
|
|
90
|
+
}
|
package/expansioncard.css
CHANGED
|
@@ -145,13 +145,13 @@
|
|
|
145
145
|
}
|
|
146
146
|
|
|
147
147
|
.navds-expansioncard__header-button:focus-visible {
|
|
148
|
-
outline:
|
|
148
|
+
outline: 3px solid transparent;
|
|
149
149
|
box-shadow: var(--a-shadow-focus);
|
|
150
150
|
}
|
|
151
151
|
|
|
152
152
|
@supports not selector(:focus-visible) {
|
|
153
153
|
.navds-expansioncard__header-button:focus {
|
|
154
|
-
outline:
|
|
154
|
+
outline: 3px solid transparent;
|
|
155
155
|
box-shadow: var(--a-shadow-focus);
|
|
156
156
|
}
|
|
157
157
|
}
|
|
@@ -221,3 +221,11 @@
|
|
|
221
221
|
transform: translateY(0);
|
|
222
222
|
}
|
|
223
223
|
}
|
|
224
|
+
|
|
225
|
+
@media (forced-colors: active) {
|
|
226
|
+
.navds-expansioncard:hover {
|
|
227
|
+
--__ac-expansioncard-border-color: highlight;
|
|
228
|
+
|
|
229
|
+
outline: 1px solid highlight;
|
|
230
|
+
}
|
|
231
|
+
}
|
package/form/combobox.css
CHANGED
|
@@ -39,6 +39,8 @@
|
|
|
39
39
|
|
|
40
40
|
.navds-combobox--error
|
|
41
41
|
.navds-text-field__input:not(:hover):not(:disabled):not(.navds-combobox__wrapper-inner--virtually-unfocused):focus-within {
|
|
42
|
+
outline: 2px solid transparent;
|
|
43
|
+
outline-offset: 2px;
|
|
42
44
|
box-shadow:
|
|
43
45
|
0 0 0 1px var(--ac-combobox-error-border, var(--a-border-danger)),
|
|
44
46
|
var(--a-shadow-focus);
|
|
@@ -94,10 +96,13 @@
|
|
|
94
96
|
0 0 0 1px var(--a-surface-default) inset,
|
|
95
97
|
var(--a-shadow-focus);
|
|
96
98
|
box-shadow: var(--a-shadow-focus);
|
|
99
|
+
outline: 3px solid transparent;
|
|
100
|
+
outline-offset: 2px;
|
|
97
101
|
}
|
|
98
102
|
|
|
99
103
|
.navds-combobox__wrapper-inner:has(.navds-combobox__input:focus-visible).navds-combobox__wrapper-inner--virtually-unfocused {
|
|
100
104
|
box-shadow: none;
|
|
105
|
+
outline: none;
|
|
101
106
|
}
|
|
102
107
|
|
|
103
108
|
@supports not selector(:focus-visible) {
|
|
@@ -112,10 +117,13 @@
|
|
|
112
117
|
0 0 0 1px var(--a-surface-default) inset,
|
|
113
118
|
var(--a-shadow-focus);
|
|
114
119
|
box-shadow: var(--a-shadow-focus);
|
|
120
|
+
outline: 3px solid transparent;
|
|
121
|
+
outline-offset: 2px;
|
|
115
122
|
}
|
|
116
123
|
|
|
117
124
|
.navds-combobox__wrapper-inner:has(.navds-combobox__input:focus).navds-combobox__wrapper-inner--virtually-unfocused {
|
|
118
125
|
box-shadow: none;
|
|
126
|
+
outline: none;
|
|
119
127
|
}
|
|
120
128
|
}
|
|
121
129
|
|
|
@@ -125,10 +133,13 @@
|
|
|
125
133
|
0 0 0 1px var(--a-surface-default) inset,
|
|
126
134
|
var(--a-shadow-focus);
|
|
127
135
|
box-shadow: var(--a-shadow-focus);
|
|
136
|
+
outline: 3px solid transparent;
|
|
137
|
+
outline-offset: 2px;
|
|
128
138
|
}
|
|
129
139
|
|
|
130
140
|
.navds-combobox--focused .navds-combobox__wrapper-inner.navds-combobox__wrapper-inner--virtually-unfocused {
|
|
131
141
|
box-shadow: none;
|
|
142
|
+
outline: none;
|
|
132
143
|
}
|
|
133
144
|
}
|
|
134
145
|
|
|
@@ -368,3 +379,49 @@
|
|
|
368
379
|
gap: var(--a-spacing-1);
|
|
369
380
|
}
|
|
370
381
|
}
|
|
382
|
+
|
|
383
|
+
@media (forced-colors: active) {
|
|
384
|
+
.navds-combobox__button-clear:hover {
|
|
385
|
+
color: highlight;
|
|
386
|
+
}
|
|
387
|
+
|
|
388
|
+
.navds-combobox__wrapper-inner:has(.navds-combobox__input:focus-visible) {
|
|
389
|
+
outline-color: highlight;
|
|
390
|
+
}
|
|
391
|
+
|
|
392
|
+
.navds-combobox__list-item--focus,
|
|
393
|
+
.navds-combobox__list--with-hover
|
|
394
|
+
.navds-combobox__list-item:not([data-no-focus="true"], .navds-combobox__list-item--new-option):hover {
|
|
395
|
+
border-left-color: highlight;
|
|
396
|
+
color: highlight;
|
|
397
|
+
}
|
|
398
|
+
|
|
399
|
+
.navds-combobox__list-item[data-no-focus="true"] {
|
|
400
|
+
opacity: 1;
|
|
401
|
+
color: graytext;
|
|
402
|
+
}
|
|
403
|
+
|
|
404
|
+
.navds-combobox__list-item--selected {
|
|
405
|
+
background-color: selecteditem;
|
|
406
|
+
color: selecteditemtext;
|
|
407
|
+
}
|
|
408
|
+
|
|
409
|
+
.navds-combobox__list-item--selected > * {
|
|
410
|
+
forced-color-adjust: none;
|
|
411
|
+
}
|
|
412
|
+
|
|
413
|
+
.navds-combobox__list-item--selected.navds-combobox__list-item--focus,
|
|
414
|
+
.navds-combobox__list--with-hover .navds-combobox__list-item--selected:hover {
|
|
415
|
+
border-left-color: highlight;
|
|
416
|
+
color: highlight;
|
|
417
|
+
}
|
|
418
|
+
|
|
419
|
+
.navds-combobox__list--with-hover .navds-combobox__list-item--new-option:hover {
|
|
420
|
+
color: highlight;
|
|
421
|
+
}
|
|
422
|
+
|
|
423
|
+
.navds-combobox__list-item--new-option--focus {
|
|
424
|
+
outline: 2px solid highlight;
|
|
425
|
+
outline-offset: -3px;
|
|
426
|
+
}
|
|
427
|
+
}
|
|
@@ -8,6 +8,7 @@
|
|
|
8
8
|
background-color: var(--ac-confirmation-panel-bg, var(--a-surface-warning-subtle));
|
|
9
9
|
transition: background-color linear 100ms;
|
|
10
10
|
justify-self: stretch;
|
|
11
|
+
position: relative;
|
|
11
12
|
}
|
|
12
13
|
|
|
13
14
|
.navds-confirmation-panel__content {
|
|
@@ -23,3 +24,26 @@
|
|
|
23
24
|
border-color: var(--ac-confirmation-panel-error-border, var(--a-border-danger));
|
|
24
25
|
background-color: var(--ac-confirmation-panel-error-bg, var(--a-surface-danger-subtle));
|
|
25
26
|
}
|
|
27
|
+
|
|
28
|
+
@media (forced-colors: active) {
|
|
29
|
+
.navds-confirmation-panel__inner::before {
|
|
30
|
+
content: "";
|
|
31
|
+
position: absolute;
|
|
32
|
+
left: 0;
|
|
33
|
+
top: 0;
|
|
34
|
+
height: 100%;
|
|
35
|
+
border-left: 8px solid;
|
|
36
|
+
border-color: orange;
|
|
37
|
+
forced-color-adjust: none;
|
|
38
|
+
border-start-start-radius: calc(var(--a-border-radius-medium) - 1px);
|
|
39
|
+
border-end-start-radius: calc(var(--a-border-radius-medium) - 1px);
|
|
40
|
+
}
|
|
41
|
+
|
|
42
|
+
.navds-confirmation-panel--checked .navds-confirmation-panel__inner::before {
|
|
43
|
+
border-color: green;
|
|
44
|
+
}
|
|
45
|
+
|
|
46
|
+
.navds-confirmation-panel--error .navds-confirmation-panel__inner::before {
|
|
47
|
+
border-color: red;
|
|
48
|
+
}
|
|
49
|
+
}
|
package/form/fieldset.css
CHANGED
|
@@ -42,3 +42,10 @@
|
|
|
42
42
|
.navds-fieldset:disabled > .navds-fieldset__description {
|
|
43
43
|
opacity: 0.3;
|
|
44
44
|
}
|
|
45
|
+
|
|
46
|
+
@media (forced-colors: active) {
|
|
47
|
+
.navds-fieldset:disabled > .navds-fieldset__legend,
|
|
48
|
+
.navds-fieldset:disabled > .navds-fieldset__description {
|
|
49
|
+
opacity: 1;
|
|
50
|
+
}
|
|
51
|
+
}
|
package/form/form.css
CHANGED
package/form/radio-checkbox.css
CHANGED
|
@@ -72,6 +72,8 @@
|
|
|
72
72
|
|
|
73
73
|
.navds-checkbox__input:focus-visible + .navds-checkbox__label::before,
|
|
74
74
|
.navds-radio__input:focus-visible + .navds-radio__label::before {
|
|
75
|
+
outline: 2px solid transparent;
|
|
76
|
+
outline-offset: 2px;
|
|
75
77
|
box-shadow:
|
|
76
78
|
0 0 0 2px var(--ac-radio-checkbox-border, var(--a-border-default)),
|
|
77
79
|
0 0 0 2px var(--ac-radio-checkbox-bg, var(--a-surface-default)),
|
|
@@ -81,6 +83,8 @@
|
|
|
81
83
|
@supports not selector(:focus-visible) {
|
|
82
84
|
.navds-checkbox__input:focus + .navds-checkbox__label::before,
|
|
83
85
|
.navds-radio__input:focus + .navds-radio__label::before {
|
|
86
|
+
outline: 2px solid transparent;
|
|
87
|
+
outline-offset: 2px;
|
|
84
88
|
box-shadow:
|
|
85
89
|
0 0 0 2px var(--ac-radio-checkbox-border, var(--a-border-default)),
|
|
86
90
|
0 0 0 4px var(--a-border-focus);
|
|
@@ -352,3 +356,81 @@
|
|
|
352
356
|
.navds-checkbox--readonly > .navds-checkbox__input:indeterminate + .navds-checkbox__label::after {
|
|
353
357
|
background-color: var(--a-icon-subtle);
|
|
354
358
|
}
|
|
359
|
+
|
|
360
|
+
@media (forced-colors: active) {
|
|
361
|
+
.navds-checkbox__input:focus-visible + .navds-checkbox__label::before,
|
|
362
|
+
.navds-radio__input:focus-visible + .navds-radio__label::before {
|
|
363
|
+
outline-color: highlight;
|
|
364
|
+
}
|
|
365
|
+
|
|
366
|
+
.navds-checkbox,
|
|
367
|
+
.navds-radio {
|
|
368
|
+
--__ac-radio-checkbox-high-contrast-bg: field;
|
|
369
|
+
--__ac-radio-checkbox-high-contrast-text: fieldtext;
|
|
370
|
+
--__ac-radio-checkbox-high-contrast-highlight: highlight;
|
|
371
|
+
}
|
|
372
|
+
|
|
373
|
+
.navds-checkbox__label::before,
|
|
374
|
+
.navds-radio__label::before {
|
|
375
|
+
border: 1px solid var(--__ac-radio-checkbox-high-contrast-text);
|
|
376
|
+
background-color: var(--__ac-radio-checkbox-high-contrast-bg);
|
|
377
|
+
}
|
|
378
|
+
|
|
379
|
+
.navds-checkbox__input:checked + .navds-checkbox__label > .navds-checkbox__icon {
|
|
380
|
+
color: var(--__ac-radio-checkbox-high-contrast-text);
|
|
381
|
+
}
|
|
382
|
+
|
|
383
|
+
.navds-checkbox__input:indeterminate + .navds-checkbox__label::after {
|
|
384
|
+
background-color: var(--__ac-radio-checkbox-high-contrast-text);
|
|
385
|
+
}
|
|
386
|
+
|
|
387
|
+
.navds-radio__input:checked + .navds-radio__label::before {
|
|
388
|
+
border: 1px solid var(--__ac-radio-checkbox-high-contrast-text);
|
|
389
|
+
outline: 3px solid var(--__ac-radio-checkbox-high-contrast-bg);
|
|
390
|
+
outline-offset: -4px;
|
|
391
|
+
background-color: var(--__ac-radio-checkbox-high-contrast-text);
|
|
392
|
+
}
|
|
393
|
+
|
|
394
|
+
.navds-radio__input:checked:focus-visible + .navds-radio__label::before {
|
|
395
|
+
border: 1px solid var(--__ac-radio-checkbox-high-contrast-bg);
|
|
396
|
+
outline: 2px solid highlight;
|
|
397
|
+
outline-offset: 2px;
|
|
398
|
+
}
|
|
399
|
+
|
|
400
|
+
:not(.navds-checkbox--readonly) > .navds-checkbox__input:hover:not(:disabled) + .navds-checkbox__label,
|
|
401
|
+
:not(.navds-radio--readonly) > .navds-radio__input:hover:not(:disabled) + .navds-radio__label {
|
|
402
|
+
color: highlight;
|
|
403
|
+
}
|
|
404
|
+
|
|
405
|
+
.navds-checkbox__input:focus-visible + .navds-checkbox__label::before {
|
|
406
|
+
outline: 2px solid var(--__ac-radio-checkbox-high-contrast-highlight);
|
|
407
|
+
}
|
|
408
|
+
|
|
409
|
+
.navds-checkbox--readonly > .navds-checkbox__input:checked + .navds-checkbox__label::before {
|
|
410
|
+
border: 1px solid var(--__ac-radio-checkbox-high-contrast-text);
|
|
411
|
+
background-color: var(--__ac-radio-checkbox-high-contrast-bg);
|
|
412
|
+
}
|
|
413
|
+
|
|
414
|
+
.navds-checkbox--readonly > .navds-checkbox__input:indeterminate + .navds-checkbox__label::after {
|
|
415
|
+
background-color: var(--__ac-radio-checkbox-high-contrast-text);
|
|
416
|
+
}
|
|
417
|
+
|
|
418
|
+
.navds-radio--readonly > .navds-radio__input:checked + .navds-radio__label::before {
|
|
419
|
+
border: 1px solid var(--__ac-radio-checkbox-high-contrast-text);
|
|
420
|
+
outline: 3px solid var(--__ac-radio-checkbox-high-contrast-bg);
|
|
421
|
+
outline-offset: -4px;
|
|
422
|
+
background-color: var(--__ac-radio-checkbox-high-contrast-text);
|
|
423
|
+
}
|
|
424
|
+
|
|
425
|
+
.navds-checkbox--disabled,
|
|
426
|
+
.navds-radio--disabled {
|
|
427
|
+
opacity: 1;
|
|
428
|
+
|
|
429
|
+
--__ac-radio-checkbox-high-contrast-bg: field;
|
|
430
|
+
--__ac-radio-checkbox-high-contrast-text: graytext;
|
|
431
|
+
}
|
|
432
|
+
|
|
433
|
+
:is(.navds-checkbox--disabled, .navds-radio--disabled) :is(.navds-checkbox__label, .navds-radio__label) {
|
|
434
|
+
color: graytext;
|
|
435
|
+
}
|
|
436
|
+
}
|
package/form/search.css
CHANGED
|
@@ -99,14 +99,14 @@
|
|
|
99
99
|
}
|
|
100
100
|
|
|
101
101
|
.navds-search__button-clear:focus-visible {
|
|
102
|
+
outline: 2px solid transparent;
|
|
102
103
|
box-shadow: var(--a-shadow-focus);
|
|
103
|
-
outline: none;
|
|
104
104
|
}
|
|
105
105
|
|
|
106
106
|
@supports not selector(:focus-visible) {
|
|
107
107
|
.navds-search__button-clear:focus {
|
|
108
|
+
outline: 2px solid transparent;
|
|
108
109
|
box-shadow: var(--a-shadow-focus);
|
|
109
|
-
outline: none;
|
|
110
110
|
}
|
|
111
111
|
}
|
|
112
112
|
|
|
@@ -216,3 +216,13 @@
|
|
|
216
216
|
z-index: 1;
|
|
217
217
|
}
|
|
218
218
|
}
|
|
219
|
+
|
|
220
|
+
@media (forced-colors: active) {
|
|
221
|
+
.navds-modal {
|
|
222
|
+
outline: 2px solid transparent;
|
|
223
|
+
}
|
|
224
|
+
|
|
225
|
+
.navds-search__button-clear:hover {
|
|
226
|
+
color: highlight;
|
|
227
|
+
}
|
|
228
|
+
}
|
package/form/select.css
CHANGED
|
@@ -13,6 +13,21 @@
|
|
|
13
13
|
padding-right: 2rem;
|
|
14
14
|
}
|
|
15
15
|
|
|
16
|
+
@media (forced-colors: active) {
|
|
17
|
+
.navds-select__input.navds-select__input.navds-select__input {
|
|
18
|
+
background-color: ButtonFace;
|
|
19
|
+
border-color: ButtonText;
|
|
20
|
+
color: ButtonText;
|
|
21
|
+
forced-color-adjust: none;
|
|
22
|
+
box-shadow: none;
|
|
23
|
+
}
|
|
24
|
+
|
|
25
|
+
.navds-select__input.navds-select__input.navds-select__input:focus-visible {
|
|
26
|
+
outline: 2px solid highlight;
|
|
27
|
+
outline-offset: 2px;
|
|
28
|
+
}
|
|
29
|
+
}
|
|
30
|
+
|
|
16
31
|
.navds-select__input:hover {
|
|
17
32
|
border-color: var(--ac-select-hover-bg, var(--a-border-action));
|
|
18
33
|
cursor: pointer;
|
|
@@ -46,6 +61,12 @@
|
|
|
46
61
|
color: var(--ac-select-text, var(--a-text-default));
|
|
47
62
|
}
|
|
48
63
|
|
|
64
|
+
@media (forced-colors: active) {
|
|
65
|
+
.navds-select__chevron {
|
|
66
|
+
color: ButtonText;
|
|
67
|
+
}
|
|
68
|
+
}
|
|
69
|
+
|
|
49
70
|
.navds-form-field--small .navds-select__input {
|
|
50
71
|
min-height: 2rem;
|
|
51
72
|
padding: 0 var(--a-spacing-8) 0 var(--a-spacing-2);
|
package/form/switch.css
CHANGED
|
@@ -111,6 +111,8 @@
|
|
|
111
111
|
}
|
|
112
112
|
|
|
113
113
|
.navds-switch__input:focus-visible ~ .navds-switch__track {
|
|
114
|
+
outline: 2px solid transparent;
|
|
115
|
+
outline-offset: 2px;
|
|
114
116
|
box-shadow:
|
|
115
117
|
0 0 0 1px var(--a-surface-default),
|
|
116
118
|
var(--a-shadow-focus);
|
|
@@ -118,6 +120,7 @@
|
|
|
118
120
|
|
|
119
121
|
@supports not selector(:focus-visible) {
|
|
120
122
|
.navds-switch__input:focus ~ .navds-switch__track {
|
|
123
|
+
outline: 2px solid transparent;
|
|
121
124
|
box-shadow:
|
|
122
125
|
0 0 0 1px var(--a-surface-default),
|
|
123
126
|
var(--a-shadow-focus);
|
|
@@ -218,3 +221,49 @@
|
|
|
218
221
|
transform: translateX(1.25rem);
|
|
219
222
|
}
|
|
220
223
|
}
|
|
224
|
+
|
|
225
|
+
@media (forced-colors: active) {
|
|
226
|
+
.navds-switch__input:hover ~ .navds-switch__label-wrapper,
|
|
227
|
+
.navds-switch__label-wrapper:hover {
|
|
228
|
+
color: highlight;
|
|
229
|
+
}
|
|
230
|
+
|
|
231
|
+
.navds-switch__thumb,
|
|
232
|
+
.navds-switch--readonly .navds-switch__thumb {
|
|
233
|
+
background-color: fieldtext;
|
|
234
|
+
}
|
|
235
|
+
|
|
236
|
+
.navds-switch__input:checked ~ .navds-switch__track > .navds-switch__thumb,
|
|
237
|
+
.navds-switch--readonly .navds-switch__input:checked ~ .navds-switch__track > .navds-switch__thumb {
|
|
238
|
+
color: field;
|
|
239
|
+
}
|
|
240
|
+
|
|
241
|
+
.navds-switch__track {
|
|
242
|
+
width: calc(2.75rem + 4px);
|
|
243
|
+
height: calc(1.5rem + 4px);
|
|
244
|
+
top: var(--a-spacing-3);
|
|
245
|
+
border: 2px solid fieldtext;
|
|
246
|
+
}
|
|
247
|
+
|
|
248
|
+
.navds-switch__input:focus-visible ~ .navds-switch__track {
|
|
249
|
+
outline: 2px solid highlight;
|
|
250
|
+
outline-offset: 2px;
|
|
251
|
+
}
|
|
252
|
+
|
|
253
|
+
.navds-switch--disabled:not(.navds-switch--loading) {
|
|
254
|
+
opacity: 1;
|
|
255
|
+
}
|
|
256
|
+
|
|
257
|
+
.navds-switch--disabled:not(.navds-switch--loading) .navds-switch__thumb {
|
|
258
|
+
background-color: graytext;
|
|
259
|
+
}
|
|
260
|
+
|
|
261
|
+
.navds-switch--disabled:not(.navds-switch--loading) .navds-switch__track {
|
|
262
|
+
border-color: graytext;
|
|
263
|
+
}
|
|
264
|
+
|
|
265
|
+
.navds-switch--disabled:not(.navds-switch--loading) .navds-switch__label-wrapper,
|
|
266
|
+
.navds-switch--disabled:not(.navds-switch--loading) .navds-switch__label-wrapper:hover {
|
|
267
|
+
color: graytext !important;
|
|
268
|
+
}
|
|
269
|
+
}
|
package/form/text-field.css
CHANGED
|
@@ -45,7 +45,8 @@
|
|
|
45
45
|
}
|
|
46
46
|
|
|
47
47
|
.navds-text-field__input:focus-visible {
|
|
48
|
-
outline:
|
|
48
|
+
outline: 2px solid transparent;
|
|
49
|
+
outline-offset: 2px;
|
|
49
50
|
box-shadow: var(--a-shadow-focus);
|
|
50
51
|
}
|
|
51
52
|
|
|
@@ -101,3 +102,10 @@
|
|
|
101
102
|
.navds-text-field__input[type="search"]::-webkit-search-results-decoration {
|
|
102
103
|
-webkit-appearance: none;
|
|
103
104
|
}
|
|
105
|
+
|
|
106
|
+
@media (forced-colors: active) {
|
|
107
|
+
.navds-text-field__input {
|
|
108
|
+
background-color: field;
|
|
109
|
+
color: fieldtext;
|
|
110
|
+
}
|
|
111
|
+
}
|
package/form/textarea.css
CHANGED
|
@@ -52,13 +52,15 @@
|
|
|
52
52
|
}
|
|
53
53
|
|
|
54
54
|
.navds-textarea__input:focus-visible {
|
|
55
|
-
outline:
|
|
55
|
+
outline: 2px solid transparent;
|
|
56
|
+
outline-offset: 2px;
|
|
56
57
|
box-shadow: var(--a-shadow-focus);
|
|
57
58
|
}
|
|
58
59
|
|
|
59
60
|
@supports not selector(:focus-visible) {
|
|
60
61
|
.navds-textarea__input:focus {
|
|
61
|
-
outline:
|
|
62
|
+
outline: 2px solid transparent;
|
|
63
|
+
outline-offset: 2px;
|
|
62
64
|
box-shadow: var(--a-shadow-focus);
|
|
63
65
|
}
|
|
64
66
|
}
|
|
@@ -141,3 +143,10 @@
|
|
|
141
143
|
border-color: var(--a-border-subtle);
|
|
142
144
|
cursor: default;
|
|
143
145
|
}
|
|
146
|
+
|
|
147
|
+
@media (forced-colors: active) {
|
|
148
|
+
.navds-textarea__input {
|
|
149
|
+
background-color: field;
|
|
150
|
+
color: fieldtext;
|
|
151
|
+
}
|
|
152
|
+
}
|
package/help-text.css
CHANGED
|
@@ -13,7 +13,7 @@
|
|
|
13
13
|
}
|
|
14
14
|
|
|
15
15
|
.navds-help-text__button:focus-visible {
|
|
16
|
-
outline:
|
|
16
|
+
outline: 2px solid transparent;
|
|
17
17
|
box-shadow:
|
|
18
18
|
0 0 0 1px var(--a-border-focus),
|
|
19
19
|
inset 0 0 0 1px var(--a-border-focus);
|
|
@@ -21,7 +21,7 @@
|
|
|
21
21
|
|
|
22
22
|
@supports not selector(:focus-visible) {
|
|
23
23
|
.navds-help-text__button:focus {
|
|
24
|
-
outline:
|
|
24
|
+
outline: 2px solid transparent;
|
|
25
25
|
box-shadow:
|
|
26
26
|
0 0 0 1px var(--a-border-focus),
|
|
27
27
|
inset 0 0 0 1px var(--a-border-focus);
|
|
@@ -64,3 +64,17 @@
|
|
|
64
64
|
display: inherit;
|
|
65
65
|
}
|
|
66
66
|
}
|
|
67
|
+
|
|
68
|
+
@media (forced-colors: active) {
|
|
69
|
+
.navds-help-text__button:where(:hover, :focus-visible, [aria-expanded="true"]) > .navds-help-text__icon {
|
|
70
|
+
display: inherit;
|
|
71
|
+
}
|
|
72
|
+
|
|
73
|
+
.navds-help-text__button:hover > .navds-help-text__icon {
|
|
74
|
+
color: highlight;
|
|
75
|
+
}
|
|
76
|
+
|
|
77
|
+
.navds-help-text__button:where(:hover, :focus-visible, [aria-expanded="true"]) > .navds-help-text__icon--filled {
|
|
78
|
+
display: none;
|
|
79
|
+
}
|
|
80
|
+
}
|
package/internalheader.css
CHANGED
|
@@ -7,6 +7,27 @@
|
|
|
7
7
|
--navds-internalheader-focus: inset 0 0 0 2px var(--a-border-focus-on-inverted);
|
|
8
8
|
}
|
|
9
9
|
|
|
10
|
+
@media (forced-colors: active) {
|
|
11
|
+
.navds-internalheader {
|
|
12
|
+
background-color: ButtonFace;
|
|
13
|
+
border-color: ButtonText;
|
|
14
|
+
border: solid 1px ButtonText;
|
|
15
|
+
color: ButtonText;
|
|
16
|
+
}
|
|
17
|
+
|
|
18
|
+
.navds-internalheader a:focus-visible {
|
|
19
|
+
box-shadow: none;
|
|
20
|
+
outline: 2px solid highlight;
|
|
21
|
+
outline-offset: 2px;
|
|
22
|
+
}
|
|
23
|
+
|
|
24
|
+
.navds-internalheader .navds-internalheader__button:focus-visible {
|
|
25
|
+
box-shadow: none;
|
|
26
|
+
outline: 2px solid highlight;
|
|
27
|
+
outline-offset: 2px;
|
|
28
|
+
}
|
|
29
|
+
}
|
|
30
|
+
|
|
10
31
|
.navds-internalheader__title {
|
|
11
32
|
border: none;
|
|
12
33
|
overflow: visible;
|
package/link-panel.css
CHANGED
|
@@ -18,14 +18,16 @@
|
|
|
18
18
|
}
|
|
19
19
|
|
|
20
20
|
.navds-link-panel:focus-visible {
|
|
21
|
+
outline: 3px solid transparent;
|
|
22
|
+
outline-offset: 2px;
|
|
21
23
|
box-shadow: var(--a-shadow-focus);
|
|
22
|
-
outline: none;
|
|
23
24
|
}
|
|
24
25
|
|
|
25
26
|
@supports not selector(:focus-visible) {
|
|
26
27
|
.navds-link-panel:focus {
|
|
28
|
+
outline: 3px solid transparent;
|
|
29
|
+
outline-offset: 2px;
|
|
27
30
|
box-shadow: var(--a-shadow-focus);
|
|
28
|
-
outline: none;
|
|
29
31
|
}
|
|
30
32
|
}
|
|
31
33
|
|
package/link.css
CHANGED
|
@@ -36,7 +36,7 @@
|
|
|
36
36
|
}
|
|
37
37
|
|
|
38
38
|
.navds-link:focus-visible {
|
|
39
|
-
outline:
|
|
39
|
+
outline: 2px solid transparent;
|
|
40
40
|
color: var(--ac-link-focus-text, var(--a-text-on-action));
|
|
41
41
|
text-decoration: none;
|
|
42
42
|
background-color: var(--ac-link-focus-bg, var(--a-border-focus));
|
|
@@ -45,7 +45,7 @@
|
|
|
45
45
|
|
|
46
46
|
@supports not selector(:focus-visible) {
|
|
47
47
|
.navds-link:focus {
|
|
48
|
-
outline:
|
|
48
|
+
outline: 2px solid transparent;
|
|
49
49
|
color: var(--ac-link-focus-text, var(--a-text-on-action));
|
|
50
50
|
text-decoration: none;
|
|
51
51
|
background-color: var(--ac-link-focus-bg, var(--a-border-focus));
|
|
@@ -54,7 +54,7 @@
|
|
|
54
54
|
}
|
|
55
55
|
|
|
56
56
|
.navds-link:active {
|
|
57
|
-
outline:
|
|
57
|
+
outline: 2px solid transparent;
|
|
58
58
|
color: var(--ac-link-active-text, var(--a-text-on-action));
|
|
59
59
|
text-decoration: none;
|
|
60
60
|
background-color: var(--ac-link-active-bg, var(--a-border-focus));
|
package/loader.css
CHANGED
package/modal.css
CHANGED
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@navikt/ds-css",
|
|
3
|
-
"version": "5.
|
|
3
|
+
"version": "5.17.1",
|
|
4
4
|
"description": "CSS for NAV Designsystem",
|
|
5
5
|
"author": "Aksel | NAV designsystem team",
|
|
6
6
|
"keywords": [
|
|
@@ -27,7 +27,7 @@
|
|
|
27
27
|
"css:get-version": "node config/get-version.js"
|
|
28
28
|
},
|
|
29
29
|
"devDependencies": {
|
|
30
|
-
"@navikt/ds-tokens": "^5.
|
|
30
|
+
"@navikt/ds-tokens": "^5.17.1",
|
|
31
31
|
"cssnano": "6.0.0",
|
|
32
32
|
"fast-glob": "3.2.11",
|
|
33
33
|
"lodash": "4.17.21",
|
package/popover.css
CHANGED
|
@@ -59,3 +59,26 @@
|
|
|
59
59
|
border-right-color: transparent;
|
|
60
60
|
border-top-color: transparent;
|
|
61
61
|
}
|
|
62
|
+
|
|
63
|
+
@media (forced-colors: active) {
|
|
64
|
+
.navds-popover[data-placement^="top"] > .navds-popover__arrow {
|
|
65
|
+
border-left-color: canvas;
|
|
66
|
+
border-top-color: canvas;
|
|
67
|
+
}
|
|
68
|
+
|
|
69
|
+
/* prettier-ignore */
|
|
70
|
+
.navds-popover[data-placement^="bottom"] > .navds-popover__arrow {
|
|
71
|
+
border-bottom-color: canvas;
|
|
72
|
+
border-right-color: canvas;
|
|
73
|
+
}
|
|
74
|
+
|
|
75
|
+
.navds-popover[data-placement^="left"] > .navds-popover__arrow {
|
|
76
|
+
border-left-color: canvas;
|
|
77
|
+
border-bottom-color: canvas;
|
|
78
|
+
}
|
|
79
|
+
|
|
80
|
+
.navds-popover[data-placement^="right"] > .navds-popover__arrow {
|
|
81
|
+
border-right-color: canvas;
|
|
82
|
+
border-top-color: canvas;
|
|
83
|
+
}
|
|
84
|
+
}
|