@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,9 +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/screen-reader' as *;
6
- @use '../../scss/breakpoints' as breakpoints;
2
+ @import '../../scss/spacers';
3
+ @import '../../scss/breakpoints';
4
+ @import '../../scss/palette';
5
+ @import '../../scss/font-settings';
6
+ @import '../../scss/screen-reader';
7
7
 
8
8
  $status-dot-size: 0.937rem;
9
9
 
@@ -11,17 +11,17 @@ $status-dot-size: 0.937rem;
11
11
  position: relative;
12
12
  display: inline-flex;
13
13
  align-items: flex-start;
14
- font-size: font-settings.$font-size-xs;
14
+ font-size: $font-size-xs;
15
15
  line-height: 1.4rem;
16
16
  font-weight: 400;
17
17
 
18
- @media (min-width: map.get(breakpoints.$grid-breakpoints, sm)) {
19
- font-size: font-settings.$font-size-sm;
18
+ @media (min-width: map.get($grid-breakpoints, sm)) {
19
+ font-size: $font-size-sm;
20
20
  line-height: 1.6rem;
21
21
  }
22
22
 
23
23
  &--cancelled {
24
- color: palette.$cherry600;
24
+ color: $cherry600;
25
25
  }
26
26
 
27
27
  &__dot {
@@ -29,53 +29,53 @@ $status-dot-size: 0.937rem;
29
29
  align-items: center;
30
30
  justify-content: center;
31
31
  position: relative;
32
- top: spacers.getSpacer(4xs);
33
- margin-right: spacers.getSpacer(2xs);
32
+ top: getSpacer(4xs);
33
+ margin-right: getSpacer(2xs);
34
34
  border-radius: 10rem;
35
35
  width: $status-dot-size;
36
36
  height: $status-dot-size;
37
37
  min-width: $status-dot-size;
38
38
  min-height: $status-dot-size;
39
39
 
40
- @media (min-width: map.get(breakpoints.$grid-breakpoints, sm)) {
41
- top: spacers.getSpacer(3xs);
40
+ @media (min-width: map.get($grid-breakpoints, sm)) {
41
+ top: getSpacer(3xs);
42
42
  }
43
43
 
44
44
  &--info {
45
- background: palette.$kiwi900;
45
+ background: $kiwi900;
46
46
  }
47
47
  &--info#{&}--on-dark {
48
- background: palette.$kiwi400;
48
+ background: $kiwi400;
49
49
  }
50
50
 
51
51
  &--warning {
52
- background: palette.$banana400;
52
+ background: $banana400;
53
53
  }
54
54
 
55
55
  &--alert,
56
56
  &--cancelled {
57
- background: palette.$cherry500;
57
+ background: $cherry500;
58
58
  }
59
59
  &--alert#{&}--on-dark {
60
- background: palette.$cherry300;
60
+ background: $cherry300;
61
61
  }
62
62
  &--cancelled#{&}--on-dark {
63
- outline: 2px solid palette.$white;
63
+ outline: 2px solid $white;
64
64
  }
65
65
 
66
66
  &--active {
67
- background: palette.$blueberry500;
67
+ background: $blueberry500;
68
68
  }
69
69
  &--active#{&}--on-dark {
70
- background: palette.$blueberry300;
70
+ background: $blueberry300;
71
71
  }
72
72
 
73
73
  &--transparent {
74
- border: 2px solid palette.$neutral600;
74
+ border: 2px solid $neutral600;
75
75
  }
76
76
  &--transparent#{&}--on-dark {
77
77
  border: none;
78
- background: palette.$white;
78
+ background: $white;
79
79
  }
80
80
 
81
81
  svg {
@@ -85,7 +85,7 @@ $status-dot-size: 0.937rem;
85
85
 
86
86
  &__label {
87
87
  &--on-dark {
88
- color: palette.$white;
88
+ color: $white;
89
89
  }
90
90
  }
91
91
  }
