@helsenorge/designsystem-react 10.6.0 → 10.6.2

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 (73) hide show
  1. package/CHANGELOG.md +852 -1402
  2. package/components/AnchorLink/styles.module.scss +9 -8
  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 +59 -65
  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/styles.module.scss +4 -5
  13. package/components/EmptyState/styles.module.scss +12 -12
  14. package/components/Expander/styles.module.scss +46 -46
  15. package/components/ExpanderHierarchy/expander.module.scss +29 -29
  16. package/components/ExpanderHierarchy/styles.module.scss +5 -4
  17. package/components/ExpanderList/styles.module.scss +30 -30
  18. package/components/EyebrowHeader/styles.module.scss +2 -0
  19. package/components/FormGroup/styles.module.scss +9 -9
  20. package/components/FormLayout/styles.module.scss +5 -4
  21. package/components/HelpBubble/styles.module.scss +13 -13
  22. package/components/HelpPanel/styles.module.scss +2 -2
  23. package/components/HelpQuestion/styles.module.scss +19 -19
  24. package/components/HighlightPanel/styles.module.scss +20 -20
  25. package/components/HorizontalScroll/styles.module.scss +3 -4
  26. package/components/Input/styles.module.scss +12 -12
  27. package/components/Label/styles.module.scss +15 -15
  28. package/components/LinkList/styles.module.scss +33 -33
  29. package/components/ListHeader/styles.module.scss +8 -8
  30. package/components/Loader/styles.module.scss +14 -14
  31. package/components/MaxCharacters/styles.module.scss +11 -11
  32. package/components/Modal/styles.module.scss +34 -34
  33. package/components/NotificationPanel/styles.module.scss +33 -33
  34. package/components/Panel/styles.module.scss +45 -45
  35. package/components/PanelList/styles.module.scss +5 -5
  36. package/components/PopMenu/styles.module.scss +15 -15
  37. package/components/PopOver/styles.module.scss +14 -13
  38. package/components/PopOver/styles.module.scss.d.ts +3 -0
  39. package/components/Progressbar/styles.module.scss +4 -4
  40. package/components/PromoPanel/styles.module.scss +22 -22
  41. package/components/RadioButton/styles.module.scss +99 -99
  42. package/components/Select/styles.module.scss +21 -21
  43. package/components/ServiceMessage/styles.module.scss +49 -49
  44. package/components/SharingStatus/styles.module.scss +13 -13
  45. package/components/Slider/styles.module.scss +24 -24
  46. package/components/Spacer/styles.module.scss +14 -14
  47. package/components/StatusDot/styles.module.scss +22 -22
  48. package/components/Step/styles.module.scss +3 -3
  49. package/components/StepButtons/styles.module.scss +9 -9
  50. package/components/Stepper/styles.module.scss +15 -23
  51. package/components/StickyNote/styles.module.scss +3 -3
  52. package/components/Table/styles.module.scss +32 -32
  53. package/components/Tabs/TabList/styles.module.scss +1 -1
  54. package/components/Tabs/TabPanel/styles.module.scss +5 -5
  55. package/components/Tabs/styles.module.scss +1 -1
  56. package/components/Tag/styles.module.scss +16 -16
  57. package/components/TagList/styles.module.scss +4 -4
  58. package/components/Textarea/styles.module.scss +9 -9
  59. package/components/Tile/styles.module.scss +25 -25
  60. package/components/Title/styles.module.scss +8 -8
  61. package/components/Toggle/styles.module.scss +14 -14
  62. package/components/Tooltip/TooltipWord/styles.module.scss +4 -4
  63. package/components/Trigger/styles.module.scss +21 -21
  64. package/components/Validation/styles.module.scss +10 -10
  65. package/package.json +1 -1
  66. package/scss/_body.scss +6 -5
  67. package/scss/_breakpoints.scss +2 -2
  68. package/scss/_font-mixins.scss +2 -2
  69. package/scss/_fonts.scss +2 -0
  70. package/scss/_input.scss +50 -53
  71. package/scss/_print.scss +2 -2
  72. package/scss/layout.module.scss +2 -2
  73. package/scss/typography.module.scss +43 -44
@@ -1,14 +1,14 @@
1
1
  @use 'sass:map';
