@helsenorge/designsystem-react 10.6.1 → 10.6.3

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.
Files changed (80) hide show
  1. package/CHANGELOG.md +15 -0
  2. package/components/AnchorLink/styles.module.scss +9 -7
  3. package/components/Avatar/styles.module.scss +9 -9
  4. package/components/Badge/styles.module.scss +9 -9
  5. package/components/Button/styles.module.scss +71 -77
  6. package/components/Checkbox/styles.module.scss +104 -104
  7. package/components/Chip/styles.module.scss +22 -21
  8. package/components/Close/styles.module.scss +5 -5
  9. package/components/DictionaryTrigger/styles.module.scss +5 -5
  10. package/components/Drawer/styles.module.scss +27 -27
  11. package/components/Dropdown/styles.module.scss +55 -55
  12. package/components/Duolist/styles.module.scss +4 -5
  13. package/components/EmptyState/styles.module.scss +16 -16
  14. package/components/ErrorWrapper/styles.module.scss +2 -2
  15. package/components/Expander/styles.module.scss +53 -53
  16. package/components/ExpanderHierarchy/expander.module.scss +35 -35
  17. package/components/ExpanderHierarchy/styles.module.scss +5 -4
  18. package/components/ExpanderList/index.js +12 -5
  19. package/components/ExpanderList/index.js.map +1 -1
  20. package/components/ExpanderList/styles.module.scss +32 -32
  21. package/components/EyebrowHeader/styles.module.scss +2 -0
  22. package/components/FormGroup/styles.module.scss +9 -9
  23. package/components/FormLayout/styles.module.scss +5 -4
  24. package/components/HelpBubble/styles.module.scss +14 -14
  25. package/components/HelpPanel/styles.module.scss +2 -2
  26. package/components/HelpQuestion/styles.module.scss +20 -20
  27. package/components/HighlightPanel/styles.module.scss +20 -20
  28. package/components/HorizontalScroll/styles.module.scss +3 -4
  29. package/components/Input/styles.module.scss +14 -14
  30. package/components/Label/styles.module.scss +16 -16
  31. package/components/LinkList/styles.module.scss +35 -35
  32. package/components/ListHeader/styles.module.scss +8 -8
  33. package/components/Loader/styles.module.scss +14 -14
  34. package/components/MaxCharacters/styles.module.scss +12 -12
  35. package/components/Modal/styles.module.scss +49 -49
  36. package/components/NotificationPanel/styles.module.scss +40 -40
  37. package/components/Panel/styles.module.scss +60 -60
  38. package/components/PanelList/styles.module.scss +6 -6
  39. package/components/PopMenu/styles.module.scss +16 -16
  40. package/components/PopOver/styles.module.scss +15 -14
  41. package/components/PopOver/styles.module.scss.d.ts +3 -0
  42. package/components/Progressbar/styles.module.scss +4 -4
  43. package/components/PromoPanel/styles.module.scss +31 -31
  44. package/components/RadioButton/styles.module.scss +100 -100
  45. package/components/Select/styles.module.scss +23 -23
  46. package/components/ServiceMessage/styles.module.scss +48 -48
  47. package/components/SharingStatus/styles.module.scss +13 -13
  48. package/components/Slider/styles.module.scss +25 -25
  49. package/components/Spacer/styles.module.scss +14 -14
  50. package/components/StatusDot/styles.module.scss +24 -24
  51. package/components/Step/styles.module.scss +3 -3
  52. package/components/StepButtons/styles.module.scss +11 -11
  53. package/components/Stepper/styles.module.scss +16 -24
  54. package/components/StickyNote/styles.module.scss +3 -3
  55. package/components/Table/styles.module.scss +31 -31
  56. package/components/Tabs/TabList/styles.module.scss +2 -2
  57. package/components/Tabs/TabPanel/styles.module.scss +7 -7
  58. package/components/Tabs/styles.module.scss +3 -3
  59. package/components/Tag/styles.module.scss +16 -16
  60. package/components/TagList/styles.module.scss +4 -4
  61. package/components/Textarea/styles.module.scss +9 -9
  62. package/components/Tile/styles.module.scss +31 -31
  63. package/components/Title/styles.module.scss +8 -8
  64. package/components/Toggle/styles.module.scss +18 -18
  65. package/components/Tooltip/TooltipWord/styles.module.scss +4 -4
  66. package/components/Trigger/styles.module.scss +21 -21
  67. package/components/Validation/styles.module.scss +11 -11
  68. package/hooks/useBreakpoint.js +3 -1
  69. package/hooks/useBreakpoint.js.map +1 -1
  70. package/package.json +1 -1
  71. package/scss/_body.scss +6 -5
  72. package/scss/_breakpoints.scss +2 -2
  73. package/scss/_font-mixins.scss +22 -22
  74. package/scss/_fonts.scss +2 -0
  75. package/scss/_input.scss +51 -54
  76. package/scss/_print.scss +5 -5
  77. package/scss/_reset.scss +1 -1
  78. package/scss/helsenorge.scss +7 -7
  79. package/scss/layout.module.scss +2 -2
  80. package/scss/typography.module.scss +46 -47
