@helsenorge/designsystem-react 10.2.0 → 10.3.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.
Files changed (78) hide show
  1. package/CHANGELOG.md +25 -0
  2. package/components/AnchorLink/styles.module.scss +8 -9
  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 +65 -59
  6. package/components/Checkbox/styles.module.scss +103 -103
  7. package/components/Chip/styles.module.scss +22 -22
  8. package/components/Close/styles.module.scss +4 -4
  9. package/components/DictionaryTrigger/styles.module.scss +5 -5
  10. package/components/Drawer/styles.module.scss +16 -16
  11. package/components/Dropdown/styles.module.scss +51 -51
  12. package/components/Duolist/index.js +2 -1
  13. package/components/Duolist/index.js.map +1 -1
  14. package/components/Duolist/styles.module.scss +57 -35
  15. package/components/Duolist/styles.module.scss.d.ts +1 -0
  16. package/components/EmptyState/styles.module.scss +12 -12
  17. package/components/ErrorWrapper/styles.module.scss +11 -21
  18. package/components/ErrorWrapper/styles.module.scss.d.ts +0 -1
  19. package/components/Expander/styles.module.scss +46 -46
  20. package/components/ExpanderHierarchy/expander.module.scss +29 -29
  21. package/components/ExpanderHierarchy/styles.module.scss +4 -5
  22. package/components/ExpanderList/styles.module.scss +30 -30
  23. package/components/EyebrowHeader/styles.module.scss +0 -2
  24. package/components/FormGroup/styles.module.scss +9 -9
  25. package/components/FormLayout/styles.module.scss +4 -5
  26. package/components/HelpBubble/styles.module.scss +13 -13
  27. package/components/HelpPanel/styles.module.scss +2 -2
  28. package/components/HelpQuestion/styles.module.scss +19 -19
  29. package/components/HighlightPanel/styles.module.scss +20 -20
  30. package/components/HorizontalScroll/styles.module.scss +4 -3
  31. package/components/Input/styles.module.scss +12 -12
  32. package/components/Label/styles.module.scss +15 -15
  33. package/components/LinkList/styles.module.scss +33 -33
  34. package/components/ListHeader/styles.module.scss +8 -8
  35. package/components/Loader/styles.module.scss +14 -14
  36. package/components/MaxCharacters/styles.module.scss +11 -11
  37. package/components/Modal/styles.module.scss +34 -34
  38. package/components/NotificationPanel/styles.module.scss +33 -33
  39. package/components/Panel/styles.module.scss +45 -45
  40. package/components/PanelList/styles.module.scss +5 -5
  41. package/components/PopMenu/styles.module.scss +15 -15
  42. package/components/PopOver/styles.module.scss +13 -14
  43. package/components/PopOver/styles.module.scss.d.ts +0 -3
  44. package/components/Progressbar/styles.module.scss +4 -4
  45. package/components/PromoPanel/styles.module.scss +22 -22
  46. package/components/RadioButton/styles.module.scss +99 -99
  47. package/components/Select/styles.module.scss +21 -21
  48. package/components/ServiceMessage/styles.module.scss +49 -49
  49. package/components/SharingStatus/styles.module.scss +13 -13
  50. package/components/Slider/styles.module.scss +24 -24
  51. package/components/Spacer/styles.module.scss +14 -14
  52. package/components/StatusDot/styles.module.scss +22 -22
  53. package/components/Step/styles.module.scss +3 -3
  54. package/components/StepButtons/styles.module.scss +9 -9
  55. package/components/Stepper/styles.module.scss +23 -15
  56. package/components/StickyNote/styles.module.scss +3 -3
  57. package/components/Table/styles.module.scss +32 -32
  58. package/components/Tabs/TabList/styles.module.scss +1 -1
  59. package/components/Tabs/TabPanel/styles.module.scss +5 -5
  60. package/components/Tabs/styles.module.scss +1 -1
  61. package/components/Tag/styles.module.scss +16 -16
  62. package/components/TagList/styles.module.scss +4 -4
  63. package/components/Textarea/styles.module.scss +9 -9
  64. package/components/Tile/styles.module.scss +25 -25
  65. package/components/Title/styles.module.scss +8 -8
  66. package/components/Toggle/styles.module.scss +14 -14
  67. package/components/Tooltip/TooltipWord/styles.module.scss +4 -4
  68. package/components/Trigger/styles.module.scss +21 -21
  69. package/components/Validation/styles.module.scss +10 -10
  70. package/package.json +1 -1
  71. package/scss/_body.scss +5 -6
  72. package/scss/_breakpoints.scss +2 -2
  73. package/scss/_font-mixins.scss +2 -2
  74. package/scss/_fonts.scss +0 -2
  75. package/scss/_input.scss +53 -50
  76. package/scss/_print.scss +2 -2
  77. package/scss/layout.module.scss +2 -2
  78. package/scss/typography.module.scss +44 -43