2
- @use '../../scss/palette' as palette;
3
- @use '../../scss/spacers' as spacers;
4
- @use '../../scss/font-mixins' as fonts;
5
- @use '../../scss/breakpoints' as *;
2
+ @import '../../scss/breakpoints';
3
+ @import '../../scss/palette';
4
+ @import '../../scss/spacers';
5
+ @import '../../scss/font-mixins';
6
6
 
7
7
  .expander {
8
8
  $item: &;
9
9
 
10
10
  &:first-of-type {
11
- border-top: 1px solid palette.$neutral500;
11
+ border-top: 1px solid $neutral500;
12
12
  }
13
13
 
14
14
  &__button {
@@ -20,41 +20,41 @@
20
20
  width: 100%;
21
21
  cursor: pointer;
22
22
  background-color: transparent;
23
- border-bottom: 1px solid palette.$neutral500;
24
- padding: spacers.getSpacer(xs) 0;
23
+ border-bottom: 1px solid $neutral500;
24
+ padding: getSpacer(xs) 0;
25
25
 
26
26
  @media (min-width: map.get($grid-breakpoints, lg)) {
27
27
  flex-direction: row-reverse;
28
28
  justify-content: start;
29
- padding: spacers.getSpacer(s) spacers.getSpacer(s) spacers.getSpacer(s) spacers.getSpacer(2xs);
29
+ padding: getSpacer(s) getSpacer(s) getSpacer(s) getSpacer(2xs);
30
30
  }
31
31
 
32
32
  &:hover,
33
33
  &:focus {
34
- background-color: palette.$neutral100;
34
+ background-color: $neutral100;
35
35
  }
36
36
 
37
37
  &:focus {
38
38
  text-decoration: underline;
39
- outline: spacers.getSpacer(4xs) solid palette.$black;
39
+ outline: getSpacer(4xs) solid $black;
40
40
  }
41
41
 
42
42
  &[aria-expanded='true'] {
43
- background-color: palette.$neutral100;
43
+ background-color: $neutral100;
44
44
  border-bottom: none;
45
45
  }
46
46
 
47
47
  @media print {
48
48
  &--print {
49
- background-color: palette.$neutral100;
49
+ background-color: $neutral100;
50
50
  }
51
51
  }
52
52
 
53
53
  &--2-and-lower {
54
- padding: spacers.getSpacer(2xs) 0;
54
+ padding: getSpacer(2xs) 0;
55
55
 
56
56
  @media (min-width: map.get($grid-breakpoints, lg)) {
57
- padding: spacers.getSpacer(xs) spacers.getSpacer(s) spacers.getSpacer(xs) spacers.getSpacer(2xs);
57
+ padding: getSpacer(xs) getSpacer(s) getSpacer(xs) getSpacer(2xs);
58
58
  }
59
59
  }
60
60
  }
@@ -63,19 +63,19 @@
63
63
  margin: 0;
64
64
 
65
65
  &--1 {
66
- @include fonts.title2;
66
+ @include title2;
67
67
  }
68
68
 
69
69
  &--2 {
70
- @include fonts.title3;
70
+ @include title3;
71
71
  }
72
72
 
73
73
  &--3 {
74
- @include fonts.title4;
74
+ @include title4;
75
75
  }
76
76
 
77
77
  &--4-and-lower {
78
- @include fonts.title5;
78
+ @include title5;
79
79
  }
80
80
 
81
81
  &--expanded {
@@ -95,44 +95,44 @@
95
95
 
96
96
  &__content {
97
97
  display: none;
98
- border-bottom: 1px solid palette.$neutral500;
99
- padding-top: spacers.getSpacer(m);
100
- padding-left: spacers.getSpacer(2xs);
101
- padding-bottom: spacers.getSpacer(m);
98
+ border-bottom: 1px solid $neutral500;
99
+ padding-top: getSpacer(m);
100
+ padding-left: getSpacer(2xs);
101
+ padding-bottom: getSpacer(m);
102
102
 
103
103
  &--1 {
104
- padding-top: spacers.getSpacer(xl);
104
+ padding-top: getSpacer(xl);
105
105
  }
106
106
 
107
107
  &--1,
108
108
  &--2 {
109
109
  @media (min-width: map.get($grid-breakpoints, lg)) {
110
- padding-left: spacers.getSpacer(2xl);
110
+ padding-left: getSpacer(2xl);
111
111
  }
112
112
  }
113
113
 
114
114
  &--3-and-lower {
115
115
  @media (min-width: map.get($grid-breakpoints, lg)) {
116
- padding-left: spacers.getSpacer(xl);
116
+ padding-left: getSpacer(xl);
117
117
  }
118
118
  }
119
119
  }
120
120
 
121
121
  &__icon {
122
- margin-left: spacers.getSpacer(s);
122
+ margin-left: getSpacer(s);
123
123
 
124
124
  &--2-and-lower {
125
- margin-left: spacers.getSpacer(xs);
125
+ margin-left: getSpacer(xs);
126
126
  }
127
127
 
128
128
  @media (min-width: map.get($grid-breakpoints, lg)) {
129
129
  margin-left: 0;
130
- margin-right: spacers.getSpacer(s);
130
+ margin-right: getSpacer(s);
131
131
  }
132
132
 
133
133
  &--3-and-lower {
134
134
  @media (min-width: map.get($grid-breakpoints, lg)) {
135
- margin-right: spacers.getSpacer(xs);
135
+ margin-right: getSpacer(xs);
136
136
  }
137
137
  }
138
138
  }
@@ -1,5 +1,6 @@
1
- @use '../../scss/palette' as palette;
2
- @use '../../scss/spacers' as spacers;
1
+ @import '../../scss/palette';
2
+ @import '../../scss/spacers';
3
+ @import '../../scss/font-mixins';
3
4
 
4
5
  .expanderhierarchy {
5
6
  list-style: none;
@@ -7,10 +8,10 @@
7
8
  margin: 0;
8
9
 
9
10
  &--2 {
10
- margin-top: spacers.getSpacer(xl);
11
+ margin-top: getSpacer(xl);
11
12
  }
12
13
 
13
14
  &--3-and-lower {
14
- margin-top: spacers.getSpacer(m);
15
+ margin-top: getSpacer(m);
15
16
  }
16
17
  }
@@ -1,7 +1,7 @@
1
1
  @use 'sass:map';
2
- @use '../../scss/spacers' as spacers;
3
- @use '../../scss/font-settings' as font-settings;
4
- @use '../../scss/breakpoints' as *;
2
+ @import '../../scss/spacers';
3
+ @import '../../scss/breakpoints';
4
+ @import '../../scss/font-settings';
5
5
  @import '../../scss/supernova/styles/colors';
6
6
 
7
7
  .expander-list {
@@ -46,42 +46,42 @@
46
46
  background-color: var(--color-base-background-white);
47
47
 
48
48
  &--white {
49
- border-top: spacers.getSpacer(2xs) var(--core-color-neutral-100) solid;
50
- border-left: spacers.getSpacer(2xs) var(--core-color-neutral-100) solid;
51
- border-right: spacers.getSpacer(2xs) var(--core-color-neutral-100) solid;
49
+ border-top: getSpacer(2xs) var(--core-color-neutral-100) solid;
50
+ border-left: getSpacer(2xs) var(--core-color-neutral-100) solid;
51
+ border-right: getSpacer(2xs) var(--core-color-neutral-100) solid;
52
52
 
53
53
  &:last-of-type {
54
- border-bottom: spacers.getSpacer(2xs) var(--core-color-neutral-100) solid;
54
+ border-bottom: getSpacer(2xs) var(--core-color-neutral-100) solid;
55
55
  }
56
56
  }
57
57
 
58
58
  &--blueberry {
59
- border-top: spacers.getSpacer(2xs) var(--core-color-blueberry-100) solid;
60
- border-left: spacers.getSpacer(2xs) var(--core-color-blueberry-100) solid;
61
- border-right: spacers.getSpacer(2xs) var(--core-color-blueberry-100) solid;
59
+ border-top: getSpacer(2xs) var(--core-color-blueberry-100) solid;
60
+ border-left: getSpacer(2xs) var(--core-color-blueberry-100) solid;
61
+ border-right: getSpacer(2xs) var(--core-color-blueberry-100) solid;
62
62
 
63
63
  &:last-of-type {
64
- border-bottom: spacers.getSpacer(2xs) var(--core-color-blueberry-100) solid;
64
+ border-bottom: getSpacer(2xs) var(--core-color-blueberry-100) solid;
65
65
  }
66
66
  }
67
67
 
68
68
  &--cherry {
69
- border-top: spacers.getSpacer(2xs) var(--core-color-cherry-100) solid;
70
- border-left: spacers.getSpacer(2xs) var(--core-color-cherry-100) solid;
71
- border-right: spacers.getSpacer(2xs) var(--core-color-cherry-100) solid;
69
+ border-top: getSpacer(2xs) var(--core-color-cherry-100) solid;
70
+ border-left: getSpacer(2xs) var(--core-color-cherry-100) solid;
71
+ border-right: getSpacer(2xs) var(--core-color-cherry-100) solid;
72
72
 
73
73
  &:last-of-type {
74
- border-bottom: spacers.getSpacer(2xs) var(--core-color-cherry-100) solid;
74
+ border-bottom: getSpacer(2xs) var(--core-color-cherry-100) solid;
75
75
  }
76
76
  }
77
77
 
78
78
  &--neutral {
79
- border-top: spacers.getSpacer(2xs) var(--core-color-neutral-100) solid;
80
- border-left: spacers.getSpacer(2xs) var(--core-color-neutral-100) solid;
81
- border-right: spacers.getSpacer(2xs) var(--core-color-neutral-100) solid;
79
+ border-top: getSpacer(2xs) var(--core-color-neutral-100) solid;
80
+ border-left: getSpacer(2xs) var(--core-color-neutral-100) solid;
81
+ border-right: getSpacer(2xs) var(--core-color-neutral-100) solid;
82
82
 
83
83
  &:last-of-type {
84
- border-bottom: spacers.getSpacer(2xs) var(--core-color-neutral-100) solid;
84
+ border-bottom: getSpacer(2xs) var(--core-color-neutral-100) solid;
85
85
  }
86
86
  }
87
87
  }
@@ -117,8 +117,8 @@
117
117
  .expander-list-link {
118
118
  padding: 0;
119
119
  position: relative;
120
- font-size: font-settings.$font-size-sm;
121
- line-height: font-settings.$lineheight-size-sm;
120
+ font-size: $font-size-sm;
121
+ line-height: $lineheight-size-sm;
122
122
  display: flex;
123
123
  cursor: pointer;
124
124
  font-family: inherit;
@@ -132,8 +132,8 @@
132
132
  outline: none;
133
133
 
134
134
  @media (min-width: map.get($grid-breakpoints, md)) {
135
- font-size: font-settings.$font-size-md;
136
- line-height: font-settings.$lineheight-size-md;
135
+ font-size: $font-size-md;
136
+ line-height: $lineheight-size-md;
137
137
  }
138
138
 
139
139
  &--open {
@@ -142,7 +142,7 @@
142
142
 
143
143
  &--fill,
144
144
  &--fill-negative {
145
- margin-top: spacers.getSpacer(s);
145
+ margin-top: getSpacer(s);
146
146
  }
147
147
 
148
148
  &--fill-negative {
@@ -150,7 +150,7 @@
150
150
  }
151
151
 
152
152
  &--closed#{&}--fill {
153
- margin-bottom: spacers.getSpacer(s);
153
+ margin-bottom: getSpacer(s);
154
154
  }
155
155
 
156
156
  &:focus-visible:not(.expander-list-link--outline) {
@@ -237,21 +237,21 @@
237
237
  }
238
238
 
239
239
  &--large {
240
- font-size: font-settings.$font-size-lg;
241
- line-height: font-settings.$lineheight-size-lg;
240
+ font-size: $font-size-lg;
241
+ line-height: $lineheight-size-lg;
242
242
  }
243
243
 
244
244
  &__icon {
245
245
  display: flex;
246
246
  align-items: center;
247
- margin-right: spacers.getSpacer(2xs);
247
+ margin-right: getSpacer(2xs);
248
248
  }
249
249
 
250
250
  &__chevron {
251
251
  display: flex;
252
252
  align-items: center;
253
253
  margin-left: auto;
254
- padding-left: spacers.getSpacer(2xs);
254
+ padding-left: getSpacer(2xs);
255
255
  }
256
256
 
257
257
  &__main-content {
@@ -267,7 +267,7 @@
267
267
  }
268
268
 
269
269
  &--padding {
270
- padding: spacers.getSpacer(xs) spacers.getSpacer(s) spacers.getSpacer(l);
270
+ padding: getSpacer(xs) getSpacer(s) getSpacer(l);
271
271
  }
272
272
  }
273
273
  }
@@ -1,3 +1,5 @@
1
+ @import '../../scss/spacers';
2
+
1
3
  .subtitle {
2
4
  margin: 0;
3
5
  }
@@ -1,12 +1,12 @@
1
- @use '../../scss/spacers' as spacers;
2
- @use '../../scss/palette' as palette;
3
- @use '../../scss/font-mixins' as fonts;
4
- @use '../../scss/breakpoints' as *;
1
+ @import '../../scss/spacers';
2
+ @import '../../scss/breakpoints';
3
+ @import '../../scss/palette';
4
+ @import '../../scss/font-mixins';
5
5
 
6
6
  .form-group-wrapper {
7
7
  &__title {
8
8
  &--on-dark {
9
- color: palette.$white;
9
+ color: $white;
10
10
  }
11
11
  }
12
12
  }
@@ -21,20 +21,20 @@
21
21
  margin: 0;
22
22
  display: flex;
23
23
  flex-flow: column;
24
- gap: spacers.getSpacer(s);
24
+ gap: getSpacer(s);
25
25
 
26
26
  > div {
27
27
  padding-bottom: 0;
28
28
  }
29
29
 
30
30
  &__legend {
31
- margin-bottom: spacers.getSpacer(m);
31
+ margin-bottom: getSpacer(m);
32
32
  margin-top: 0;
33
33
 
34
- @include fonts.legend;
34
+ @include legend;
35
35
 
36
36
  &--on-dark {
37
- color: palette.$white;
37
+ color: $white;
38
38
  }
39
39
  }
40
40
  }
