@navikt/ds-css 7.5.2 → 7.6.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/button.darkside.css +128 -141
- package/darkside/chips.darkside.css +6 -0
- package/darkside/expansioncard.darkside.css +2 -9
- package/darkside/form/combobox.darkside.css +255 -217
- package/darkside/form/file-upload.darkside.css +9 -9
- package/darkside/form/form-summary.darkside.css +1 -0
- package/darkside/form/index.css +14 -16
- package/darkside/form/select.darkside.css +74 -68
- package/darkside/form/switch.darkside.css +125 -132
- package/darkside/form/text-field.darkside.css +1 -1
- package/darkside/form/textarea.darkside.css +36 -78
- package/darkside/help-text.darkside.css +0 -6
- package/darkside/index.css +24 -12
- package/darkside/internalheader.darkside.css +45 -49
- package/darkside/modal.darkside.css +1 -4
- package/darkside/popover.darkside.css +1 -4
- package/darkside/primitives/index.css +30 -34
- 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/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/darkside/form/index.css
CHANGED
|
@@ -1,16 +1,14 @@
|
|
|
1
|
-
@
|
|
2
|
-
|
|
3
|
-
@import "./
|
|
4
|
-
@import "./
|
|
5
|
-
@import "./
|
|
6
|
-
@import "./
|
|
7
|
-
@import "./
|
|
8
|
-
@import "./
|
|
9
|
-
@import "./
|
|
10
|
-
@import "./
|
|
11
|
-
@import "./
|
|
12
|
-
@import "./
|
|
13
|
-
@import "./
|
|
14
|
-
@import "./
|
|
15
|
-
@import "./form-summary.darkside.css" layer(aksel.forms.component);
|
|
16
|
-
@import "./form-progress.darkside.css" layer(aksel.forms.component);
|
|
1
|
+
@import "./fieldset.darkside.css";
|
|
2
|
+
@import "./file-upload.darkside.css";
|
|
3
|
+
@import "./form.darkside.css";
|
|
4
|
+
@import "./error-summary.darkside.css";
|
|
5
|
+
@import "./confirmation-panel.darkside.css";
|
|
6
|
+
@import "./radio-checkbox.darkside.css";
|
|
7
|
+
@import "./select.darkside.css";
|
|
8
|
+
@import "./switch.darkside.css";
|
|
9
|
+
@import "./text-field.darkside.css";
|
|
10
|
+
@import "./textarea.darkside.css";
|
|
11
|
+
@import "./search.darkside.css";
|
|
12
|
+
@import "./combobox.darkside.css";
|
|
13
|
+
@import "./form-summary.darkside.css";
|
|
14
|
+
@import "./form-progress.darkside.css";
|
|
@@ -1,48 +1,34 @@
|
|
|
1
1
|
.navds-select__input {
|
|
2
2
|
appearance: none;
|
|
3
|
-
background-color: var(--
|
|
4
|
-
border-radius: var(--
|
|
5
|
-
border: 1px solid var(--
|
|
6
|
-
color: var(--
|
|
3
|
+
background-color: var(--ax-bg-input);
|
|
4
|
+
border-radius: var(--ax-border-radius-medium);
|
|
5
|
+
border: 1px solid var(--ax-border-default);
|
|
6
|
+
color: var(--ax-text-default);
|
|
7
7
|
width: 100%;
|
|
8
8
|
box-sizing: border-box;
|
|
9
9
|
min-height: 3rem;
|
|
10
10
|
display: inline-block;
|
|
11
11
|
position: relative;
|
|
12
|
-
padding:
|
|
13
|
-
padding-right:
|
|
14
|
-
}
|
|
12
|
+
padding: var(--ax-spacing-2);
|
|
13
|
+
padding-right: var(--ax-spacing-10);
|
|
15
14
|
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
border-color: ButtonText;
|
|
20
|
-
color: ButtonText;
|
|
21
|
-
forced-color-adjust: none;
|
|
22
|
-
box-shadow: none;
|
|
15
|
+
&:hover {
|
|
16
|
+
border-color: var(--ax-border-accent-strong);
|
|
17
|
+
cursor: pointer;
|
|
23
18
|
}
|
|
24
19
|
|
|
25
|
-
|
|
26
|
-
outline: 2px solid
|
|
20
|
+
&:focus {
|
|
21
|
+
outline: 2px solid var(--ax-border-focus);
|
|
27
22
|
outline-offset: 2px;
|
|
23
|
+
border-color: var(--ax-border-accent-strong);
|
|
28
24
|
}
|
|
29
|
-
}
|
|
30
25
|
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
outline: none;
|
|
38
|
-
border-color: var(--ac-select-active-border, var(--a-border-action-selected));
|
|
39
|
-
box-shadow: var(--a-shadow-focus);
|
|
40
|
-
}
|
|
41
|
-
|
|
42
|
-
@supports not selector(:focus-visible) {
|
|
43
|
-
.navds-select__input:focus {
|
|
44
|
-
outline: none;
|
|
45
|
-
box-shadow: var(--a-shadow-focus);
|
|
26
|
+
@media (forced-colors: active) {
|
|
27
|
+
& {
|
|
28
|
+
background-color: ButtonFace;
|
|
29
|
+
border-color: ButtonText;
|
|
30
|
+
color: ButtonText;
|
|
31
|
+
}
|
|
46
32
|
}
|
|
47
33
|
}
|
|
48
34
|
|
|
@@ -50,66 +36,86 @@
|
|
|
50
36
|
position: relative;
|
|
51
37
|
display: flex;
|
|
52
38
|
width: 100%;
|
|
53
|
-
color: var(--
|
|
39
|
+
color: var(--ax-text-default);
|
|
54
40
|
}
|
|
55
41
|
|
|
42
|
+
/* ------------------------------- Select Icon ------------------------------ */
|
|
56
43
|
.navds-select__chevron {
|
|
57
44
|
position: absolute;
|
|
58
45
|
font-size: 1.5rem;
|
|
59
|
-
right: var(--
|
|
46
|
+
right: var(--ax-spacing-2);
|
|
60
47
|
pointer-events: none;
|
|
61
48
|
align-self: center;
|
|
62
|
-
color: var(--
|
|
63
|
-
}
|
|
49
|
+
color: var(--ax-text-default);
|
|
64
50
|
|
|
65
|
-
@media (forced-colors: active) {
|
|
66
|
-
|
|
67
|
-
|
|
51
|
+
@media (forced-colors: active) {
|
|
52
|
+
& {
|
|
53
|
+
color: ButtonText;
|
|
54
|
+
}
|
|
68
55
|
}
|
|
69
56
|
}
|
|
70
57
|
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
58
|
+
/* ------------------------------ Select Sizing ----------------------------- */
|
|
59
|
+
.navds-form-field--small {
|
|
60
|
+
& .navds-select__input {
|
|
61
|
+
min-height: 2rem;
|
|
62
|
+
padding-block: 0;
|
|
63
|
+
}
|
|
74
64
|
}
|
|
75
65
|
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
66
|
+
/* --------------------------- Select Error-state --------------------------- */
|
|
67
|
+
.navds-select--error {
|
|
68
|
+
> * select {
|
|
69
|
+
box-shadow: 0 0 0 1px var(--ax-border-danger);
|
|
70
|
+
border-color: var(--ax-border-danger);
|
|
71
|
+
}
|
|
79
72
|
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
border-color: var(--ac-select-error-border, var(--a-surface-danger));
|
|
73
|
+
> * select:hover,
|
|
74
|
+
> * select:focus {
|
|
75
|
+
box-shadow: 0 0 0 1px var(--ax-border-danger-strong);
|
|
76
|
+
border-color: var(--ax-border-danger-strong);
|
|
77
|
+
}
|
|
86
78
|
}
|
|
87
79
|
|
|
88
|
-
|
|
89
|
-
Disabled
|
|
90
|
-
*/
|
|
80
|
+
/* ----------------------------- Select disabled ---------------------------- */
|
|
91
81
|
.navds-select__input:disabled {
|
|
92
|
-
background-color: var(--
|
|
93
|
-
border: 1px solid var(--
|
|
82
|
+
background-color: var(--ax-bg-input);
|
|
83
|
+
border: 1px solid var(--ax-border-default);
|
|
94
84
|
box-shadow: none;
|
|
95
85
|
cursor: not-allowed;
|
|
96
86
|
|
|
97
87
|
/* Chrome-fix */
|
|
98
88
|
opacity: 1;
|
|
99
|
-
color: var(--
|
|
100
|
-
}
|
|
89
|
+
color: var(--ax-text-default);
|
|
101
90
|
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
}
|
|
91
|
+
& > option {
|
|
92
|
+
color: var(--ax-text-default);
|
|
93
|
+
}
|
|
106
94
|
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
|
|
95
|
+
@media (forced-colors: active) {
|
|
96
|
+
& + .navds-select__chevron {
|
|
97
|
+
color: GrayText;
|
|
98
|
+
}
|
|
99
|
+
}
|
|
111
100
|
}
|
|
112
101
|
|
|
113
|
-
|
|
114
|
-
|
|
102
|
+
/* ----------------------------- Select Readonly ---------------------------- */
|
|
103
|
+
.navds-select--readonly {
|
|
104
|
+
& .navds-select__input {
|
|
105
|
+
background-color: var(--ax-bg-neutral-moderate);
|
|
106
|
+
border-color: var(--ax-border-neutral-subtleA);
|
|
107
|
+
cursor: default;
|
|
108
|
+
|
|
109
|
+
@media (forced-colors: active) {
|
|
110
|
+
&:is(:hover, :focus) {
|
|
111
|
+
background-color: ButtonFace;
|
|
112
|
+
border-color: ButtonText;
|
|
113
|
+
color: ButtonText;
|
|
114
|
+
}
|
|
115
|
+
}
|
|
116
|
+
}
|
|
117
|
+
|
|
118
|
+
& .navds-select__chevron {
|
|
119
|
+
color: var(--ax-text-subtle);
|
|
120
|
+
}
|
|
115
121
|
}
|
|
@@ -4,16 +4,11 @@
|
|
|
4
4
|
width: fit-content;
|
|
5
5
|
}
|
|
6
6
|
|
|
7
|
-
.navds-switch--right {
|
|
8
|
-
width: auto;
|
|
9
|
-
}
|
|
10
|
-
|
|
11
7
|
.navds-switch--small {
|
|
12
|
-
position: relative;
|
|
13
8
|
min-height: 2rem;
|
|
14
9
|
}
|
|
15
10
|
|
|
16
|
-
/* Input */
|
|
11
|
+
/* ------------------------------ Switch Input ------------------------------ */
|
|
17
12
|
.navds-switch__input {
|
|
18
13
|
cursor: pointer;
|
|
19
14
|
position: absolute;
|
|
@@ -22,17 +17,17 @@
|
|
|
22
17
|
height: 3rem;
|
|
23
18
|
opacity: 0;
|
|
24
19
|
top: 0;
|
|
25
|
-
}
|
|
26
20
|
|
|
27
|
-
.navds-switch--small >
|
|
28
|
-
|
|
29
|
-
|
|
21
|
+
.navds-switch--small > & {
|
|
22
|
+
height: 2rem;
|
|
23
|
+
top: 0;
|
|
24
|
+
}
|
|
30
25
|
}
|
|
31
26
|
|
|
32
|
-
/*
|
|
27
|
+
/* -------------------------- Switch content/label -------------------------- */
|
|
33
28
|
.navds-switch__label-wrapper {
|
|
34
29
|
cursor: pointer;
|
|
35
|
-
color: var(--
|
|
30
|
+
color: var(--ax-text-default);
|
|
36
31
|
}
|
|
37
32
|
|
|
38
33
|
.navds-switch__content {
|
|
@@ -40,134 +35,135 @@
|
|
|
40
35
|
flex-direction: column;
|
|
41
36
|
gap: 0.125rem;
|
|
42
37
|
padding: 0.75rem 0 0.75rem 3.25rem;
|
|
43
|
-
}
|
|
44
38
|
|
|
45
|
-
.navds-switch--right
|
|
46
|
-
|
|
47
|
-
}
|
|
39
|
+
.navds-switch--right & {
|
|
40
|
+
padding: 0.75rem 3.25rem 0.75rem 0;
|
|
41
|
+
}
|
|
48
42
|
|
|
49
|
-
.navds-switch--small
|
|
50
|
-
|
|
51
|
-
}
|
|
43
|
+
.navds-switch--small & {
|
|
44
|
+
padding: calc(var(--ax-spacing-2) - var(--ax-spacing-05)) 0 calc(var(--ax-spacing-2) - var(--ax-spacing-05)) 3.25rem;
|
|
45
|
+
}
|
|
52
46
|
|
|
53
|
-
.navds-switch--right.navds-switch--small
|
|
54
|
-
|
|
47
|
+
.navds-switch--right.navds-switch--small & {
|
|
48
|
+
padding: calc(var(--ax-spacing-2) - var(--ax-spacing-05)) 3.25rem calc(var(--ax-spacing-2) - var(--ax-spacing-05)) 0;
|
|
49
|
+
}
|
|
55
50
|
}
|
|
56
51
|
|
|
57
|
-
.navds-switch--with-description
|
|
58
|
-
.navds-switch--small > .navds-switch__label-wrapper > .navds-switch--with-description {
|
|
52
|
+
.navds-switch--with-description {
|
|
59
53
|
padding-bottom: 0;
|
|
60
54
|
}
|
|
61
55
|
|
|
62
56
|
.navds-switch__input:hover ~ .navds-switch__label-wrapper,
|
|
63
57
|
.navds-switch__label-wrapper:hover {
|
|
64
|
-
color: var(--
|
|
58
|
+
color: var(--ax-text-accent-strong);
|
|
65
59
|
}
|
|
66
60
|
|
|
67
61
|
.navds-switch__input:disabled:hover ~ .navds-switch__label-wrapper {
|
|
68
62
|
color: inherit;
|
|
69
63
|
}
|
|
70
64
|
|
|
71
|
-
/* Track */
|
|
65
|
+
/* ------------------------------ Switch Track ------------------------------ */
|
|
72
66
|
.navds-switch__track {
|
|
73
67
|
width: 2.75rem;
|
|
74
68
|
height: 1.5rem;
|
|
75
|
-
background-color: var(--
|
|
69
|
+
background-color: var(--ax-bg-input);
|
|
76
70
|
position: absolute;
|
|
77
|
-
top: var(--
|
|
71
|
+
top: var(--ax-spacing-3);
|
|
78
72
|
left: 0;
|
|
79
|
-
border-radius: var(--
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
.navds-switch--right > .navds-switch__track {
|
|
89
|
-
right: 0;
|
|
90
|
-
left: auto;
|
|
91
|
-
}
|
|
92
|
-
|
|
93
|
-
.navds-switch__input:checked ~ .navds-switch__track {
|
|
94
|
-
background-color: var(--ac-switch-checked-bg, var(--a-surface-action-selected));
|
|
95
|
-
}
|
|
96
|
-
|
|
97
|
-
.navds-switch__input:hover ~ .navds-switch__track {
|
|
98
|
-
background-color: var(--ac-switch-hover-bg, var(--a-surface-neutral-hover));
|
|
99
|
-
}
|
|
73
|
+
border-radius: var(--ax-border-radius-full);
|
|
74
|
+
border: 2px solid var(--ax-border-default);
|
|
75
|
+
transition-property: background-color, border-color;
|
|
76
|
+
transition-duration: 100ms;
|
|
77
|
+
transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1);
|
|
78
|
+
|
|
79
|
+
.navds-switch--small > & {
|
|
80
|
+
top: var(--ax-spacing-1);
|
|
81
|
+
}
|
|
100
82
|
|
|
101
|
-
.navds-switch__input:
|
|
102
|
-
|
|
103
|
-
|
|
83
|
+
.navds-switch__input:checked ~ & {
|
|
84
|
+
background-color: var(--ax-bg-accent-strong-pressed);
|
|
85
|
+
border-color: var(--ax-bg-accent-strong-pressed);
|
|
86
|
+
}
|
|
104
87
|
|
|
105
|
-
.navds-switch__input:
|
|
106
|
-
|
|
107
|
-
|
|
88
|
+
.navds-switch__input:hover:checked ~ & {
|
|
89
|
+
background-color: var(--ax-bg-accent-strong-hover);
|
|
90
|
+
border-color: var(--ax-bg-accent-strong-hover);
|
|
91
|
+
}
|
|
108
92
|
|
|
109
|
-
.navds-switch__input:
|
|
110
|
-
|
|
111
|
-
|
|
93
|
+
.navds-switch__input:disabled ~ & {
|
|
94
|
+
background-color: var(--ax-bg-input);
|
|
95
|
+
border-color: var(--ax-border-default);
|
|
96
|
+
}
|
|
112
97
|
|
|
113
|
-
.navds-switch__input:
|
|
114
|
-
|
|
115
|
-
|
|
116
|
-
|
|
117
|
-
0 0 0 1px var(--a-surface-default),
|
|
118
|
-
var(--a-shadow-focus);
|
|
119
|
-
}
|
|
98
|
+
.navds-switch__input:checked:disabled ~ & {
|
|
99
|
+
background-color: var(--ax-bg-accent-strong-pressed);
|
|
100
|
+
border-color: var(--ax-bg-accent-strong-pressed);
|
|
101
|
+
}
|
|
120
102
|
|
|
121
|
-
|
|
122
|
-
|
|
123
|
-
outline: 2px
|
|
124
|
-
box-shadow:
|
|
125
|
-
0 0 0 1px var(--a-surface-default),
|
|
126
|
-
var(--a-shadow-focus);
|
|
103
|
+
.navds-switch__input:focus-visible ~ & {
|
|
104
|
+
outline: 2px solid var(--ax-border-focus);
|
|
105
|
+
outline-offset: 2px;
|
|
127
106
|
}
|
|
128
107
|
}
|
|
129
108
|
|
|
130
|
-
/* Thumb */
|
|
109
|
+
/* ------------------------------ Switch Thumb ------------------------------ */
|
|
131
110
|
.navds-switch__thumb {
|
|
132
|
-
background-color: var(--
|
|
133
|
-
|
|
134
|
-
|
|
135
|
-
|
|
136
|
-
height: 1.25rem;
|
|
111
|
+
background-color: var(--ax-bg-neutral-strong);
|
|
112
|
+
border-radius: var(--ax-border-radius-full);
|
|
113
|
+
width: 1.125rem;
|
|
114
|
+
height: 1.125rem;
|
|
137
115
|
position: absolute;
|
|
138
116
|
transform: translateX(0);
|
|
139
|
-
|
|
140
|
-
top: var(--a-spacing-05);
|
|
141
|
-
transition: transform 250ms cubic-bezier(0.4, 0, 0.2, 1);
|
|
117
|
+
transition: transform 150ms cubic-bezier(0.4, 0, 0.2, 1);
|
|
142
118
|
display: flex;
|
|
143
119
|
align-items: center;
|
|
144
120
|
justify-content: center;
|
|
121
|
+
left: 0.0625rem;
|
|
122
|
+
top: 0.0625rem;
|
|
123
|
+
|
|
124
|
+
.navds-switch__input:checked ~ .navds-switch__track > & {
|
|
125
|
+
background-color: var(--ax-bg-raised);
|
|
126
|
+
transform: translateX(1.25rem);
|
|
127
|
+
color: var(--ax-text-accent-strong);
|
|
128
|
+
width: 1.25rem;
|
|
129
|
+
height: 1.25rem;
|
|
130
|
+
left: 0;
|
|
131
|
+
top: 0;
|
|
132
|
+
}
|
|
133
|
+
|
|
134
|
+
.navds-switch__input:checked ~ .navds-switch__track > & > .navds-switch__checkmark {
|
|
135
|
+
visibility: visible;
|
|
136
|
+
opacity: 1;
|
|
137
|
+
}
|
|
145
138
|
}
|
|
146
139
|
|
|
147
|
-
.navds-
|
|
148
|
-
|
|
149
|
-
|
|
140
|
+
.navds-switch__checkmark {
|
|
141
|
+
visibility: hidden;
|
|
142
|
+
opacity: 0;
|
|
143
|
+
transition: opacity 150ms cubic-bezier(0.4, 0, 0.2, 1);
|
|
150
144
|
}
|
|
151
145
|
|
|
152
146
|
@media (hover: hover) and (pointer: fine) {
|
|
153
|
-
.navds-switch__input:hover ~ .navds-switch__track > .navds-switch__thumb {
|
|
154
|
-
transform: translateX(0.
|
|
147
|
+
.navds-switch__input:hover:not(:disabled) ~ .navds-switch__track > .navds-switch__thumb {
|
|
148
|
+
transform: translateX(0.0625rem);
|
|
155
149
|
}
|
|
156
150
|
|
|
157
|
-
.navds-switch__input:checked:hover ~ .navds-switch__track > .navds-switch__thumb {
|
|
158
|
-
transform: translateX(1.
|
|
151
|
+
.navds-switch__input:checked:hover:not(:disabled) ~ .navds-switch__track > .navds-switch__thumb {
|
|
152
|
+
transform: translateX(1.19rem);
|
|
159
153
|
}
|
|
160
154
|
}
|
|
161
155
|
|
|
162
|
-
.navds-
|
|
163
|
-
|
|
164
|
-
}
|
|
156
|
+
.navds-switch--right {
|
|
157
|
+
width: auto;
|
|
165
158
|
|
|
166
|
-
.navds-switch__input
|
|
167
|
-
|
|
159
|
+
& .navds-switch__input,
|
|
160
|
+
& .navds-switch__track {
|
|
161
|
+
right: 0;
|
|
162
|
+
left: auto;
|
|
163
|
+
}
|
|
168
164
|
}
|
|
169
165
|
|
|
170
|
-
/* Disabled */
|
|
166
|
+
/* -------------------------- Switch Disabled-state ------------------------- */
|
|
171
167
|
.navds-switch__input:disabled {
|
|
172
168
|
appearance: none;
|
|
173
169
|
}
|
|
@@ -181,47 +177,51 @@
|
|
|
181
177
|
cursor: not-allowed;
|
|
182
178
|
}
|
|
183
179
|
|
|
184
|
-
/* Readonly */
|
|
185
|
-
.navds-switch--readonly
|
|
186
|
-
|
|
187
|
-
|
|
188
|
-
|
|
189
|
-
|
|
190
|
-
|
|
191
|
-
|
|
192
|
-
|
|
193
|
-
.navds-switch--readonly > .navds-switch__input {
|
|
194
|
-
cursor: default;
|
|
195
|
-
}
|
|
180
|
+
/* -------------------------- Switch Readonly state ------------------------- */
|
|
181
|
+
.navds-switch--readonly {
|
|
182
|
+
& > .navds-switch__track,
|
|
183
|
+
& > .navds-switch__input:hover ~ .navds-switch__track,
|
|
184
|
+
& > .navds-switch__input:checked ~ .navds-switch__track,
|
|
185
|
+
& > .navds-switch__input:checked:hover ~ .navds-switch__track {
|
|
186
|
+
background-color: var(--ax-bg-neutral-moderate);
|
|
187
|
+
border-color: var(--ax-border-neutral-subtleA);
|
|
188
|
+
}
|
|
196
189
|
|
|
197
|
-
|
|
198
|
-
|
|
199
|
-
|
|
200
|
-
}
|
|
190
|
+
& > .navds-switch__label-wrapper,
|
|
191
|
+
& > .navds-switch__input {
|
|
192
|
+
cursor: default;
|
|
193
|
+
}
|
|
201
194
|
|
|
202
|
-
.navds-
|
|
203
|
-
|
|
204
|
-
|
|
195
|
+
& > .navds-switch__input:hover ~ .navds-switch__label-wrapper,
|
|
196
|
+
& .navds-switch__label-wrapper:hover {
|
|
197
|
+
color: var(--ax-text-default);
|
|
198
|
+
}
|
|
205
199
|
|
|
206
|
-
|
|
207
|
-
|
|
208
|
-
|
|
209
|
-
}
|
|
200
|
+
& .navds-switch__label {
|
|
201
|
+
display: inline-flex;
|
|
202
|
+
}
|
|
210
203
|
|
|
211
|
-
|
|
212
|
-
|
|
213
|
-
}
|
|
204
|
+
& .navds-switch__thumb {
|
|
205
|
+
background-color: var(--ax-bg-neutral-strong);
|
|
206
|
+
}
|
|
214
207
|
|
|
215
|
-
|
|
216
|
-
|
|
217
|
-
|
|
208
|
+
& > .navds-switch__input:checked ~ .navds-switch__track > .navds-switch__thumb {
|
|
209
|
+
background-color: var(--ax-bg-neutral-strong);
|
|
210
|
+
color: var(--ax-text-neutral-contrast);
|
|
218
211
|
}
|
|
219
212
|
|
|
220
|
-
|
|
221
|
-
|
|
213
|
+
@media (hover: hover) and (pointer: fine) {
|
|
214
|
+
& > .navds-switch__input:hover ~ .navds-switch__track > .navds-switch__thumb {
|
|
215
|
+
transform: translateX(0);
|
|
216
|
+
}
|
|
217
|
+
|
|
218
|
+
& > .navds-switch__input:checked:hover ~ .navds-switch__track > .navds-switch__thumb {
|
|
219
|
+
transform: translateX(1.25rem);
|
|
220
|
+
}
|
|
222
221
|
}
|
|
223
222
|
}
|
|
224
223
|
|
|
224
|
+
/* ------------------------ Switch Forced colors mode ----------------------- */
|
|
225
225
|
@media (forced-colors: active) {
|
|
226
226
|
.navds-switch__input:hover ~ .navds-switch__label-wrapper,
|
|
227
227
|
.navds-switch__label-wrapper:hover {
|
|
@@ -230,7 +230,7 @@
|
|
|
230
230
|
|
|
231
231
|
.navds-switch__thumb,
|
|
232
232
|
.navds-switch--readonly .navds-switch__thumb {
|
|
233
|
-
background-color: fieldtext;
|
|
233
|
+
background-color: fieldtext !important;
|
|
234
234
|
}
|
|
235
235
|
|
|
236
236
|
.navds-switch__input:checked ~ .navds-switch__track > .navds-switch__thumb,
|
|
@@ -238,13 +238,6 @@
|
|
|
238
238
|
color: field;
|
|
239
239
|
}
|
|
240
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
241
|
.navds-switch__input:focus-visible ~ .navds-switch__track {
|
|
249
242
|
outline: 2px solid highlight;
|
|
250
243
|
outline-offset: 2px;
|
|
@@ -259,7 +252,7 @@
|
|
|
259
252
|
}
|
|
260
253
|
|
|
261
254
|
.navds-switch--disabled:not(.navds-switch--loading) .navds-switch__track {
|
|
262
|
-
border-color: graytext;
|
|
255
|
+
border-color: graytext !important;
|
|
263
256
|
}
|
|
264
257
|
|
|
265
258
|
.navds-switch--disabled:not(.navds-switch--loading) .navds-switch__label-wrapper,
|
|
@@ -38,7 +38,7 @@
|
|
|
38
38
|
min-height: 2rem;
|
|
39
39
|
}
|
|
40
40
|
|
|
41
|
-
.navds-text-field--error
|
|
41
|
+
.navds-text-field--error .navds-text-field__input:not(:disabled) {
|
|
42
42
|
border-color: var(--ax-border-danger);
|
|
43
43
|
box-shadow: 0 0 0 1px var(--ax-border-danger);
|
|
44
44
|
}
|