@@ -1,9 +1,9 @@
1
1
  @use 'sass:map';
2
- @import '../../scss/spacers';
3
- @import '../../scss/breakpoints';
4
- @import '../../scss/palette';
5
- @import '../../scss/font-settings';
6
- @import '../../scss/screen-reader';
2
+ @use '../../scss/spacers' as spacers;
3
+ @use '../../scss/palette' as palette;
4
+ @use '../../scss/font-settings' as font-settings;
5
+ @use '../../scss/screen-reader' as *;
6
+ @use '../../scss/breakpoints' as *;
7
7
 
8
8
  @mixin dashed-dotted-border() {
9
9
  box-shadow: none;
@@ -15,36 +15,36 @@
15
15
 
16
16
  background-image:
17
17
  // Square dots at corners
18
- linear-gradient($neutral600, $neutral600),
19
- linear-gradient($neutral600, $neutral600),
20
- linear-gradient($neutral600, $neutral600),
21
- linear-gradient($neutral600, $neutral600),
18
+ linear-gradient(palette.$neutral600, palette.$neutral600),
19
+ linear-gradient(palette.$neutral600, palette.$neutral600),
20
+ linear-gradient(palette.$neutral600, palette.$neutral600),
21
+ linear-gradient(palette.$neutral600, palette.$neutral600),
22
22
  // Dashed lines
23
23
  repeating-linear-gradient(
24
24
  0deg,
25
- $neutral600,
26
- $neutral600 var(--dash-length),
25
+ palette.$neutral600,
26
+ palette.$neutral600 var(--dash-length),
27
27
  transparent var(--dash-length),
28
28
  transparent calc(var(--dash-length) + var(--gap-length))
29
29
  ),
30
30
  repeating-linear-gradient(
31
31
  90deg,
32
- $neutral600,
33
- $neutral600 var(--dash-length),
32
+ palette.$neutral600,
33
+ palette.$neutral600 var(--dash-length),
34
34
  transparent var(--dash-length),
35
35
  transparent calc(var(--dash-length) + var(--gap-length))
36
36
  ),
37
37
  repeating-linear-gradient(
38
38
  180deg,
39
- $neutral600,
40
- $neutral600 var(--dash-length),
39
+ palette.$neutral600,
40
+ palette.$neutral600 var(--dash-length),
41
41
  transparent var(--dash-length),
42
42
  transparent calc(var(--dash-length) + var(--gap-length))
43
43
  ),
44
44
  repeating-linear-gradient(
45
45
  270deg,
46
- $neutral600,
47
- $neutral600 var(--dash-length),
46
+ palette.$neutral600,
47
+ palette.$neutral600 var(--dash-length),
48
48
  transparent var(--dash-length),
49
49
  transparent calc(var(--dash-length) + var(--gap-length))
50
50
  );
@@ -88,15 +88,15 @@
88
88
  $checkbox-icon-size: 1.625rem;
89
89
 
90
90
  .checkbox-errors {
91
- font-size: $font-size-sm;
91
+ font-size: font-settings.$font-size-sm;
92
92
  font-weight: 600;
93
- color: $cherry600;
93
+ color: palette.$cherry600;
94
94
  margin-top: 0;
95
95
  }
96
96
 
97
97
  .checkbox-wrapper {
98
98
  &--large {
99
- margin: getSpacer(2xs) 0;
99
+ margin: spacers.getSpacer(2xs) 0;
100
100
  }
101
101
  }
102
102
 
@@ -106,26 +106,26 @@ $checkbox-icon-size: 1.625rem;
106
106
  cursor: pointer;
107
107
 
108
108
  &__text {
109
- color: $black;
109
+ color: palette.$black;
110
110
 
111
111
  &__large {
112
112
  &--checked {
113
- color: $white;
113
+ color: palette.$white;
114
114
  }
115
115
  &--checked#{&}--invalid {
116
- color: $black;
116
+ color: palette.$black;
117
117
  }
118
118
  &--checked#{&}--disabled {
119
- color: $neutral700;
119
+ color: palette.$neutral700;
120
120
  }
121
121
  }