@@ -1,15 +1,16 @@
1
- @use '../../scss/spacers' as spacers;
1
+ @import '../../scss/spacers';
2
+ @import '../../scss/breakpoints';
2
3
 
3
4
  .form-layout-container {
4
- // Settes med harde verdier fordi calc() lenger nede ikke støtter spacers.getSpacer()
5
+ // Settes med harde verdier fordi calc() lenger nede ikke støtter getSpacer()
5
6
  --column-gap: 2rem;
6
7
 
7
8
  display: flex;
8
9
  flex-wrap: wrap;
9
- gap: spacers.getSpacer(s) var(--column-gap);
10
+ gap: getSpacer(s) var(--column-gap);
10
11
 
11
12
  &--large {
12
- row-gap: spacers.getSpacer(2xs);
13
+ row-gap: getSpacer(2xs);
13
14
  }
14
15
  }
15
16
 
@@ -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 '../AnchorLink/styles.module' as anchorlink;
6
- @use '../../scss/breakpoints' as *;
2
+ @import '../../scss/spacers';
3
+ @import '../../scss/breakpoints';
4
+ @import '../../scss/palette';
5
+ @import '../../scss/font-settings';
6
+ @import '../AnchorLink/styles.module';
7
7
 
8
8
  .helpbubble {
9
9
  $bubble: &;
@@ -12,12 +12,12 @@
12
12
  align-items: flex-start !important;
13
13
  text-align: start;
14
14
  font-family: inherit;
15
- font-size: font-settings.$font-size-sm;
16
- line-height: font-settings.$lineheight-size-sm;
15
+ font-size: $font-size-sm;
16
+ line-height: $lineheight-size-sm;
17
17
 
18
18
  @media (min-width: map.get($grid-breakpoints, lg)) {
19
- font-size: font-settings.$font-size-md;
20
- line-height: font-settings.$lineheight-size-md;
19
+ font-size: $font-size-md;
20
+ line-height: $lineheight-size-md;
21
21
  }
22
22
 
23
23
  &__content {
@@ -26,8 +26,8 @@
26
26
  flex-direction: column;
27
27
  align-items: flex-start;
28
28
  overflow-wrap: anywhere;
29
- row-gap: spacers.getSpacer(2xs);
30
- padding: spacers.getSpacer(s) spacers.getSpacer(s) spacers.getSpacer(m);
29
+ row-gap: getSpacer(2xs);
30
+ padding: getSpacer(s) getSpacer(s) getSpacer(m);
31
31
 
32
32
  &--close {
33
33
  padding-right: 0;
@@ -41,11 +41,11 @@
41
41
  &__link {
42
42
  all: unset;
43
43
 
44
- @include anchorlink.anchorlink;
44
+ @include anchorlink;
45
45
  }
46
46
 
47
47
  &__close {
48
48
  order: 2;
49
- padding: spacers.getSpacer(2xs) spacers.getSpacer(2xs) 0 0;
49
+ padding: getSpacer(2xs) getSpacer(2xs) 0 0;
50
50
  }
51
51
  }
@@ -1,5 +1,5 @@
1
- @use '../../scss/palette' as palette;
1
+ @import '../../scss/palette';
2
2
 
3
3
  .help-panel {
4
- background-color: palette.$plum50 !important;
4
+ background-color: $plum50 !important;
5
5
  }
@@ -1,49 +1,49 @@
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 *;
2
+ @import '../../scss/spacers';
3
+ @import '../../scss/breakpoints';
4
+ @import '../../scss/palette';
5
+ @import '../../scss/font-settings';
6
6
 
7
7
  .helpquestion {
8
8
  display: inline-flex;
9
9
  align-items: center;
10
10
  text-align: left;
11
- gap: spacers.getSpacer(2xs);
12
- padding: spacers.getSpacer(xs) spacers.getSpacer(xs) spacers.getSpacer(xs) spacers.getSpacer(3xs);
11
+ gap: getSpacer(2xs);
12
+ padding: getSpacer(xs) getSpacer(xs) getSpacer(xs) getSpacer(3xs);
13
13
  border: 0;
14
14
  outline: none;
15
15
  background-color: transparent;
16
16
  cursor: pointer;
17
- color: palette.$plum600;
17
+ color: $plum600;
18
18
  font-weight: 600;
19
- font-size: font-settings.$font-size-sm;
20
- line-height: font-settings.$lineheight-size-xs;
19
+ font-size: $font-size-sm;
20
+ line-height: $lineheight-size-xs;
21
21
 
22
22
  @media (min-width: map.get($grid-breakpoints, md)) {
23
- gap: spacers.getSpacer(2xs);
24
- font-size: font-settings.$font-size-md;
25
- line-height: font-settings.$lineheight-size-sm;
23
+ gap: getSpacer(2xs);
24
+ font-size: $font-size-md;
25
+ line-height: $lineheight-size-sm;
26
26
  }
27
27
 
28
28
  &:hover {
29
- color: palette.$plum800;
30
- background-color: rgba(palette.$plum600, 0.1);
29
+ color: $plum800;
30
+ background-color: rgba($plum600, 0.1);
31
31
  }
32
32
 
33
33
  &:focus-visible {
34
- box-shadow: inset 0 0 0 3px palette.$black;
34
+ box-shadow: inset 0 0 0 3px $black;
35
35
  }
36
36
 
37
37
  &--selected {
38
- color: palette.$plum800;
39
- background-color: rgba(palette.$plum600, 0.1);
38
+ color: $plum800;
39
+ background-color: rgba($plum600, 0.1);
40
40
 
41
41
  &:hover {
42
- background-color: rgba(palette.$plum600, 0.2);
42
+ background-color: rgba($plum600, 0.2);
43
43
  }
44
44
 
45
45
  &:focus-visible {
46
- background-color: rgba(palette.$plum600, 0.1);
46
+ background-color: rgba($plum600, 0.1);
47
47
  }
48
48
  }
49
49
  }
@@ -1,8 +1,8 @@
1
1
  @use 'sass:map';
2
- @use '../../scss/spacers' as spacers;
3
- @use '../../scss/screen-reader' as *;
4
- @use '../../scss/breakpoints' as *;
2
+ @import '../../scss/spacers';
3
+ @import '../../scss/breakpoints';
5
4
  @import '../../scss/grid';
5
+ @import '../../scss/screen-reader';
6
6
  @import '../../scss/supernova/styles/colors';
7
7
 
8
8
  @mixin content-wrapper-with-icon-flex {
@@ -17,7 +17,7 @@
17
17
  }
18
18
 
19
19
  @mixin content-wrapper-with-icon-padding {
20
- padding-top: spacers.getSpacer(m);
20
+ padding-top: getSpacer(m);
21
21
  }
22
22
 
23
23
  .highlightpanel {
@@ -48,35 +48,35 @@
48
48
 
49
49
  &--large {
50
50
  #{$panel}__content-wrapper {
51
- padding: spacers.getSpacer(m) spacers.getSpacer(s) spacers.getSpacer(l);
51
+ padding: getSpacer(m) getSpacer(s) getSpacer(l);
52
52
 
53
53
  @media (min-width: map.get($grid-breakpoints, lg)) {
54
- padding-top: spacers.getSpacer(l);
55
- padding-bottom: spacers.getSpacer(xl);
54
+ padding-top: getSpacer(l);
55
+ padding-bottom: getSpacer(xl);
56
56
  }
57
57
  }
58
58
  }
59
59
 
60
60
  &--medium {
61
61
  #{$panel}__content-wrapper {
62
- padding: spacers.getSpacer(m) spacers.getSpacer(s) spacers.getSpacer(l);
62
+ padding: getSpacer(m) getSpacer(s) getSpacer(l);
63
63
 
64
64
  @media (min-width: map.get($grid-breakpoints, md)) {
65
- padding: spacers.getSpacer(m) spacers.getSpacer(m) spacers.getSpacer(l);
65
+ padding: getSpacer(m) getSpacer(m) getSpacer(l);
66
66
  }
67
67
 
68
68
  @media (min-width: map.get($grid-breakpoints, lg)) {
69
- padding: spacers.getSpacer(l);
69
+ padding: getSpacer(l);
70
70
  }
71
71
  }
72
72
  }
73
73
 
74
74
  // fluid skal ha bakgrunnsfarge på den ytre containeren
75
75
  &--fluid {
76
- padding: spacers.getSpacer(m) spacers.getSpacer(s) spacers.getSpacer(l);
76
+ padding: getSpacer(m) getSpacer(s) getSpacer(l);
77
77
 
78
78
  @media (min-width: map.get($grid-breakpoints, lg)) {
79
- padding: spacers.getSpacer(m) spacers.getSpacer(m) spacers.getSpacer(l);
79
+ padding: getSpacer(m) getSpacer(m) getSpacer(l);
80
80
  }
81
81
 
82
82
  @each $color in $colors {
@@ -98,7 +98,7 @@
98
98
  @include content-wrapper-with-icon-flex-responsive;
99
99
 
100
100
  @media (min-width: map.get($grid-breakpoints, lg)) {
101
- padding-left: spacers.getSpacer(m);
101
+ padding-left: getSpacer(m);
102
102
  }
103
103
  }
104
104
  }
@@ -112,17 +112,17 @@
112
112
  @include content-wrapper-with-icon-padding;
113
113
 
114
114
  @media (min-width: map.get($grid-breakpoints, sm)) {
115
- padding-left: spacers.getSpacer(s);
115
+ padding-left: getSpacer(s);
116
116
  }
117
117
 
118
118
  @media (min-width: map.get($grid-breakpoints, md)) {
119
- padding-left: spacers.getSpacer(m);
119
+ padding-left: getSpacer(m);
120
120
  }
121
121
 
122
122
  @media (min-width: map.get($grid-breakpoints, lg)) {
123
123
  padding-left: 0;
124
- padding-top: spacers.getSpacer(l);
125
- padding-bottom: spacers.getSpacer(xl);
124
+ padding-top: getSpacer(l);
125
+ padding-bottom: getSpacer(xl);
126
126
  }
127
127
  }