@@ -1,8 +1,9 @@
1
1
  @use 'sass:map';
2
- @use '../../scss/spacers' as spacers;
3
- @use '../../scss/palette' as palette;
4
- @use '../../scss/font-settings' as font-settings;
5
- @use '../../scss/breakpoints' as breakpoints;
2
+ @import '../../scss/spacers';
3
+ @import '../../scss/breakpoints';
4
+ @import '../../scss/palette';
5
+ @import '../../scss/font-settings';
6
+ @import '../AnchorLink/styles.module';
6
7
 
7
8
  .popover {
8
9
  $popover: &;
@@ -13,18 +14,18 @@
13
14
  max-width: 23.3125rem;
14
15
  text-align: start;
15
16
  font-family: inherit;
16
- font-size: font-settings.$font-size-sm;
17
- line-height: font-settings.$lineheight-size-sm;
18
- background-color: palette.$white;
17
+ font-size: $font-size-sm;
18
+ line-height: $lineheight-size-sm;
19
+ background-color: $white;
19
20
  z-index: 3;
20
21
  visibility: hidden;
21
- border: spacers.getSpacer(4xs) solid palette.$plum600;
22
+ border: getSpacer(4xs) solid $plum600;
22
23
  border-radius: 0.5625rem;
23
24
  box-shadow: 0 0.125rem 1.125rem 0 rgb(0 0 0 / 15%);
24
25
 
25
- @media (min-width: map.get(breakpoints.$grid-breakpoints, lg)) {
26
- font-size: font-settings.$font-size-md;
27
- line-height: font-settings.$lineheight-size-md;
26
+ @media (min-width: map.get($grid-breakpoints, lg)) {
27
+ font-size: $font-size-md;
28
+ line-height: $lineheight-size-md;
28
29
  }
29
30
 
30
31
  &--visible {
@@ -32,7 +33,7 @@
32
33
  }
33
34
 
34
35
  &__arrow {
35
- --drop-shadow-color: #{palette.$plum600};
36
+ --drop-shadow-color: #{$plum600};
36
37
 
37
38
  width: 0;
38
39
  height: 0;
@@ -44,14 +45,14 @@
44
45
 
45
46
  &--over {
46
47
  border-width: 0.625rem;
47
- border-bottom-color: palette.$white;
48
+ border-bottom-color: $white;
48
49
  filter: drop-shadow(var(--drop-shadow-color) 0 0.125rem 0.375rem 0.125rem);
49
50
  filter: drop-shadow(0 -0.185rem 0 var(--drop-shadow-color));
50
51
  }
51
52
 
52
53
  &--under {
53
54
  border-width: 0.625rem;
54
- border-top-color: palette.$white;
55
+ border-top-color: $white;
55
56
  filter: drop-shadow(var(--drop-shadow-color) 0 0.125rem 0.375rem 0.125rem);
56
57
  filter: drop-shadow(0 0.2rem 0 var(--drop-shadow-color));
57
58
  }
@@ -1,4 +1,7 @@
1
1
  export type Styles = {
2
+ anchorlink: string;
3
+ anchorlink__icon: string;
4
+ 'anchorlink-wrapper': string;
2
5
  popover: string;
3
6
  popover__arrow: string;
4
7
  'popover__arrow--over': string;
@@ -1,5 +1,5 @@
1
- @use '../../scss/palette' as palette;
2
- @use '../../scss/screen-reader' as *;
1
+ @import '../../scss/palette';
2
+ @import '../../scss/screen-reader';
3
3
 
4
4
  .progressbar {
5
5
  &__svg {
@@ -20,7 +20,7 @@
20
20
  }
21
21
 
22
22
  &--overlay-screen {
23
- background: palette.$transparent-grey;
23
+ background: $transparent-grey;
24
24
  position: fixed;
25
25
  inset: 0;
26
26
  }
@@ -29,7 +29,7 @@
29
29
  position: absolute;
30
30
  top: 0;
31
31
  left: 0;
32
- background: palette.$transparent-grey;
32
+ background: $transparent-grey;
33
33
  height: 100%;
34
34
  width: 100%;
35
35
  }
@@ -1,7 +1,7 @@
1
1
  @use 'sass:map';
2
- @use '../../scss/palette' as palette;
3
- @use '../../scss/spacers' as spacers;
4
- @use '../../scss/breakpoints' as breakpoints;
2
+ @import '../../scss/palette';
3
+ @import '../../scss/spacers';
4
+ @import '../../scss/breakpoints';
5
5
 
6
6
  $colors: 'neutral', 'blueberry', 'cherry';
7
7
 
@@ -11,42 +11,42 @@ $colors: 'neutral', 'blueberry', 'cherry';
11
11
  display: flex;
12
12
  align-items: center;
13
13
  border-radius: 8px;
14
- padding-left: spacers.getSpacer(s);
15
- padding-right: spacers.getSpacer(2xs);
14
+ padding-left: getSpacer(s);
15
+ padding-right: getSpacer(2xs);
16
16
  transition: background-color 0.15s ease-in-out;
17
17
 
18
18
  &:focus-within {
19
19
  box-shadow:
20
- 0 0 0 2px palette.$black,
21
- inset 0 0 0 2px palette.$black;
20
+ 0 0 0 2px $black,
21
+ inset 0 0 0 2px $black;
22
22
  }
23
23
 
24
- @media (min-width: map.get(breakpoints.$grid-breakpoints, xs)) {
24
+ @media (min-width: map.get($grid-breakpoints, xs)) {
25
25
  padding-left: 0;
26
26
  }
27
27
 
28
- @media (min-width: map.get(breakpoints.$grid-breakpoints, sm)) {
29
- padding-right: spacers.getSpacer(s);
28
+ @media (min-width: map.get($grid-breakpoints, sm)) {
29
+ padding-right: getSpacer(s);
30
30
  }
31
31
 
32
- @media (min-width: map.get(breakpoints.$grid-breakpoints, md)) {
33
- padding-right: spacers.getSpacer(l);
32
+ @media (min-width: map.get($grid-breakpoints, md)) {
33
+ padding-right: getSpacer(l);
34
34
  }
35
35
 
36
36
  &--no-illustration {
37
- padding-left: spacers.getSpacer(s);
37
+ padding-left: getSpacer(s);
38
38
 
39
- @media (min-width: map.get(breakpoints.$grid-breakpoints, md)) {
40
- padding-left: spacers.getSpacer(l);
39
+ @media (min-width: map.get($grid-breakpoints, md)) {
40
+ padding-left: getSpacer(l);
41
41
  }
42
42
  }
43
43
 
44
44
  @each $color in $colors {
45
45
  &--#{$color} {
46
- background-color: map.get(palette.$palette-map, #{$color}50);
46
+ background-color: map.get($palette-map, #{$color}50);
47
47
 
48
48
  &:hover {
49
- background-color: map.get(palette.$palette-map, #{$color}100);
49
+ background-color: map.get($palette-map, #{$color}100);
50
50
  }
51
51
  }
52
52
  }
@@ -54,7 +54,7 @@ $colors: 'neutral', 'blueberry', 'cherry';
54
54
  &__illustration {
55
55
  display: none;
56
56
 
57
- @media (min-width: map.get(breakpoints.$grid-breakpoints, xs)) {
57
+ @media (min-width: map.get($grid-breakpoints, xs)) {
58
58
  display: inline;
59
59
  }
60
60
  }
@@ -63,14 +63,14 @@ $colors: 'neutral', 'blueberry', 'cherry';
63
63
  display: flex;
64
64
  flex-direction: column;
65
65
  flex-grow: 1;
66
- gap: spacers.getSpacer(3xs);
67
- padding-top: spacers.getSpacer(m);
68
- padding-bottom: spacers.getSpacer(m);
69
-
70
- @media (min-width: map.get(breakpoints.$grid-breakpoints, md)) {
71
- gap: spacers.getSpacer(2xs);
72
- padding-top: spacers.getSpacer(l);
73
- padding-bottom: spacers.getSpacer(l);
66
+ gap: getSpacer(3xs);
67
+ padding-top: getSpacer(m);
68
+ padding-bottom: getSpacer(m);
69
+
70
+ @media (min-width: map.get($grid-breakpoints, md)) {
71
+ gap: getSpacer(2xs);
72
+ padding-top: getSpacer(l);
73
+ padding-bottom: getSpacer(l);
74
74
  }
75
75
 
76
76
  a,
@@ -87,14 +87,14 @@ $colors: 'neutral', 'blueberry', 'cherry';
87
87
  }
88
88
 
89
89
  &__icon {
90
- margin-left: spacers.getSpacer(xs);
90
+ margin-left: getSpacer(xs);
91
91
 
92
- @media (min-width: map.get(breakpoints.$grid-breakpoints, sm)) {
93
- margin-left: spacers.getSpacer(s);
92
+ @media (min-width: map.get($grid-breakpoints, sm)) {
93
+ margin-left: getSpacer(s);
94
94
  }
95
95
 
96
- @media (min-width: map.get(breakpoints.$grid-breakpoints, lg)) {
97
- margin-left: spacers.getSpacer(l);
96
+ @media (min-width: map.get($grid-breakpoints, lg)) {
97
+ margin-left: getSpacer(l);
98
98
  }
99
99
  }
100
100
  }
@@ -1,24 +1,24 @@
1
1
  @use 'sass:map';
2
2
  @use 'sass:meta';
3
3
  @use 'sass:string';
4
- @use '../../scss/spacers' as spacers;
5
- @use '../../scss/palette' as palette;
6
- @use '../../scss/font-settings' as font-settings;
7
- @use '../../scss/breakpoints' as breakpoints;
4
+ @import '../../scss/spacers';
5
+ @import '../../scss/breakpoints';
6
+ @import '../../scss/palette';
7
+ @import '../../scss/font-settings';
8
8
 
9
9
  @mixin dashed-border() {
10
10
  box-shadow: none;
11
11
 
12
- $encoded-color: string.slice(meta.inspect(palette.$neutral600), 2);
12
+ $encoded-color: string.slice(meta.inspect($neutral600), 2);
13
13
 
14
14
  background-image: url("data:image/svg+xml,%3csvg width='100%25' height='100%25' xmlns='http://www.w3.org/2000/svg'%3e%3crect width='100%25' height='100%25' fill='none' rx='100' ry='100' stroke='%23" + $encoded-color + "' stroke-width='4' stroke-dasharray='0.5, 7' stroke-dashoffset='0' stroke-linecap='square'/%3e%3c/svg%3e");
15
15
  border-radius: 100px;
16
16
  }
17
17
 
18
18
  .radio-button-errors {
19
- font-size: font-settings.$font-size-sm;
19
+ font-size: $font-size-sm;
20
20
  font-weight: 600;
21
- color: palette.$cherry600;
21
+ color: $cherry600;
22
22
  margin-top: 0;
23
23
  }
24
24
 
@@ -26,21 +26,21 @@
26
26
  cursor: pointer;
27
27
 
28
28
  &__large {
29
- margin: spacers.getSpacer(2xs) 0;
29
+ margin: getSpacer(2xs) 0;
30
30
 
31
31
  &--focused {
32
- box-shadow: 0 0 0 spacers.getSpacer(3xs);
33
- color: palette.$neutral500;
32
+ box-shadow: 0 0 0 getSpacer(3xs);
33
+ color: $neutral500;
34
34
  }
35
35
  &--focused#{&}--on-blueberry {
36
- color: palette.$blueberry500;
36
+ color: $blueberry500;
37
37
  }
38
38
 
39
39
  &--focused#{&}--selected {
40
- color: palette.$blueberry900;
40
+ color: $blueberry900;
41
41
  }
42
42
  &--focused#{&}--invalid {
43
- color: palette.$cherry400;
43
+ color: $cherry400;
44
44
  }
45
45
  }
46
46
  }
@@ -49,123 +49,123 @@
49
49
  display: flex;
50
50
  align-items: flex-start;
51
51
  cursor: pointer;
52
- line-height: font-settings.$lineheight-size-sm;
53
- color: palette.$black;
52
+ line-height: $lineheight-size-sm;
53
+ color: $black;
54
54
 
55
55
  &--on-dark {
56
- color: palette.$white;
56
+ color: $white;
57
57
  }
58
58
 
59
59
  &--invalid {
60
- color: palette.$black;
60
+ color: $black;
61
61
  }
62
62
 
63
63
  &--disabled {
64
64
  cursor: default;
65
- color: palette.$neutral700;
65
+ color: $neutral700;
66
66
  }
67
67
 
68
68
  &__large {
69
- padding: spacers.getSpacer(s);
70
- background-color: palette.$neutral50;
69
+ padding: getSpacer(s);
70
+ background-color: $neutral50;
71
71
 
72
72
  &:hover {
73
- background-color: palette.$neutral100;
73
+ background-color: $neutral100;
74
74
  }
75
75
 
76
76
  &--on-blueberry {
77
- background-color: palette.$white;
77
+ background-color: $white;
78
78
 
79
79
  &:focus {
80
- background-color: palette.$white;
80
+ background-color: $white;
81
81
  }
82
82
 
83
83
  &:hover {
84
- background-color: palette.$blueberry100;
84
+ background-color: $blueberry100;
85
85
  }
86
86
  }
87
87
 
88
88
  &--on-grey {
89
- background-color: palette.$white;
89
+ background-color: $white;
90
90
 
91
91
  &:hover {
92
- background-color: palette.$neutral100;
92
+ background-color: $neutral100;
93
93
  }
94
94
 
95
95
  &:focus {
96
- background-color: palette.$white;
96
+ background-color: $white;
97
97
  }
98
98
  }
99
99
  }
100
100
 
101
101
  &__large#{&}--on-dark {
102
- background-color: palette.$blueberry800;
102
+ background-color: $blueberry800;
103
103
  }
104
104
  &__large#{&}--invalid {
105
- background-color: palette.$white;
105
+ background-color: $white;
106
106
 
107
107
  &:hover {
108
- background-color: palette.$cherry100;
108
+ background-color: $cherry100;
109
109
  }
110
110
  }
111
111
  &__large#{&}__large--selected-invalid {
112
- background-color: palette.$cherry100;
113
- color: palette.$black;
112
+ background-color: $cherry100;
113
+ color: $black;
114
114
 
115
115
  &:hover {
116
- background-color: palette.$cherry200;
116
+ background-color: $cherry200;
117
117
  }
118
118
  }
119
119
 
120
120
  &__large#{&}__large--on-grey {
121
- background-color: palette.$white;
121
+ background-color: $white;
122
122
 
123
123
  &:hover {
124
- background-color: palette.$neutral100;
124
+ background-color: $neutral100;
125
125
  }
126
126
 
127
127
  &:focus {
128
- background-color: palette.$white;
128
+ background-color: $white;
129
129
  }
130
130
  }
131
131
 
132
132
  &__large#{&}__large--on-blueberry {
133
- background-color: palette.$white;
133
+ background-color: $white;
134
134
 
135
135
  &:hover {
136
- background-color: palette.$blueberry100;
136
+ background-color: $blueberry100;
137
137
  }
138
138
 
139
139
  &:focus {
140
- background-color: palette.$white;
140
+ background-color: $white;
141
141
  }
142
142
  }
143
143
 
144
144
  &__large--selected {
145
- background-color: palette.$blueberry500;
146
- color: palette.$white;
145
+ background-color: $blueberry500;
146
+ color: $white;
147
147
 
148
148
  &:hover {
149
- background-color: palette.$blueberry600;
149
+ background-color: $blueberry600;
150
150
  }
151
151
  }
152
152
 
153
153
  &__large#{&}__large--disabled {
154
- color: palette.$neutral700;
155
- background-color: palette.$neutral50;
154
+ color: $neutral700;
155
+ background-color: $neutral50;
156
156
 
157
157
  &:hover {
158
- background-color: palette.$neutral50;
158
+ background-color: $neutral50;
159
159
  }
160
160
 
161
161
  &:focus {
162
- background-color: palette.$neutral50;
162
+ background-color: $neutral50;
163
163
  }
164
164
  }
165
165
 
166
- @media (min-width: map.get(breakpoints.$grid-breakpoints, md)) {
166
+ @media (min-width: map.get($grid-breakpoints, md)) {
167
167
  &__large {
168
- padding: 1.68rem spacers.getSpacer(l);
168
+ padding: 1.68rem getSpacer(l);
169
169
  }
170
170
  }
171
171
  }
@@ -177,102 +177,102 @@
177
177
  justify-content: center;
178
178
  align-items: center;
179
179
  border-radius: 10rem;
180
- margin: 0 spacers.getSpacer(s) 0 0;
180
+ margin: 0 getSpacer(s) 0 0;
181
181
  height: 1.5rem;
182
182
  width: 1.5rem;
183
183
  min-height: 1.5rem;
184
184
  min-width: 1.5rem;
185
- color: palette.$neutral700;
186
- box-shadow: 0 0 0 spacers.getSpacer(4xs);
185
+ color: $neutral700;
186
+ box-shadow: 0 0 0 getSpacer(4xs);
187
187
  outline: none;
188
188
 
189
189
  &:focus {
190
- box-shadow: 0 0 0 spacers.getSpacer(3xs);
191
- color: palette.$black;
190
+ box-shadow: 0 0 0 getSpacer(3xs);
191
+ color: $black;
192
192
  }
193
193
 
194
194
  &:hover {
195
- box-shadow: 0 0 0 spacers.getSpacer(3xs);
196
- background-color: palette.$neutral100;
195
+ box-shadow: 0 0 0 getSpacer(3xs);
196
+ background-color: $neutral100;
197
197
  }
198
198
 
199
199
  :active > & {
200
- box-shadow: 0 0 0 spacers.getSpacer(3xs);
201
- color: palette.$black;
200
+ box-shadow: 0 0 0 getSpacer(3xs);
201
+ color: $black;
202
202
  }
203
203
 
204
204
  &:checked {
205
- color: palette.$blueberry500;
205
+ color: $blueberry500;
206
206
 
207
207
  &:hover {
208
- box-shadow: 0 0 0 spacers.getSpacer(4xs);
209
- background-color: palette.$blueberry50;
208
+ box-shadow: 0 0 0 getSpacer(4xs);
209
+ background-color: $blueberry50;
210
210
  }
211
211
 
212
212
  &:focus {
213
- box-shadow: 0 0 0 spacers.getSpacer(3xs);
214
- color: palette.$black;
213
+ box-shadow: 0 0 0 getSpacer(3xs);
214
+ color: $black;
215
215
  }
216
216
  }
217
217
 
218
218
  &--on-blueberry {
219
- color: palette.$blueberry500;
219
+ color: $blueberry500;
220
220
 
221
221
  :hover > & {
222
- background-color: palette.$blueberry100;
222
+ background-color: $blueberry100;
223
223
  }
224
224
  }
225
225
 
226
226
  &--on-dark {
227
- color: palette.$neutral200;
227
+ color: $neutral200;
228
228
 
229
229
  &:hover {
230
- background-color: palette.$inverted-hover-old;
231
- box-shadow: 0 0 0 spacers.getSpacer(3xs);
230
+ background-color: $inverted-hover-old;
231
+ box-shadow: 0 0 0 getSpacer(3xs);
232
232
  }
233
233
 
234
234
  &:focus {
235
- color: palette.$white;
235
+ color: $white;
236
236
  }
237
237
 
238
238
  :active > & {
239
- box-shadow: 0 0 0 spacers.getSpacer(3xs);
240
- color: palette.$white;
239
+ box-shadow: 0 0 0 getSpacer(3xs);
240
+ color: $white;
241
241
  }
242
242
 
243
243
  &:checked {
244
- color: palette.$blueberry200;
244
+ color: $blueberry200;
245
245
 
246
246
  &:hover {
247
- background-color: palette.$inverted-hover-old;
247
+ background-color: $inverted-hover-old;
248
248
  }
249
249
 
250
250
  &:focus {
251
- color: palette.$white;
251
+ color: $white;
252
252
  }
253
253
  }
254
254
  }
255
255
 
256
256
  &--invalid {
257
- color: palette.$cherry600;
257
+ color: $cherry600;
258
258
 
259
259
  &:hover {
260
- background-color: palette.$cherry100;
260
+ background-color: $cherry100;
261
261
  }
262
262
 
263
263
  &:active {
264
- color: palette.$black;
264
+ color: $black;
265
265
  }
266
266
 
267
267
  &:focus {
268
- color: palette.$black;
268
+ color: $black;
269
269
  }
270
270
 
271
271
  &:checked {
272
- color: palette.$cherry600;
272
+ color: $cherry600;
273
273
 
274
274
  &:hover {
275
- background-color: palette.$cherry100;
275
+ background-color: $cherry100;
276
276
  }
277
277
  }
278
278
  }
@@ -294,15 +294,15 @@
294
294
  }
295
295
 
296
296
  &:active {
297
- color: palette.$neutral600;
297
+ color: $neutral600;
298
298
  }
299
299
 
300
300
  &:checked {
301
- color: palette.$neutral600;
301
+ color: $neutral600;
302
302
 
303
303
  &:hover {
304
- box-shadow: 0 0 0 spacers.getSpacer(4xs);
305
- background-color: palette.$neutral50;
304
+ box-shadow: 0 0 0 getSpacer(4xs);
305
+ background-color: $neutral50;
306
306
  }
307
307
  }
308
308
  }
@@ -311,7 +311,7 @@
311
311
  &:checked::before {
312
312
  content: '';
313
313
  display: flex;
314
- background-color: palette.$blueberry500;
314
+ background-color: $blueberry500;
315
315
  width: 0.875rem;
316
316
  height: 0.875rem;
317
317
  border-radius: 10rem;
@@ -324,11 +324,11 @@
324
324
  }
325
325
 
326
326
  &--on-dark:checked::before {
327
- background-color: palette.$blueberry200;
327
+ background-color: $blueberry200;
328
328
  }
329
329
 
330
330
  &--invalid:checked::before {
331
- background-color: palette.$cherry600;
331
+ background-color: $cherry600;
332
332
  }
333
333
 
334
334
  &--disabled:checked::before {
@@ -338,43 +338,43 @@
338
338
  &__large {
339
339
  &:checked {
340
340
  outline: none;
341
- color: palette.$blueberry100;
341
+ color: $blueberry100;
342
342
  }
343
343
 
344
344
  &:hover {
345
- box-shadow: 0 0 0 spacers.getSpacer(3xs);
345
+ box-shadow: 0 0 0 getSpacer(3xs);
346
346
  }
347
347
 
348
348
  &:focus {
349
- box-shadow: 0 0 0 spacers.getSpacer(3xs);
350
- color: palette.$black;
349
+ box-shadow: 0 0 0 getSpacer(3xs);
350
+ color: $black;
351
351
  }
352
352
 
353
353
  &:focus:checked {
354
- color: palette.$white;
354
+ color: $white;
355
355
  }
356
356
 
357
357
  &:checked::before {
358
- background-color: palette.$blueberry100;
358
+ background-color: $blueberry100;
359
359
  }
360
360
 
361
361
  &:checked:hover {
362
- box-shadow: 0 0 0 spacers.getSpacer(4xs);
362
+ box-shadow: 0 0 0 getSpacer(4xs);
363
363
  background-color: unset;
364
364
  }
365
365
 
366
366
  &:checked:hover:focus {
367
- box-shadow: 0 0 0 spacers.getSpacer(3xs);
368
- color: palette.$white;
367
+ box-shadow: 0 0 0 getSpacer(3xs);
368
+ color: $white;
369
369
  }
370
370
 
371
371
  &--invalid {
372
372
  &:checked {
373
- color: palette.$cherry500;
373
+ color: $cherry500;
374
374
  }
375
375
 
376
376
  &:checked::before {
377
- background-color: palette.$cherry500;
377
+ background-color: $cherry500;
378
378
  }
379
379
 
380
380
  &:checked:hover {
@@ -382,11 +382,11 @@
382
382
  }
383
383
 
384
384
  &:checked:focus {
385
- color: palette.$black;
385
+ color: $black;
386
386
  }
387
387
 
388
388
  &:checked:focus:hover {
389
- color: palette.$black;
389
+ color: $black;
390
390
  }
391
391
  }
392
392
 
@@ -398,7 +398,7 @@
398
398
  }
399
399
 
400
400
  &:checked::before {
401
- background-color: palette.$neutral600;
401
+ background-color: $neutral600;
402
402
  }
403
403
  }
404
404
  }