122
122
 
123
123
  &--disabled {
124
- color: $neutral700;
124
+ color: palette.$neutral700;
125
125
  }
126
126
 
127
127
  &--on-dark {
128
- color: $white;
128
+ color: palette.$white;
129
129
  }
130
130
  }
131
131
 
@@ -135,119 +135,119 @@ $checkbox-icon-size: 1.625rem;
135
135
 
136
136
  &__large {
137
137
  &--focus {
138
- box-shadow: 0 0 0 getSpacer(3xs);
138
+ box-shadow: 0 0 0 spacers.getSpacer(3xs);
139
139
  }
140
140
 
141
141
  &--on-white {
142
- background-color: $neutral50;
142
+ background-color: palette.$neutral50;
143
143
 
144
144
  :hover > & {
145
- background-color: $neutral100;
145
+ background-color: palette.$neutral100;
146
146
  }
147
147
  }
148
148
  &--on-white#{&}--focus {
149
- color: $neutral500;
149
+ color: palette.$neutral500;
150
150
  }
151
151
 
152
152
  &--on-grey {
153
- background-color: $white;
153
+ background-color: palette.$white;
154
154
 
155
155
  :hover > & {
156
- background-color: $neutral100;
156
+ background-color: palette.$neutral100;
157
157
  }
158
158
  }
159
159
 
160
160
  &--on-grey#{&}--focus {
161
- color: $neutral500;
162
- background-color: $white;
161
+ color: palette.$neutral500;
162
+ background-color: palette.$white;
163
163
  }
164
164
 
165
165
  &--on-blueberry {
166
- background-color: $white;
166
+ background-color: palette.$white;
167
167
 
168
168
  :hover > & {
169
- background-color: $blueberry100;
169
+ background-color: palette.$blueberry100;
170
170
  }
171
171
  }
172
172
  &--on-blueberry#{&}--focus {
173
- color: $blueberry500;
174
- background-color: $white;
173
+ color: palette.$blueberry500;
174
+ background-color: palette.$white;
175
175
  }
176
176
 
177
177
  &--on-invalid {
178
- background-color: $white;
178
+ background-color: palette.$white;
179
179
 
180
180
  :hover > & {
181
- background-color: $cherry100;
181
+ background-color: palette.$cherry100;
182
182
  }
183
183
  }
184
184
  &--on-invalid#{&}--focus {
185
- color: $cherry400;
186
- background-color: $white;
185
+ color: palette.$cherry400;
186
+ background-color: palette.$white;
187
187
  }
188
188
 
189
189
  &--disabled {
190
- background-color: $neutral50;
190
+ background-color: palette.$neutral50;
191
191
 
192
192
  :hover > & {
193
- background-color: $neutral50;
193
+ background-color: palette.$neutral50;
194
194
  }
195
195
  }
196
196
 