@@ -1,12 +1,12 @@
1
1
  @use 'sass:map';
2
- @use '../../scss/spacers' as spacers;
2
+ @import '../../scss/spacers';
3
3
 
4
4
  .step {
5
5
  &__stepper {
6
- margin-bottom: spacers.getSpacer(m);
6
+ margin-bottom: getSpacer(m);
7
7
  }
8
8
 
9
9
  &__content {
10
- margin-bottom: spacers.getSpacer(s);
10
+ margin-bottom: getSpacer(s);
11
11
  }
12
12
  }
@@ -1,27 +1,27 @@
1
1
  @use 'sass:map';
2
- @use '../../scss/spacers' as spacers;
3
- @use '../../scss/palette' as palette;
4
- @use '../../scss/screen-reader' as *;
5
- @use '../../scss/breakpoints' as breakpoints;
2
+ @import '../../scss/spacers';
3
+ @import '../../scss/breakpoints';
4
+ @import '../../scss/palette';
5
+ @import '../../scss/screen-reader';
6
6
 
7
7
  .stepbuttons {
8
- margin-top: spacers.getSpacer(m);
9
- margin-bottom: spacers.getSpacer(s);
8
+ margin-top: getSpacer(m);
9
+ margin-bottom: getSpacer(s);
10
10
  display: flex;
11
11
  flex-wrap: wrap;
12
- gap: spacers.getSpacer(m) spacers.getSpacer(l);
12
+ gap: getSpacer(m) getSpacer(l);
13
13
 
14
14
  &--has-sticky-buttons {
15
- background-color: palette.$white;
15
+ background-color: $white;
16
16
  position: sticky;
17
17
  bottom: 0;
18
18
  }
19
19
 
20
20
  &__buttons {
21
21
  display: flex;
22
- gap: spacers.getSpacer(s);
22
+ gap: getSpacer(s);
23
23
 
24
- @media (max-width: map.get(breakpoints.$grid-max-breakpoints, xs)) {
24
+ @media (max-width: map.get($grid-max-breakpoints, xs)) {
25
25
  width: 100%;
26
26
  }
27
27
 
@@ -33,7 +33,7 @@
33
33
  &__button {
34
34
  &--back,
35
35
  &--forward {
36
- @media (max-width: map.get(breakpoints.$grid-max-breakpoints, xs)) {
36
+ @media (max-width: map.get($grid-max-breakpoints, xs)) {
37
37
  width: 50%;
38
38
  }
39
39
  }
@@ -1,16 +1,16 @@
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/breakpoints';
3
+ @import '../../scss/spacers';
4
+ @import '../../scss/palette';
5
+ @import '../../scss/font-settings';
6
6
 
7
7
  .stepper-wrapper {
8
8
  display: flex;
9
9
  align-items: center;
10
- min-height: spacers.getSpacer(l);
10
+ min-height: getSpacer(l);
11
11
 
12
- @media (min-width: map.get(breakpoints.$grid-breakpoints, md)) {
13
- min-height: spacers.getSpacer(xl);
12
+ @media (min-width: map.get($grid-breakpoints, md)) {
13
+ min-height: getSpacer(xl);
14
14
  }
15
15
  }
16
16
 
@@ -47,15 +47,7 @@ $dot-offset: calc($stepper-padding-x + $dot-size / 2);
47
47
  display: block;
48
48
  height: $stepper-height;
49
49
  border-radius: 4px;
50
- background:
51
- linear-gradient(
52
- to right,
53
- palette.$blueberry600,
54
- palette.$blueberry600 $dot-offset,
55
- palette.$blueberry50 $dot-offset,
56
- palette.$blueberry50
57
- ),
58
- palette.$blueberry600;
50
+ background: linear-gradient(to right, $blueberry600, $blueberry600 $dot-offset, $blueberry50 $dot-offset, $blueberry50), $blueberry600;
59
51
  background-repeat: no-repeat;
60
52
 
61
53
  @media (prefers-reduced-motion: no-preference) {
@@ -67,8 +59,8 @@ $dot-offset: calc($stepper-padding-x + $dot-size / 2);
67
59
  width: $marker-size;
68
60
  height: $marker-size;
69
61
  top: calc(($stepper-height - $marker-size) / 2);
70
- background-color: palette.$white;
71
- border: 6px solid palette.$blueberry600;
62
+ background-color: $white;
63
+ border: 6px solid $blueberry600;
72
64
  border-radius: 50%;
73
65
 
74
66
  @media (prefers-reduced-motion: no-preference) {
@@ -79,11 +71,11 @@ $dot-offset: calc($stepper-padding-x + $dot-size / 2);
79
71
  &__number {
80
72
  min-width: 2.5rem;
81
73
  text-align: right;
82
- margin-left: spacers.getSpacer(xs);
83
- font-size: font-settings.$font-size-xs;
84
- line-height: font-settings.$lineheight-size-xs;
74
+ margin-left: getSpacer(xs);
75
+ font-size: $font-size-xs;
76
+ line-height: $lineheight-size-xs;
85
77
  font-weight: 700;
86
- color: palette.$blueberry700;
78
+ color: $blueberry700;
87
79
  }
88
80
 
89
81
  &__dot {
@@ -91,7 +83,7 @@ $dot-offset: calc($stepper-padding-x + $dot-size / 2);
91
83
  top: calc(($stepper-height - $dot-size) / 2);
92
84
  width: $dot-size;
93
85
  height: $dot-size;
94
- background-color: palette.$blueberry600;
86
+ background-color: $blueberry600;
95
87
  border-radius: 50%;
96
88
 
97
89
  @media (prefers-reduced-motion: no-preference) {
@@ -99,7 +91,7 @@ $dot-offset: calc($stepper-padding-x + $dot-size / 2);
99
91
  }
100
92
 
101
93
  &--completed {
102
- background-color: palette.$blueberry50;
94
+ background-color: $blueberry50;
103
95
  }
104
96
 
105
97
  &--left {
@@ -1,5 +1,5 @@
1
- @use '../../scss/font-settings' as font-settings;
2
- @import '../../scss/supernova/styles/colors.css';
1
+ @use '../../scss/supernova/styles/colors' as *;
2
+ @use '../../scss/font-settings' as fonts;
3
3
 
4
4
  .sticky-note {
5
5
  position: relative;
@@ -95,7 +95,7 @@
95
95
  &__error-text {
96
96
  color: var(--color-notification-status-error);
97
97
  line-height: 1.875rem;
98
- font-size: font-settings.$font-size-sm;
98
+ font-size: fonts.$font-size-sm;
99
99
  margin-top: 0.75rem;
100
100
  }
101
101
  }
@@ -1,10 +1,10 @@
1
1
  // Kan fjernes når konvensjonen for BEM er tillatt.
2
2
  /* stylelint-disable selector-class-pattern */
3
3
  @use 'sass:map';
4
- @use '../../scss/spacers' as spacers;
5
- @use '../../scss/palette' as palette;
6
- @use '../../scss/font-settings' as font-settings;
4
+ @import '../../scss/spacers';
7
5
  @import '../../scss/breakpoints';
6
+ @import '../../scss/palette';
7
+ @import '../../scss/font-settings';
8
8
  @import '../../scss/grid';
9
9
 
10
10
  /* fix outline for Safari */
@@ -72,7 +72,7 @@ table .table-body .table-row {
72
72
  top: 0;
73
73
  left: 0;
74
74
  width: 60%;
75
- padding-right: spacers.$spacer;
75
+ padding-right: $spacer;
76
76
  white-space: normal;
77
77
  display: block;
78
78
  float: left;
@@ -85,7 +85,7 @@ table .table-body .table-row {
85
85
 
86
86
  .table__expander-cell-mobile {
87
87
  padding-left: 0.75rem;
88
- border-bottom: 1px solid palette.$neutral500;
88
+ border-bottom: 1px solid $neutral500;
89
89
 
90
90
  &--expanded {
91
91
  border-bottom: 0;
@@ -99,7 +99,7 @@ table .table-body .table-row {
99
99
 
100
100
  .table__cell:first-child {
101
101
  border-collapse: collapse;
102
- border-top: 1px solid palette.$neutral500;
102
+ border-top: 1px solid $neutral500;
103
103
  }
104
104
 
105
105
  .table__expanded-row {
@@ -117,7 +117,7 @@ table .table-body .table-row {
117
117
  .table__row--expandable {
118
118
  .table__cell:nth-child(2) {
119
119
  border-collapse: collapse;
120
- border-top: 1px solid palette.$neutral500;
120
+ border-top: 1px solid $neutral500;
121
121
  }
122
122
 
123
123
  &:focus-within {
@@ -126,7 +126,7 @@ table .table-body .table-row {
126
126
  }
127
127
 
128
128
  .table-row:last-child .table__cell:last-child {
129
- border-bottom: 1px solid palette.$neutral500;
129
+ border-bottom: 1px solid $neutral500;
130
130
  }
131
131
  }
132
132
 
@@ -153,10 +153,10 @@ table .table-body .table-row {
153
153
  }
154
154
 
155
155
  .table__head {
156
- background: palette.$blueberry50;
156
+ background: $blueberry50;
157
157
 
158
158
  &--normal {
159
- background: palette.$neutral50;
159
+ background: $neutral50;
160
160
  }
161
161
 
162
162
  &--transparent {
@@ -164,7 +164,7 @@ table .table-body .table-row {
164
164
  }
165
165
 
166
166
  &--sortable {
167
- background: palette.$blueberry50;
167
+ background: $blueberry50;
168
168
  }
169
169
 
170
170
  @media (min-width: map.get($grid-breakpoints, lg)) {
@@ -184,46 +184,46 @@ table .table-body .table-row {
184
184
  // Fix for firefox hover feil
185
185
  background-clip: padding-box;
186
186
  height: 3.625rem;
187
- font-size: font-settings.$font-size-sm;
188
- line-height: font-settings.$lineheight-size-xs;
187
+ font-size: $font-size-sm;
188
+ line-height: $lineheight-size-xs;
189
189
  text-align: left;
190
190
  vertical-align: bottom;
191
191
  font-weight: 700;
192
192
  padding: 0.5rem 0.75rem;
193
- border: 1px solid palette.$neutral500;
193
+ border: 1px solid $neutral500;
194
194
 
195
195
  &--sortable {
196
196
  position: relative;
197
197
  }
198
198
 
199
199
  &--sortable:hover {
200
- background-color: palette.$blueberry100;
200
+ background-color: $blueberry100;
201
201
  cursor: pointer;
202
202
  }
203
203
 
204
204
  &--sortable:focus-within {
205
- outline: 3px solid palette.$black;
205
+ outline: 3px solid $black;
206
206
  outline-offset: -3px;
207
207
  }
208
208
 
209
209
  @media (min-width: map.get($grid-breakpoints, lg)) {
210
210
  padding: 1rem;
211
211
  height: 5.5rem;
212
- font-size: font-settings.$font-size-md;
213
- line-height: font-settings.$lineheight-size-sm;
212
+ font-size: $font-size-md;
213
+ line-height: $lineheight-size-sm;
214
214
  font-weight: 700;
215
215
  }
216
216
 
217
217
  &--compact {
218
- padding: spacers.getSpacer(2xs) spacers.getSpacer(3xs) spacers.getSpacer(4xs);
218
+ padding: getSpacer(2xs) getSpacer(3xs) getSpacer(4xs);
219
219
  line-height: 18px;
220
220
  font-size: 14px;
221
221
  height: unset;
222
222
 
223
223
  @media (min-width: map.get($grid-breakpoints, sm)) {
224
- padding: spacers.getSpacer(s) spacers.getSpacer(3xs) spacers.getSpacer(3xs);
224
+ padding: getSpacer(s) getSpacer(3xs) getSpacer(3xs);
225
225
  line-height: 20px;
226
- font-size: font-settings.$font-size-xs;
226
+ font-size: $font-size-xs;
227
227
  height: unset;
228
228
  }
229
229
  }
@@ -235,11 +235,11 @@ table .table-body .table-row {
235
235
 
236
236
  .table__cell {
237
237
  height: 2, 375;
238
- font-size: font-settings.$font-size-xs;
238
+ font-size: $font-size-xs;
239
239
  line-height: 1.5rem;
240
240
  padding: 0.5rem 0.75rem;
241
241
  text-align: left;
242
- border: 1px solid palette.$neutral500;
242
+ border: 1px solid $neutral500;
243
243
 
244
244
  &--center {
245
245
  text-align: center;
@@ -256,17 +256,17 @@ table .table-body .table-row {
256
256
  @media (min-width: map.get($grid-breakpoints, lg)) {
257
257
  padding: 1rem;
258
258
  height: 3.625rem;
259
- font-size: font-settings.$font-size-sm;
259
+ font-size: $font-size-sm;
260
260
  line-height: 1.75rem;
261
261
  }
262
262
 
263
263
  &--compact {
264
- padding: spacers.getSpacer(4xs) spacers.getSpacer(3xs);
264
+ padding: getSpacer(4xs) getSpacer(3xs);
265
265
  font-size: 14px;
266
266
 
267
267
  @media (min-width: map.get($grid-breakpoints, sm)) {
268
- padding: spacers.getSpacer(3xs);
269
- font-size: font-settings.$font-size-xs;
268
+ padding: getSpacer(3xs);
269
+ font-size: $font-size-xs;
270
270
  }
271
271
  }
272
272
  }
@@ -274,18 +274,18 @@ table .table-body .table-row {
274
274
  .table__cell-expander {
275
275
  text-align: center;
276
276
  width: min-content;
277
- padding: 0 spacers.getSpacer(3xs);
277
+ padding: 0 getSpacer(3xs);
278
278
  vertical-align: middle;
279
279
  }
280
280
 
281
281
  .table__row--expandable {
282
282
  &--selected {
283
- background: palette.$neutral100;
283
+ background: $neutral100;
284
284
  }
285
285
 
286
286
  &:hover {
287
287
  cursor: pointer;
288
- background: palette.$blueberry50;
288
+ background: $blueberry50;
289
289
  }
290
290
  }
291
291
 
@@ -301,7 +301,7 @@ table .table-body .table-row {
301
301
 
302
302
  @media (min-width: map.get($grid-breakpoints, lg)) {
303
303
  &--open {
304
- border-bottom: 1px solid palette.$neutral100;
304
+ border-bottom: 1px solid $neutral100;
305
305
  }
306
306
  }
307
307
  }
@@ -1,6 +1,6 @@
1
1
  @use 'sass:map';
2
- @use '../../../scss/breakpoints' as breakpoints;
3
2
  @import '../../../scss/supernova/styles/colors';
3
+ @import '../../../scss/breakpoints';
4
4
 
5
5
  .tab-list {
6
6
  $tab-list: &;
@@ -25,7 +25,7 @@
25
25
  display: none; /* Safari */
26
26
  }
27
27
 
28
- @media (min-width: map.get(breakpoints.$grid-breakpoints, md)) {
28
+ @media (min-width: map.get($grid-breakpoints, md)) {
29
29
  padding-left: 0;
30
30
  padding-right: 0;
31
31
 
@@ -1,14 +1,14 @@
1
1
  @use 'sass:map';
2
- @use '../../../scss/spacers' as spacers;
3
- @use '../../../scss/palette' as palette;
4
- @use '../../../scss/breakpoints' as breakpoints;
2
+ @import '../../../scss/spacers';
3
+ @import '../../../scss/palette';
4
+ @import '../../../scss/breakpoints';
5
5
  @import '../../../scss/supernova/styles/colors';
6
6
 
7
7
  .tab-panel {
8
8
  $tab-panel: &;
9
9
  $colors: 'blueberry', 'neutral', 'white';
10
10
 
11
- padding: spacers.getSpacer(l) spacers.getSpacer(s) spacers.getSpacer(xl);
11
+ padding: getSpacer(l) getSpacer(s) getSpacer(xl);
12
12
  width: 100%;
13
13
  border-bottom: 1px solid var(--color-action-border-onlight-focus);
14
14
 
@@ -18,16 +18,16 @@
18
18
  }
19
19
  }
20
20
 
21
- @media (min-width: map.get(breakpoints.$grid-breakpoints, md)) {
21
+ @media (min-width: map.get($grid-breakpoints, md)) {
22
22
  border-radius: 0 0 0.5rem 0.5rem;
23
23
  border: 1px solid var(--color-action-border-onlight-focus);
24
24
  border-top: 0;
25
- padding: spacers.getSpacer(xl) spacers.getSpacer(m) spacers.getSpacer(2xl);
25
+ padding: getSpacer(xl) getSpacer(m) getSpacer(2xl);
26
26
 
27
27
  &#{$tab-panel}--first {
28
28
  border-radius: 0;
29
29
 
30
- @media (min-width: map.get(breakpoints.$grid-breakpoints, md)) {
30
+ @media (min-width: map.get($grid-breakpoints, md)) {
31
31
  border-radius: 0 0 0.5rem 0.5rem;
32
32
  }
33
33
  }
@@ -1,6 +1,6 @@
1
1
  @use 'sass:map';
2
- @use '../../scss/breakpoints' as breakpoints;
3
- @import '../../scss/supernova/styles/colors.css';
2
+ @import '../../scss/supernova/styles/colors';
3
+ @import '../../scss/breakpoints';
4
4
 
5
5
  .tab-list-wrapper {
6
6
  position: relative;
@@ -21,7 +21,7 @@
21
21
  border-radius: 0;
22
22
  height: 50px;
23
23
 
24
- @media (min-width: map.get(breakpoints.$grid-breakpoints, md)) {
24
+ @media (min-width: map.get($grid-breakpoints, md)) {
25
25
  border-right: 1px solid var(--color-action-border-onlight-focus);
26
26
  border-left: 1px solid var(--color-action-border-onlight-focus);
27
27
  height: 50px;
@@ -1,7 +1,7 @@
1
1
  @use 'sass:map';
2
- @use '../../scss/spacers' as spacers;
3
- @use '../../scss/palette' as palette;
4
- @use '../../scss/breakpoints' as breakpoints;
2
+ @import '../../scss/spacers';
3
+ @import '../../scss/breakpoints';
4
+ @import '../../scss/palette';
5
5
 
6
6
  .tag {
7
7
  $tag: &;
@@ -28,45 +28,45 @@
28
28
  &--#{$color}[type='button'] {
29
29
  // banana og kiwi har unntak fra hovedregelen
30
30
  @if $color == 'banana' {
31
- color: map.get(palette.$palette-map, #{$color}900);
32
- border-color: map.get(palette.$palette-map, #{$color}300);
31
+ color: map.get($palette-map, #{$color}900);
32
+ border-color: map.get($palette-map, #{$color}300);
33
33
  } @else if $color == 'kiwi' {
34
- color: map.get(palette.$palette-map, #{$color}900);
35
- border-color: map.get(palette.$palette-map, #{$color}200);
34
+ color: map.get($palette-map, #{$color}900);
35
+ border-color: map.get($palette-map, #{$color}200);
36
36
  } @else {
37
- color: map.get(palette.$palette-map, #{$color}800);
38
- border-color: map.get(palette.$palette-map, #{$color}200);
37
+ color: map.get($palette-map, #{$color}800);
38
+ border-color: map.get($palette-map, #{$color}200);
39
39
  }
40
40
 
41
41
  &#{$tag}--emphasised {
42
- background-color: map.get(palette.$palette-map, #{$color}50);
42
+ background-color: map.get($palette-map, #{$color}50);
43
43
  }
44
44
  }
45
45
  }
46
46
 
47
47
  &--medium {
48
- padding: 0 spacers.getSpacer(xs);
48
+ padding: 0 getSpacer(xs);
49
49
  min-height: 1.625rem;
50
50
 
51
51
  &#{$tag}--has-icon {
52
- padding: 0 spacers.getSpacer(xs) 0 0.375rem;
52
+ padding: 0 getSpacer(xs) 0 0.375rem;
53
53
  }
54
54
 
55
55
  #{$tag}__icon {
56
- margin-right: spacers.getSpacer(4xs);
56
+ margin-right: getSpacer(4xs);
57
57
  }
58
58
  }
59
59
 
60
60
  &--large {
61
- padding: 0 spacers.getSpacer(xs);
61
+ padding: 0 getSpacer(xs);
62
62
  min-height: 1.875rem;
63
63
 
64
64
  &#{$tag}--has-icon {
65
- padding: spacers.getSpacer(4xs) spacers.getSpacer(xs) spacers.getSpacer(4xs) 0.375rem;
65
+ padding: getSpacer(4xs) getSpacer(xs) getSpacer(4xs) 0.375rem;
66
66
  }
67
67
 
68
68
  #{$tag}__icon {
69
- margin-right: spacers.getSpacer(4xs);
69
+ margin-right: getSpacer(4xs);
70
70
  }
71
71
  }
72
72
  }
@@ -1,13 +1,13 @@
1
- @use '../../scss/spacers' as spacers;
2
- @use '../../scss/palette' as palette;
3
- @use '../../scss/breakpoints' as breakpoints;
1
+ @import '../../scss/spacers';
2
+ @import '../../scss/breakpoints';
3
+ @import '../../scss/palette';
4
4
 
5
5
  .tag-list {
6
6
  all: unset;
7
7
  display: inline-flex;
8
8
  align-items: center;
9
9
  flex-wrap: wrap;
10
- gap: spacers.getSpacer(2xs);
10
+ gap: getSpacer(2xs);
11
11
 
12
12
  &__item {
13
13
  all: unset;
@@ -1,22 +1,22 @@
1
- @use '../../scss/spacers' as spacers;
2
- @use '../../scss/palette' as palette;
3
- @use '../../scss/font-mixins' as fonts;
4
- @use '../../scss/input' as input;
5
- @use '../../scss/breakpoints' as breakpoints;
1
+ @import '../../scss/spacers';
2
+ @import '../../scss/breakpoints';
3
+ @import '../../scss/palette';
4
+ @import '../../scss/input';
5
+ @import '../../scss/font-mixins';
6
6
 
7
7
  .textarea {
8
- @include input.input-wrapper;
8
+ @include input-wrapper;
9
9
 
10
10
  &--gutterBottom {
11
- margin-bottom: spacers.getSpacer(s);
11
+ margin-bottom: getSpacer(s);
12
12
  }
13
13
  }
14
14
 
15
15
  .input-container {
16
- @include input.input-container;
16
+ @include input-container;
17
17
 
18
18
  &__input {
19
- @include fonts.input-text;
19
+ @include input-text;
20
20
 
21
21
  height: auto;
22
22
  padding: 16px;