128
128
 
@@ -134,7 +134,7 @@
134
134
  display: flex;
135
135
  justify-content: flex-end;
136
136
  margin-right: 0;
137
- padding-right: spacers.getSpacer(s);
137
+ padding-right: getSpacer(s);
138
138
  }
139
139
  }
140
140
 
@@ -160,8 +160,8 @@
160
160
 
161
161
  &__icon {
162
162
  display: inline-flex;
163
- margin-right: spacers.getSpacer(s);
164
- margin-bottom: spacers.getSpacer(2xs);
163
+ margin-right: getSpacer(s);
164
+ margin-bottom: getSpacer(2xs);
165
165
 
166
166
  @media (min-width: map.get($grid-breakpoints, md)) {
167
167
  margin-bottom: 0;
@@ -1,6 +1,5 @@
1
- @use '../../scss/spacers' as spacers;
2
- @use '../../scss/palette' as palette;
3
- @use '../../scss/breakpoints' as *;
1
+ @import '../../scss/breakpoints';
2
+ @import '../../scss/palette';
4
3
 
5
4
  // Disables fordi stylelint og prettier er uenige
6
5
  /* stylelint-disable-next-line scss/dollar-variable-colon-space-after */
@@ -16,7 +15,7 @@ $gradient:
16
15
  display: flex;
17
16
 
18
17
  &:focus-visible {
19
- outline: spacers.getSpacer(4xs) solid palette.$black;
18
+ outline: getSpacer(4xs) solid $black;
20
19
  outline-offset: -1px;
21
20
  }
22
21