197
197
  &--checked {
198
- background-color: $blueberry500;
198
+ background-color: palette.$blueberry500;
199
199
 
200
200
  :hover > & {
201
- background-color: $blueberry600;
201
+ background-color: palette.$blueberry600;
202
202
  }
203
203
  }
204
204
  &--checked#{&}--focus {
205
- color: $blueberry900;
206
- background-color: $blueberry500;
205
+ color: palette.$blueberry900;
206
+ background-color: palette.$blueberry500;
207
207
  }
208
208
 
209
209
  &--checked#{&}--on-invalid {
210
- background-color: $cherry100;
210
+ background-color: palette.$cherry100;
211
211
 
212
212
  :hover > & {
213
- background-color: $cherry200;
213
+ background-color: palette.$cherry200;
214
214
  }
215
215
  }
216
216
 
217
217
  &--checked#{&}--on-invalid#{&}--focus {
218
- color: $cherry400;
218
+ color: palette.$cherry400;
219
219
  }
220
220
 
221
221
  &--checked#{&}--disabled {
222
- color: $neutral700;
223
- background-color: $neutral50;
222
+ color: palette.$neutral700;
223
+ background-color: palette.$neutral50;
224
224
 
225
225
  :hover > & {
226
- color: $neutral700;
227
- background-color: $neutral50;
226
+ color: palette.$neutral700;
227
+ background-color: palette.$neutral50;
228
228
  }
229
229
  }
230
230
 
231
231
  &--disabled#{&}--white {
232
- background-color: $white;
232
+ background-color: palette.$white;
233
233
 
234
234
  :hover > & {
235
- background-color: $white;
235
+ background-color: palette.$white;
236
236
  }
237
237
  }
238
238
  }
239
239
 
240
240
  &--large {
241
- padding: getSpacer(s);
241
+ padding: spacers.getSpacer(s);
242
242
  }
243
243
 
244
244
  &--large#{&}--on-dark {
245
- background-color: $blueberry800;
245
+ background-color: palette.$blueberry800;
246
246
  }
247
247
 
248
248
  @media (min-width: map.get($grid-breakpoints, md)) {
249
249
  &--large {
250
- padding: 1.68rem getSpacer(l);
250
+ padding: 1.68rem spacers.getSpacer(l);
251
251
  }
252
252
  }
253
253
  }
@@ -259,12 +259,12 @@ $checkbox-icon-size: 1.625rem;
259
259
  display: flex;
260
260
  justify-content: center;
261
261
  align-items: center;
262
- margin: getSpacer(4xs) getSpacer(s) getSpacer(4xs) getSpacer(4xs);
262
+ margin: spacers.getSpacer(4xs) spacers.getSpacer(s) spacers.getSpacer(4xs) spacers.getSpacer(4xs);
263
263
  height: $checkbox-icon-size;
264
264
  width: $checkbox-icon-size;
265
265
  min-height: $checkbox-icon-size;
266
266
  min-width: $checkbox-icon-size;
267
- box-shadow: 0 0 0 getSpacer(4xs);
267
+ box-shadow: 0 0 0 spacers.getSpacer(4xs);
268
268
 
269
269
  // Vi overstyrer farger satt ved high-contrast mode i nettleser/os
270
270
  @media (forced-colors: active) {
@@ -274,36 +274,36 @@ $checkbox-icon-size: 1.625rem;
274
274
  }
275
275
 
276
276
  :hover > & {
277
- box-shadow: 0 0 0 getSpacer(3xs);
277
+ box-shadow: 0 0 0 spacers.getSpacer(3xs);
278
278
  }
279
279
 
280
280
  &--on-white,
281
281
  &--on-grey {
282
- color: $neutral700;
282
+ color: palette.$neutral700;
283
283
 
284
284
  :hover > & {
285
- background-color: $neutral100;
285
+ background-color: palette.$neutral100;
286
286
  }
287
287
  }
288
288
 
289
289
  &--on-blueberry {
290
- color: $blueberry500;
290
+ color: palette.$blueberry500;
291
291
 
292
292
  :hover > & {
293
- background-color: $blueberry100;
293
+ background-color: palette.$blueberry100;
294
294
  }
295
295
  }
