@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
package/CHANGELOG.md CHANGED
@@ -1,3 +1,28 @@
1
+ ## [10.2.0](https://github.com/helsenorge/designsystem/branchCompare?baseVersion=GTv10.1.0&targetVersion=GTv10.2.0) (2025-02-18)
2
+
3
+ ### Features
4
+
5
+ - nytt komponent drawer ([563a44e](https://github.com/helsenorge/designsystem/commit/563a44ee979ec777cdaea4a02134e3187000b3b9)), closes
6
+ [#339100](https://github.com/helsenorge/designsystem/issues/339100)
7
+ - oppdatering på fontstack spesifikasjon
8
+ ([07f2f01](https://github.com/helsenorge/designsystem/commit/07f2f0197099c5d820d0c6caf727b898c86a2c6d)), closes
9
+ [#344729](https://github.com/helsenorge/designsystem/issues/344729)
10
+ - **illustration:** nye illustrasjoner
11
+ ([e3bc97d](https://github.com/helsenorge/designsystem/commit/e3bc97d4b9e0cbf4e4d5a38afd587e4da5a29b22)), closes
12
+ [#339457](https://github.com/helsenorge/designsystem/issues/339457)
13
+
14
+ ### Bug Fixes
15
+
16
+ - usebreakpoint oppdateres live igjen
17
+ ([fb93380](https://github.com/helsenorge/designsystem/commit/fb93380c21fa31f974224b977cfd82e7077d9f87)), closes
18
+ [#345242](https://github.com/helsenorge/designsystem/issues/345242)
19
+ - **highlightpanel:** ikke rendre tittel to ganger og fiks bakgrunnsfarge i large size
20
+ ([73e0a71](https://github.com/helsenorge/designsystem/commit/73e0a7182f9473ddce3ff6db8cf5ad758d517d86)), closes
21
+ [#337117](https://github.com/helsenorge/designsystem/issues/337117) [#340928](https://github.com/helsenorge/designsystem/issues/340928)
22
+ - **modal:** returnerer fokus ved lukk og 400 prosent zoom fiks for høyde
23
+ ([7695152](https://github.com/helsenorge/designsystem/commit/7695152fc6ce8a995ec61636b5de8b47ad0dd6ef)), closes
24
+ [#344549](https://github.com/helsenorge/designsystem/issues/344549)
25
+
1
26
  ## [10.1.0](https://github.com/helsenorge/designsystem/branchCompare?baseVersion=GTv10.0.3&targetVersion=GTv10.1.0) (2025-02-11)
2
27
 
3
28
  ### Features
@@ -1,21 +1,20 @@
1
1
  @use 'sass:map';
2
- @import '../../scss/spacers';
3
- @import '../../scss/breakpoints';
4
- @import '../../scss/palette';
2
+ @use '../../scss/palette' as palette;
3
+ @use '../../scss/breakpoints' as *;
5
4
 
6
5
  $underline-width: 0.0625rem;
7
6
  $focus-width: 0.15rem;
8
7
 
9
8
  @mixin anchorlink-hover {
10
9
  cursor: pointer;
11
- color: $blueberry700;
12
- background-color: $blueberry60010;
13
- text-decoration-color: $blueberry600;
10
+ color: palette.$blueberry700;
11
+ background-color: palette.$blueberry60010;
12
+ text-decoration-color: palette.$blueberry600;
14
13
  }
15
14
 
16
15
  @mixin anchorlink-focus {
17
16
  outline: none;
18
- border: $focus-width solid $black;
17
+ border: $focus-width solid palette.$black;
19
18
  }
20
19
 
21
20
  @mixin anchorlink {
@@ -24,11 +23,11 @@ $focus-width: 0.15rem;
24
23
  overflow-wrap: break-word;
25
24
  word-break: break-word;
26
25
  text-align: left;
27
- color: $blueberry600;
26
+ color: palette.$blueberry600;
28
27
  border: $focus-width solid transparent;
29
28
  text-decoration: underline;
30
29
  text-underline-offset: 0.16rem;
31
- text-decoration-color: $blueberry400;
30
+ text-decoration-color: palette.$blueberry400;
32
31
  text-decoration-thickness: $underline-width;
33
32
  padding: 0.1rem;
34
33
 
@@ -1,13 +1,13 @@
1
- @import '../../scss/palette';
2
- @import '../../scss/font-settings';
1
+ @use '../../scss/palette' as palette;
2
+ @use '../../scss/font-settings' as font-settings;
3
3
 
4
4
  .avatar {
5
5
  display: flex;
6
6
  justify-content: center;
7
7
  align-items: center;
8
8
  font-weight: 600;
9
- background-color: $blueberry500;
10
- color: $white;
9
+ background-color: palette.$blueberry500;
10
+ color: palette.$white;
11
11
 
12
12
  &--circle {
13
13
  border-radius: 50%;
@@ -18,7 +18,7 @@
18
18
  }
19
19
 
20
20
  &--black {
21
- background-color: $neutral900;
21
+ background-color: palette.$neutral900;
22
22
  }
23
23
 
24
24
  &--selected#{&}--black {
@@ -28,14 +28,14 @@
28
28
  &--xsmall {
29
29
  width: 2.375rem;
30
30
  height: 2.375rem;
31
- font-size: $font-size-md;
32
- line-height: $lineheight-size-md;
31
+ font-size: font-settings.$font-size-md;
32
+ line-height: font-settings.$lineheight-size-md;
33
33
  }
34
34
 
35
35
  &--small {
36
36
  width: 3rem;
37
37
  height: 3rem;
38
- font-size: $font-size-lg;
39
- line-height: $lineheight-size-lg;
38
+ font-size: font-settings.$font-size-lg;
39
+ line-height: font-settings.$lineheight-size-lg;
40
40
  }
41
41
  }
@@ -1,4 +1,4 @@
1
- @import '../../scss/palette';
1
+ @use '../../scss/palette' as palette;
2
2
 
3
3
  .badge {
4
4
  display: inline-flex;
@@ -10,23 +10,23 @@
10
10
  height: 1.375rem;
11
11
  border-radius: 1rem;
12
12
  padding: 0 0.375rem;
13
- color: $white;
14
- background-color: $black;
13
+ color: palette.$white;
14
+ background-color: palette.$black;
15
15
  border: 1px solid;
16
16
 
17
17
  &--blueberry {
18
- background-color: $blueberry500;
19
- border-color: $blueberry600;
18
+ background-color: palette.$blueberry500;
19
+ border-color: palette.$blueberry600;
20
20
  }
21
21
 
22
22
  &--cherry {
23
- background-color: $cherry500;
24
- border-color: $cherry600;
23
+ background-color: palette.$cherry500;
24
+ border-color: palette.$cherry600;
25
25
  }
26
26
 
27
27
  &--neutral {
28
- color: $black;
28
+ color: palette.$black;
29
29
  background-color: transparent;
30
- border-color: $neutral600;
30
+ border-color: palette.$neutral600;
31
31
  }
32
32
  }
@@ -1,25 +1,31 @@
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
  @import '../../scss/supernova/styles/colors';
8
8
 
9
9
  $dark-mode-disabled-transparrent: #ffffffb3;
10
10
  $with-icons: // icon-class, size-class, padding-left, padding-right, padding-left desktop, padding-right desktop, svg-margin-left, svg-margin-right, svg-margin-left desktop, svg-margin-right desktop
11
- 'left-icon' 'normal' getSpacer(xs) getSpacer(s) getSpacer(xs) getSpacer(m) 0 getSpacer(3xs) 0 getSpacer(2xs),
12
- 'right-icon' 'normal' getSpacer(s) getSpacer(xs) getSpacer(m) getSpacer(xs) getSpacer(3xs) 0 getSpacer(2xs) 0,
13
- 'left-icon' 'large' getSpacer(xs) getSpacer(m) getSpacer(s) getSpacer(l) 0 getSpacer(2xs) 0 getSpacer(xs),
14
- 'right-icon' 'large' getSpacer(m) getSpacer(xs) getSpacer(l) getSpacer(s) getSpacer(2xs) 0 getSpacer(xs) 0,
15
- 'arrow' 'normal' getSpacer(s) getSpacer(xs) getSpacer(m) getSpacer(xs) getSpacer(m) 0 getSpacer(l) 0,
16
- 'arrow' 'large' getSpacer(m) getSpacer(xs) getSpacer(l) getSpacer(xs) getSpacer(l) 0 getSpacer(xl) 0,
17
- 'arrow--both-icons' 'normal' 0 0 0 0 getSpacer(s) 0 getSpacer(m) 0,
18
- 'arrow--both-icons' 'large' 0 0 0 0 getSpacer(m) 0 getSpacer(l) 0,
11
+ 'left-icon' 'normal' spacers.getSpacer(xs) spacers.getSpacer(s) spacers.getSpacer(xs) spacers.getSpacer(m) 0 spacers.getSpacer(3xs) 0
12
+ spacers.getSpacer(2xs),
13
+ 'right-icon' 'normal' spacers.getSpacer(s) spacers.getSpacer(xs) spacers.getSpacer(m) spacers.getSpacer(xs) spacers.getSpacer(3xs) 0
14
+ spacers.getSpacer(2xs) 0,
15
+ 'left-icon' 'large' spacers.getSpacer(xs) spacers.getSpacer(m) spacers.getSpacer(s) spacers.getSpacer(l) 0 spacers.getSpacer(2xs) 0
16
+ spacers.getSpacer(xs),
17
+ 'right-icon' 'large' spacers.getSpacer(m) spacers.getSpacer(xs) spacers.getSpacer(l) spacers.getSpacer(s) spacers.getSpacer(2xs) 0
18
+ spacers.getSpacer(xs) 0,
19
+ 'arrow' 'normal' spacers.getSpacer(s) spacers.getSpacer(xs) spacers.getSpacer(m) spacers.getSpacer(xs) spacers.getSpacer(m) 0
20
+ spacers.getSpacer(l) 0,
21
+ 'arrow' 'large' spacers.getSpacer(m) spacers.getSpacer(xs) spacers.getSpacer(l) spacers.getSpacer(xs) spacers.getSpacer(l) 0
22
+ spacers.getSpacer(xl) 0,
23
+ 'arrow--both-icons' 'normal' 0 0 0 0 spacers.getSpacer(s) 0 spacers.getSpacer(m) 0,
24
+ 'arrow--both-icons' 'large' 0 0 0 0 spacers.getSpacer(m) 0 spacers.getSpacer(l) 0,
19
25
  'only-icon' 'normal' 0.062rem 0.062rem 0.375rem 0.375rem 0 0 0 0,
20
- 'only-icon' 'large' 0.312rem 0.312rem getSpacer(3xs) getSpacer(3xs) 0 0 0 0,
21
- 'both-icons' 'normal' getSpacer(xs) getSpacer(xs) getSpacer(xs) getSpacer(xs) 0 0 0 0,
22
- 'both-icons' 'large' getSpacer(xs) getSpacer(xs) getSpacer(xs) getSpacer(xs) 0 0 0 0;
26
+ 'only-icon' 'large' 0.312rem 0.312rem spacers.getSpacer(3xs) spacers.getSpacer(3xs) 0 0 0 0,
27
+ 'both-icons' 'normal' spacers.getSpacer(xs) spacers.getSpacer(xs) spacers.getSpacer(xs) spacers.getSpacer(xs) 0 0 0 0,
28
+ 'both-icons' 'large' spacers.getSpacer(xs) spacers.getSpacer(xs) spacers.getSpacer(xs) spacers.getSpacer(xs) 0 0 0 0;
23
29
 
24
30
  // Brukes til å aktivere hover styling uten at button hovres
25
31
  @mixin outline-borderless-hover {
@@ -34,11 +40,11 @@ $with-icons: // icon-class, size-class, padding-left, padding-right, padding-lef
34
40
  }
35
41
 
36
42
  @mixin focus-shadow {
37
- box-shadow: 0 0 0 getSpacer(3xs) $black;
43
+ box-shadow: 0 0 0 spacers.getSpacer(3xs) palette.$black;
38
44
  }
39
45
 
40
46
  @mixin focus-shadow-on-dark {
41
- box-shadow: 0 0 0 getSpacer(3xs) $white;
47
+ box-shadow: 0 0 0 spacers.getSpacer(3xs) palette.$white;
42
48
  }
43
49
 
44
50
  @mixin outline-borderless-background($background-color, $hover-background-color) {
@@ -54,18 +60,18 @@ $with-icons: // icon-class, size-class, padding-left, padding-right, padding-lef
54
60
  }
55
61
 
56
62
  @mixin outline($ouline-color, $hover-outline-color) {
57
- outline: getSpacer(4xs) solid $ouline-color;
58
- outline-offset: getSpacer(4xs) * -1;
63
+ outline: spacers.getSpacer(4xs) solid $ouline-color;
64
+ outline-offset: spacers.getSpacer(4xs) * -1;
59
65
 
60
66
  &:hover {
61
67
  box-shadow: none;
62
68
  }
63
69
 
64
70
  :disabled > & {
65
- outline-color: $neutral700;
71
+ outline-color: palette.$neutral700;
66
72
 
67
73
  @media (min-width: map.get($grid-breakpoints, md)) {
68
- outline-color: $neutral500;
74
+ outline-color: palette.$neutral500;
69
75
  }
70
76
  }
71
77
  }
@@ -79,13 +85,13 @@ $with-icons: // icon-class, size-class, padding-left, padding-right, padding-lef
79
85
 
80
86
  :disabled > & {
81
87
  @media (min-width: map.get($grid-breakpoints, md)) {
82
- color: $neutral700;
88
+ color: palette.$neutral700;
83
89
  }
84
90
  }
85
91
  }
86
92
 
87
93
  @mixin fill-on-dark($background-color) {
88
- background-color: $white;
94
+ background-color: palette.$white;
89
95
 
90
96
  &:hover {
91
97
  box-shadow: none;
@@ -102,7 +108,7 @@ $with-icons: // icon-class, size-class, padding-left, padding-right, padding-lef
102
108
  &:hover {
103
109
  @include focus-shadow-on-dark;
104
110
 
105
- background-color: $white;
111
+ background-color: palette.$white;
106
112
  }
107
113
  }
108
114
 
@@ -116,7 +122,7 @@ $with-icons: // icon-class, size-class, padding-left, padding-right, padding-lef
116
122
  color: $color;
117
123
 
118
124
  :disabled > & {
119
- color: $neutral700;
125
+ color: palette.$neutral700;
120
126
  }
121
127
  }
122
128
 
@@ -125,7 +131,7 @@ $with-icons: // icon-class, size-class, padding-left, padding-right, padding-lef
125
131
  @include fill-on-dark(var(--color-action-background-ondark-hover));
126
132
  }
127
133
  &--on-dark#{&}--destructive {
128
- @include fill-on-dark($cherry50);
134
+ @include fill-on-dark(palette.$cherry50);
129
135
  }
130
136
  &--on-dark#{&}--outline,
131
137
  &--on-dark#{&}--borderless,
@@ -134,11 +140,11 @@ $with-icons: // icon-class, size-class, padding-left, padding-right, padding-lef
134
140
  background-color: transparent;
135
141
 
136
142
  &:hover {
137
- background-color: $inverted-hover;
143
+ background-color: palette.$inverted-hover;
138
144
  }
139
145
  }
140
146
  &--on-dark#{&}--outline {
141
- outline-color: $white;
147
+ outline-color: palette.$white;
142
148
 
143
149
  :disabled > & {
144
150
  @media (min-width: map.get($grid-breakpoints, md)) {
@@ -153,14 +159,14 @@ $with-icons: // icon-class, size-class, padding-left, padding-right, padding-lef
153
159
  }
154
160
 
155
161
  &--on-dark &__text {
156
- @include on-dark-text($blueberry600);
162
+ @include on-dark-text(palette.$blueberry600);
157
163
  }
158
164
  &--on-dark#{&}--destructive &__text {
159
- @include on-dark-text($cherry600);
165
+ @include on-dark-text(palette.$cherry600);
160
166
  }
161
167
  &--on-dark#{&}--outline &__text,
162
168
  &--on-dark#{&}--borderless &__text {
163
- color: $white;
169
+ color: palette.$white;
164
170
 
165
171
  :disabled > & {
166
172
  @media (min-width: map.get($grid-breakpoints, md)) {
@@ -195,9 +201,9 @@ $with-icons: // icon-class, size-class, padding-left, padding-right, padding-lef
195
201
 
196
202
  .button {
197
203
  display: inline-flex;
198
- background-color: $blueberry500;
199
- padding: 0 getSpacer(m);
200
- font-size: $font-size-sm;
204
+ background-color: palette.$blueberry500;
205
+ padding: 0 spacers.getSpacer(m);
206
+ font-size: font-settings.$font-size-sm;
201
207
  font-weight: 600;
202
208
  font-family: inherit;
203
209
  line-height: 1.375rem;
@@ -211,37 +217,37 @@ $with-icons: // icon-class, size-class, padding-left, padding-right, padding-lef
211
217
  letter-spacing: unset;
212
218
 
213
219
  &:hover {
214
- background-color: $blueberry700;
215
- box-shadow: 0 0 0 getSpacer(3xs) $blueberry700;
220
+ background-color: palette.$blueberry700;
221
+ box-shadow: 0 0 0 spacers.getSpacer(3xs) palette.$blueberry700;
216
222
  }
217
223
 
218
224
  :disabled > & {
219
225
  pointer-events: none;
220
- outline: getSpacer(4xs) dashed $neutral700;
221
- outline-offset: getSpacer(4xs) * -1;
222
- background-color: $neutral200;
226
+ outline: spacers.getSpacer(4xs) dashed palette.$neutral700;
227
+ outline-offset: spacers.getSpacer(4xs) * -1;
228
+ background-color: palette.$neutral200;
223
229
  }
224
230
 
225
231
  :disabled > & &__text {
226
- color: $neutral800;
232
+ color: palette.$neutral800;
227
233
  }
228
234
 
229
235
  @media (min-width: map.get($grid-breakpoints, md)) {
230
236
  min-height: 3.125rem;
231
- padding: 0 getSpacer(l);
232
- font-size: $font-size-md;
237
+ padding: 0 spacers.getSpacer(l);
238
+ font-size: font-settings.$font-size-md;
233
239
  line-height: 1.5rem;
234
240
  }
235
241
 
236
242
  &--large {
237
243
  min-height: 3.5rem;
238
- padding: 0 getSpacer(l);
244
+ padding: 0 spacers.getSpacer(l);
239
245
  font-size: 1.3125rem;
240
246
 
241
247
  @media (min-width: map.get($grid-breakpoints, md)) {
242
248
  min-height: 4.5rem;
243
- padding: 0 getSpacer(xl);
244
- font-size: $font-size-lg;
249
+ padding: 0 spacers.getSpacer(xl);
250
+ font-size: font-settings.$font-size-lg;
245
251
  line-height: 1.5rem;
246
252
  }
247
253
  }
@@ -271,11 +277,11 @@ $with-icons: // icon-class, size-class, padding-left, padding-right, padding-lef
271
277
  }
272
278
 
273
279
  &--destructive {
274
- background-color: $cherry500;
280
+ background-color: palette.$cherry500;
275
281
 
276
282
  &:hover {
277
- background-color: $cherry700;
278
- box-shadow: 0 0 0 getSpacer(3xs) $cherry700;
283
+ background-color: palette.$cherry700;
284
+ box-shadow: 0 0 0 spacers.getSpacer(3xs) palette.$cherry700;
279
285
  }
280
286
  }
281
287
 
@@ -285,19 +291,19 @@ $with-icons: // icon-class, size-class, padding-left, padding-right, padding-lef
285
291
  }
286
292
  &--outline#{&}--destructive,
287
293
  &--borderless#{&}--destructive {
288
- @include outline-borderless-background(transparent, $cherry50);
294
+ @include outline-borderless-background(transparent, palette.$cherry50);
289
295
  }
290
296
 
291
297
  &--outline {
292
- @include outline($blueberry700, $blueberry50);
298
+ @include outline(palette.$blueberry700, palette.$blueberry50);
293
299
  }
294
300
  &--outline#{&}--destructive {
295
- @include outline($cherry700, $cherry50);
301
+ @include outline(palette.$cherry700, palette.$cherry50);
296
302
  }
297
303
 
298
304
  /* stylelint-disable-next-line */
299
305
  &--borderless:not(.button--only-icon) {
300
- padding: 0 getSpacer(3xs);
306
+ padding: 0 spacers.getSpacer(3xs);
301
307
  }
302
308
 
303
309
  /* stylelint-disable-next-line */
@@ -323,7 +329,7 @@ $with-icons: // icon-class, size-class, padding-left, padding-right, padding-lef
323
329
 
324
330
  /* stylelint-disable-next-line */
325
331
  &__text {
326
- color: $white;
332
+ color: palette.$white;
327
333
  margin: 0 auto 0 0;
328
334
  position: relative;
329
335
  display: flex;
@@ -356,7 +362,7 @@ $with-icons: // icon-class, size-class, padding-left, padding-right, padding-lef
356
362
  }
357
363
  &--outline#{&}--destructive &__text,
358
364
  &--borderless#{&}--destructive &__text {
359
- @include text-color($cherry600, $cherry700);
365
+ @include text-color(palette.$cherry600, palette.$cherry700);
360
366
  }
361
367
 
362
368
  /* stylelint-disable-next-line */
@@ -367,8 +373,8 @@ $with-icons: // icon-class, size-class, padding-left, padding-right, padding-lef
367
373
  @include on-dark;
368
374
 
369
375
  @include tiny-screens-media-query {
370
- min-height: getSpacer(l);
371
- padding: 0 getSpacer(xs);
376
+ min-height: spacers.getSpacer(l);
377
+ padding: 0 spacers.getSpacer(xs);
372
378
  }
373
379
  }
374
380
 
@@ -381,13 +387,13 @@ $with-icons: // icon-class, size-class, padding-left, padding-right, padding-lef
381
387
 
382
388
  &__line {
383
389
  display: block;
384
- border-bottom: getSpacer(4xs) dashed $neutral500;
390
+ border-bottom: spacers.getSpacer(4xs) dashed palette.$neutral500;
385
391
  transform-origin: top left;
386
392
  transform: rotate(37.4deg);
387
393
  }
388
394
 
389
395
  &--on-dark &__line {
390
- border-color: $white;
396
+ border-color: palette.$white;
391
397
 
392
398
  @media (min-width: map.get($grid-breakpoints, md)) {
393
399
  border-color: $dark-mode-disabled-transparrent;