296
296
 
297
297
  &--on-invalid {
298
- color: $cherry500;
298
+ color: palette.$cherry500;
299
299
 
300
300
  :hover > & {
301
- background-color: $cherry100;
301
+ background-color: palette.$cherry100;
302
302
  }
303
303
  }
304
304
 
305
305
  &--on-dark {
306
- color: $neutral200;
306
+ color: palette.$neutral200;
307
307
 
308
308
  :hover > & {
309
309
  background-color: #ffffff1a;
@@ -312,59 +312,59 @@ $checkbox-icon-size: 1.625rem;
312
312
 
313
313
  &__regular {
314
314
  &--checked {
315
- background-color: $blueberry500;
316
- color: $blueberry500;
317
- box-shadow: 0 0 0 getSpacer(4xs);
315
+ background-color: palette.$blueberry500;
316
+ color: palette.$blueberry500;
317
+ box-shadow: 0 0 0 spacers.getSpacer(4xs);
318
318
 
319
319
  :hover > & {
320
- background-color: $blueberry600;
321
- color: $blueberry600;
322
- box-shadow: 0 0 0 getSpacer(4xs);
320
+ background-color: palette.$blueberry600;
321
+ color: palette.$blueberry600;
322
+ box-shadow: 0 0 0 spacers.getSpacer(4xs);
323
323
  }
324
324
  }
325
325
  &--checked#{&}--invalid {
326
- background-color: $cherry500;
327
- color: $cherry500;
328
- box-shadow: 0 0 0 getSpacer(4xs);
326
+ background-color: palette.$cherry500;
327
+ color: palette.$cherry500;
328
+ box-shadow: 0 0 0 spacers.getSpacer(4xs);
329
329
 
330
330
  :hover > & {
331
- background-color: $cherry600;
332
- color: $cherry600;
333
- box-shadow: 0 0 0 getSpacer(4xs);
331
+ background-color: palette.$cherry600;
332
+ color: palette.$cherry600;
333
+ box-shadow: 0 0 0 spacers.getSpacer(4xs);
334
334
  }
335
335
  }
336
336
  &--checked#{&}--on-dark {
337
- background-color: $blueberry50;
338
- color: $blueberry50;
339
- box-shadow: 0 0 0 getSpacer(4xs);
337
+ background-color: palette.$blueberry50;
338
+ color: palette.$blueberry50;
339
+ box-shadow: 0 0 0 spacers.getSpacer(4xs);
340
340
 
341
341
  :hover > & {
342
- background-color: $blueberry200;
343
- color: $blueberry200;
344
- box-shadow: 0 0 0 getSpacer(4xs);
342
+ background-color: palette.$blueberry200;
343
+ color: palette.$blueberry200;
344
+ box-shadow: 0 0 0 spacers.getSpacer(4xs);
345
345
  }
346
346
  }
347
347
  }
348
348
 
349
349
  &__large {
350
350
  &--checked {
351
- background-color: $blueberry50;
351
+ background-color: palette.$blueberry50;
352
352
  box-shadow: none;
353
353
 
354
354
  :hover > & {
355
- background-color: $blueberry200;
355
+ background-color: palette.$blueberry200;
356
356
  box-shadow: none;
357
357
  }
358
358
  }
359
359
  &--checked#{&}--invalid {
360
- background-color: $cherry500;
360
+ background-color: palette.$cherry500;
361
361
 
362
362
  :hover > & {
363
- background-color: $cherry600;
363
+ background-color: palette.$cherry600;
364
364
  }
365
365
  }
366
366
  &--checked#{&}--disabled {
367
- color: $neutral600;
367
+ color: palette.$neutral600;
368
368
  background-color: transparent;
369
369
 
370
370
  :hover > & {
@@ -402,31 +402,31 @@ $checkbox-icon-size: 1.625rem;
402
402
  &:focus {
403
403
  /* stylelint-disable-next-line */
404
404
  & + .checkbox__icon-wrapper {
405
- box-shadow: 0 0 0 getSpacer(3xs);
406
- color: $black;
405
+ box-shadow: 0 0 0 spacers.getSpacer(3xs);
406
+ color: palette.$black;
407
407
 
408
408
  &--on-dark {
409
- color: $white;
409
+ color: palette.$white;
410
410
  }
411
411
 
412
412
  &--invalid {
413
- color: $black;
413
+ color: palette.$black;
414
414
  }
415
415
 
416
416
  &__large {
417
417
  &--checked {
418
- background-color: $blueberry200;
419
- box-shadow: 0 0 0 getSpacer(3xs);
420
- color: $white;
418
+ background-color: palette.$blueberry200;
419
+ box-shadow: 0 0 0 spacers.getSpacer(3xs);
420
+ color: palette.$white;
421
421
 
422
422
  // komboklasser fungerer ikke i nested struktur
423
423
  &--invalid {
424
- background-color: $cherry500;
425
- color: $black;
424
+ background-color: palette.$cherry500;
425
+ color: palette.$black;
426
426
  }
427
427
 
428
428
  &--disabled {
429
- color: $neutral700;
429
+ color: palette.$neutral700;
430
430
  }
431
431
  }
432
432
  }
@@ -1,7 +1,7 @@
1
1
  @use 'sass:map';
2
- @import '../../scss/spacers';
3
- @import '../../scss/breakpoints';
4
- @import '../../scss/palette';
2
+ @use '../../scss/spacers' as spacers;
3
+ @use '../../scss/palette' as palette;
4
+ @use '../../scss/breakpoints' as *;
5
5
 
6
6
  .chip {
7
7
  $chip: &;
@@ -30,19 +30,19 @@
30
30
  &--#{$color}[type='button'] {
31
31
  // banana og kiwi har unntak fra hovedregelen
32
32
  @if $color == 'banana' {
33
- color: map.get($palette-map, #{$color}900);
34
- border-color: map.get($palette-map, #{$color}300);
33
+ color: map.get(palette.$palette-map, #{$color}900);
34
+ border-color: map.get(palette.$palette-map, #{$color}300);
35
35
  } @else if $color == 'kiwi' {
36
- color: map.get($palette-map, #{$color}900);
37
- border-color: map.get($palette-map, #{$color}200);
36
+ color: map.get(palette.$palette-map, #{$color}900);
37
+ border-color: map.get(palette.$palette-map, #{$color}200);
38
38
  } @else {
39
- color: map.get($palette-map, #{$color}800);
40
- border-color: map.get($palette-map, #{$color}200);
39
+ color: map.get(palette.$palette-map, #{$color}800);
40
+ border-color: map.get(palette.$palette-map, #{$color}200);
41
41
  }
42
42
 
43
43
  &#{$chip}--normal {
44
44
  &:hover {
45
- background-color: rgba-to-rgb(rgba(map.get($palette-map, #{$color}200), 0.2));
45
+ background-color: rgba-to-rgb(rgba(map.get(palette.$palette-map, #{$color}200), 0.2));
46
46
  }
47
47
  }
48
48
 
@@ -50,25 +50,25 @@
50
50
  background-color: transparent;
51
51
 
52
52
  &:hover {
53
- background-color: map.get($palette-map, #{$color}100);
54
- border-color: map.get($palette-map, #{$color}100);
53
+ background-color: map.get(palette.$palette-map, #{$color}100);
54
+ border-color: map.get(palette.$palette-map, #{$color}100);
55
55
  }
56
56
 
57
57
  &:focus {
58
- background-color: $white;
59
- border-color: $white;
60
- box-shadow: 0 0 0 3px $black;
58
+ background-color: palette.$white;
59
+ border-color: palette.$white;
60
+ box-shadow: 0 0 0 3px palette.$black;
61
61
  }
62
62
  }
63
63
 
64
64
  &#{$chip}--emphasised {
65
- background-color: map.get($palette-map, #{$color}50);
65
+ background-color: map.get(palette.$palette-map, #{$color}50);
66
66
 
67
67
  &:hover {
68
68
  @if $color == 'banana' {
69
- background-color: rgba-to-rgb(rgba(map.get($palette-map, #{$color}300), 0.5));
69
+ background-color: rgba-to-rgb(rgba(map.get(palette.$palette-map, #{$color}300), 0.5));
70
70
  } @else {
71
- background-color: rgba-to-rgb(rgba(map.get($palette-map, #{$color}200), 0.5));
71
+ background-color: rgba-to-rgb(rgba(map.get(palette.$palette-map, #{$color}200), 0.5));
72
72
  }
73
73
  }
74
74
  }
@@ -77,8 +77,8 @@
77
77
 
78
78
  &:focus {
79
79
  outline: none;
80
- border-color: $black;
81
- box-shadow: inset 0 0 0 2px $black;
80
+ border-color: palette.$black;
81
+ box-shadow: inset 0 0 0 2px palette.$black;
82
82
  }
83
83
 
84
84
  &#{$chip}--undo {
@@ -86,12 +86,12 @@
86
86
  }
87
87
 
88
88
  &--medium {
89
- padding: 0 getSpacer(3xs) 0 getSpacer(xs);
89
+ padding: 0 spacers.getSpacer(3xs) 0 spacers.getSpacer(xs);
90
90
  min-height: 1.875rem;
91
91
  }
92
92
 
93
93
  &--large {
94
- padding: getSpacer(4xs) getSpacer(3xs) getSpacer(4xs) getSpacer(xs);
94
+ padding: spacers.getSpacer(4xs) spacers.getSpacer(3xs) spacers.getSpacer(4xs) spacers.getSpacer(xs);
95
95
  min-height: 2.125rem;
96
96
  }
97
97
  }
@@ -1,7 +1,7 @@
1
1
  @use 'sass:map';
2
- @import '../../scss/spacers';
3
- @import '../../scss/palette';
4
- @import '../../scss/breakpoints';
2
+ @use '../../scss/spacers' as spacers;
3
+ @use '../../scss/palette' as palette;
4
+ @use '../../scss/breakpoints' as *;
5
5
 
6
6
  .close {
7
7
  display: flex;
@@ -25,7 +25,7 @@
25
25
  }
26
26
 
27
27
  &:focus {
28
- box-shadow: 0 0 0 2px $black;
28
+ box-shadow: 0 0 0 2px palette.$black;
29
29
  background-color: transparent;
30
30
  border-radius: 0;
31
31
  border: 0;
@@ -1,4 +1,4 @@
1
- @import '../../scss/palette';
1
+ @use '../../scss/palette' as palette;
2
2
 
3
3
  .dictionarytrigger {
4
4
  all: unset;
@@ -13,24 +13,24 @@
13
13
  background-repeat: repeat-x;
14
14
 
15
15
  &:hover {
16
- background-color: rgba-to-rgb(rgba($plum600, 0.1), $white);
16
+ background-color: rgba-to-rgb(rgba(palette.$plum600, 0.1), palette.$white);
17
17
  background-image: url("data:image/svg+xml,<svg width='8' height='3' viewBox='0 0 8 3' xmlns='http://www.w3.org/2000/svg'><circle cx='1.5' cy='1.5' r='1.5' fill='%236A2ABF' /></svg>");
18
18
  }
19
19
 
20
20
  &:focus-visible {
21
21
  padding-bottom: 3px;
22
22
  margin-bottom: -3px;
23
- outline: 2px solid $black;
23
+ outline: 2px solid palette.$black;
24
24
  background-image: none;
25
25
  }
26
26
 
27
27
  &[aria-expanded='true'] {
28
- background-color: rgba-to-rgb(rgba($plum600, 0.1), $white);
28
+ background-color: rgba-to-rgb(rgba(palette.$plum600, 0.1), palette.$white);
29
29
  background-image: url("data:image/svg+xml,<svg width='8' height='3' viewBox='0 0 8 3' xmlns='http://www.w3.org/2000/svg'><circle cx='1.5' cy='1.5' r='1.5' fill='%236A2ABF' /></svg>");
30
30
 
31
31
  &:hover,
32
32
  &:focus-visible {
33
- background-color: rgba-to-rgb(rgba($plum600, 0.2), $white);
33
+ background-color: rgba-to-rgb(rgba(palette.$plum600, 0.2), palette.$white);
34
34
  }
35
35
 
36
36
  &:focus-visible {
@@ -1,8 +1,8 @@
1
1
  @use 'sass:map';
2
- @import '../../scss/spacers';
3
- @import '../../scss/palette';
4
- @import '../../scss/breakpoints';
5
- @import '../../scss/font-settings';
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 *;
6
6
  @import '../../scss/supernova/styles/colors';
7
7
 
8
8
  .drawer {
@@ -65,7 +65,7 @@
65
65
  overflow-y: auto;
66
66
 
67
67
  &:focus-visible {
68
- outline: 1px solid $black;
68
+ outline: 1px solid palette.$black;
69
69
  outline-offset: -1px;
70
70
  }
71
71
  }
@@ -76,15 +76,15 @@
76
76
  display: flex;
77
77
  align-items: center;
78
78
  justify-content: space-between;
79
- padding: getSpacer(xs) getSpacer(2xs);
79
+ padding: spacers.getSpacer(xs) spacers.getSpacer(2xs);
80
80
  border-bottom: 1px solid var(--color-base-border-neutral);
81
81
 
82
82
  @media (min-width: map.get($grid-breakpoints, md)) {
83
- padding: getSpacer(xs);
83
+ padding: spacers.getSpacer(xs);
84
84
  }
85
85
 
86
86
  @include tiny-screens-media-query {
87
- padding: getSpacer(4xs) 0;
87
+ padding: spacers.getSpacer(4xs) 0;
88
88
  flex-direction: column-reverse;
89
89
  align-items: flex-start;
90
90
  }
@@ -92,15 +92,15 @@
92
92
 
93
93
  &__content {
94
94
  overflow-y: auto;
95
- padding: getSpacer(xs) getSpacer(2xs);
95
+ padding: spacers.getSpacer(xs) spacers.getSpacer(2xs);
96
96
 
97
97
  &:focus-visible {
98
- outline: 1px solid $black;
98
+ outline: 1px solid palette.$black;
99
99
  outline-offset: -1px;
100
100
  }
101
101
 
102
102
  @media (min-width: map.get($grid-breakpoints, md)) {
103
- padding: getSpacer(s) getSpacer(xs);
103
+ padding: spacers.getSpacer(s) spacers.getSpacer(xs);
104
104
  }
105
105
 
106
106
  @include tiny-screens-media-query {
@@ -110,18 +110,18 @@
110
110
 
111
111
  &__footer {
112
112
  display: flex;
113
- gap: getSpacer(m);
113
+ gap: spacers.getSpacer(m);
114
114
  border-top: 1px solid var(--color-base-border-neutral);
115
- padding: getSpacer(s) getSpacer(2xs);
115
+ padding: spacers.getSpacer(s) spacers.getSpacer(2xs);
116
116
 
117
117
  @media (min-width: map.get($grid-breakpoints, md)) {
118
- padding: getSpacer(m) getSpacer(xs);
118
+ padding: spacers.getSpacer(m) spacers.getSpacer(xs);
119
119
  }
120
120
 
121
121
  @include tiny-screens-media-query {
122
122
  flex-wrap: wrap;
123
- gap: getSpacer(2xs) 0;
124
- padding: getSpacer(2xs) 0;
123
+ gap: spacers.getSpacer(2xs) 0;
124
+ padding: spacers.getSpacer(2xs) 0;
125
125
  }
126
126
  }
127
127
  }