@drivy/cobalt 0.25.0 → 0.26.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 (66) hide show
  1. package/cjs/tokens/theme.js +86 -79
  2. package/cjs/tokens/theme.js.map +1 -1
  3. package/components/Callout/index.js +3 -1
  4. package/components/Callout/index.js.map +1 -1
  5. package/components/Flash/index.js +1 -1
  6. package/components/Flash/index.js.map +1 -1
  7. package/components/Rating/RatingIcons.js +2 -2
  8. package/components/Rating/RatingIcons.js.map +1 -1
  9. package/package.json +13 -13
  10. package/styles/components/BasicCell/index.scss +8 -6
  11. package/styles/components/BulletList/index.scss +2 -2
  12. package/styles/components/Buttons/GhostButton/index.scss +4 -4
  13. package/styles/components/Buttons/index.scss +5 -3
  14. package/styles/components/Calendar/CalendarRangePicker/index.scss +39 -17
  15. package/styles/components/Calendar/CalendarView/index.scss +10 -9
  16. package/styles/components/Callout/index.scss +37 -29
  17. package/styles/components/Card/index.scss +9 -10
  18. package/styles/components/Cell/index.scss +5 -4
  19. package/styles/components/Chip/index.scss +12 -15
  20. package/styles/components/EmptyState/index.scss +5 -5
  21. package/styles/components/Flash/index.scss +21 -7
  22. package/styles/components/Form/Autocomplete/index.scss +3 -3
  23. package/styles/components/Form/CheckablePill.scss +3 -3
  24. package/styles/components/Form/Checkmark.scss +3 -3
  25. package/styles/components/Form/ComposedField.scss +2 -2
  26. package/styles/components/Form/Fieldset.scss +6 -6
  27. package/styles/components/Form/Hint.scss +3 -3
  28. package/styles/components/Form/RadioWithDetails.scss +1 -1
  29. package/styles/components/Form/Select.scss +1 -1
  30. package/styles/components/Form/Slider.scss +7 -7
  31. package/styles/components/Form/Stepper.scss +2 -2
  32. package/styles/components/Form/TextArea.scss +2 -2
  33. package/styles/components/Form/TextInput.scss +1 -1
  34. package/styles/components/Form/ToggleSwitch.scss +4 -4
  35. package/styles/components/Form/field.scss +5 -5
  36. package/styles/components/Form/form.scss +2 -2
  37. package/styles/components/Helper/index.scss +1 -1
  38. package/styles/components/Icon/iconColors.scss +46 -42
  39. package/styles/components/Icon/index.scss +9 -2
  40. package/styles/components/Modal/index.scss +1 -1
  41. package/styles/components/Note/index.scss +2 -2
  42. package/styles/components/Pill/index.scss +3 -5
  43. package/styles/components/Popover/index.scss +1 -1
  44. package/styles/components/PriceTable/index.scss +1 -1
  45. package/styles/components/ProgressBar/index.scss +6 -5
  46. package/styles/components/Rating/index.scss +3 -3
  47. package/styles/components/TabBar/index.scss +9 -12
  48. package/styles/components/Tabs/index.scss +9 -11
  49. package/styles/components/Tag/index.scss +3 -2
  50. package/styles/core/_colors-map.scss +83 -76
  51. package/styles/core/card.scss +1 -0
  52. package/styles/core/color.scss +4 -0
  53. package/styles/core/fonts.scss +0 -2
  54. package/styles/core/global-variables.scss +1 -1
  55. package/styles/core/text.scss +29 -8
  56. package/styles/core/theme.scss +64 -57
  57. package/styles/core/typography.scss +14 -12
  58. package/styles/fonts/README.md +2 -2
  59. package/styles/fonts/{BrandFont.woff → placeholder-BrandFont.woff} +0 -0
  60. package/styles/global/typography.scss +1 -1
  61. package/styles/index.scss +1 -1
  62. package/tokens/theme.js +86 -79
  63. package/tokens/theme.js.map +1 -1
  64. package/types/components/Icon/index.d.ts +1 -1
  65. package/types/tokens/index.d.ts +73 -66
  66. package/utilities.css +132 -108
@@ -1,11 +1,12 @@
1
1
  @use "sass:math";
2
2
 
3
3
  .cobalt-CalendarRangePicker {
4
- $calendar-start-end-day-color: color(purple);
5
- $calendar-start-end-day-font-color: color(white);
4
+ // TOFIX change it to AccentAlt color
6
5
  $calendar-range-day-color: lighten(color(purple, light), 29);
7
6
  $calendar-selected-day-invalid-color: color(red);
7
+ // TOFIX change it to ErrorAlt color
8
8
  $calendar-range-day-invalid-color: lighten(color(red), 20);
9
+ // TOFIX find a semantic color equivalent
9
10
  $calendar-out-of-range-color: darken($calendar-range-day-invalid-color, 8);
10
11
 
11
12
  $calendar-day-inner-height: 24px;
@@ -26,6 +27,9 @@
26
27
  }
27
28
 
28
29
  @mixin start-end-day {
30
+ @include bg-color(accent);
31
+ @include text-color(inversed);
32
+
29
33
  position: absolute;
30
34
  z-index: -1;
31
35
  top: math.div($calendar-day-inner-height - $calendar-start-end-size, 2);
@@ -37,12 +41,9 @@
37
41
  height: $calendar-start-end-size;
38
42
  width: $calendar-start-end-size;
39
43
 
40
- color: $calendar-start-end-day-font-color;
41
-
42
44
  content: "";
43
45
 
44
46
  border-radius: 50%;
45
- background: $calendar-start-end-day-color;
46
47
 
47
48
  box-shadow: rgba(176, 26, 167, 0.4) 0 2px 6px 0;
48
49
  }
@@ -147,7 +148,7 @@
147
148
 
148
149
  &--startDay,
149
150
  &--endDay {
150
- color: $calendar-start-end-day-font-color;
151
+ @include text-color(inversed);
151
152
 
152
153
  font-weight: 600;
153
154
 
@@ -182,15 +183,23 @@
182
183
  }
183
184
 
184
185
  // start/end day content when the other one is currently edited + today
185
- &--startDay.cobalt-CalendarRangePicker__day--today:not(&--endDay).cobalt-CalendarRangePicker__day--subdued,
186
- &--endDay.cobalt-CalendarRangePicker__day--today:not(&--startDay).cobalt-CalendarRangePicker__day--subdued {
186
+ &--startDay.cobalt-CalendarRangePicker__day--today:not(
187
+ &--endDay
188
+ ).cobalt-CalendarRangePicker__day--subdued,
189
+ &--endDay.cobalt-CalendarRangePicker__day--today:not(
190
+ &--startDay
191
+ ).cobalt-CalendarRangePicker__day--subdued {
187
192
  font-weight: 600;
188
193
  color: color(purple);
189
194
  }
190
195
 
191
196
  // not today
192
- &--startDay:not(&--endDay):not(&--today).cobalt-CalendarRangePicker__day--subdued,
193
- &--endDay:not(&--startDay):not(&--today).cobalt-CalendarRangePicker__day--subdued {
197
+ &--startDay:not(&--endDay):not(
198
+ &--today
199
+ ).cobalt-CalendarRangePicker__day--subdued,
200
+ &--endDay:not(&--startDay):not(
201
+ &--today
202
+ ).cobalt-CalendarRangePicker__day--subdued {
194
203
  font-weight: inherit;
195
204
  color: black;
196
205
  }
@@ -204,9 +213,13 @@
204
213
  box-shadow: none;
205
214
  }
206
215
 
207
- &--selected:not(&--startDay).cobalt-CalendarRangePicker__day--range.cobalt-CalendarRangePicker__day--firstOfMonth
216
+ &--selected:not(
217
+ &--startDay
218
+ ).cobalt-CalendarRangePicker__day--range.cobalt-CalendarRangePicker__day--firstOfMonth
208
219
  .cobalt-CalendarRangePicker__day-inner:before,
209
- &--selected:not(&--endDay).cobalt-CalendarRangePicker__day--range.cobalt-CalendarRangePicker__day--lastOfMonth
220
+ &--selected:not(
221
+ &--endDay
222
+ ).cobalt-CalendarRangePicker__day--range.cobalt-CalendarRangePicker__day--lastOfMonth
210
223
  .cobalt-CalendarRangePicker__day-inner:before {
211
224
  position: absolute;
212
225
 
@@ -264,7 +277,9 @@
264
277
  }
265
278
 
266
279
  // out of range start day range
267
- &--startDay:not(&--endDay).cobalt-CalendarRangePicker__day--range.cobalt-CalendarRangePicker__day--invalid {
280
+ &--startDay:not(
281
+ &--endDay
282
+ ).cobalt-CalendarRangePicker__day--range.cobalt-CalendarRangePicker__day--invalid {
268
283
  .cobalt-CalendarRangePicker__day-inner {
269
284
  @include start-range($calendar-out-of-range-color);
270
285
  }
@@ -278,7 +293,9 @@
278
293
  }
279
294
 
280
295
  // invalid end day range
281
- &--endDay:not(&--startDay).cobalt-CalendarRangePicker__day--range.cobalt-CalendarRangePicker__day--invalid {
296
+ &--endDay:not(
297
+ &--startDay
298
+ ).cobalt-CalendarRangePicker__day--range.cobalt-CalendarRangePicker__day--invalid {
282
299
  .cobalt-CalendarRangePicker__day-inner {
283
300
  @include end-range($calendar-out-of-range-color);
284
301
  }
@@ -287,8 +304,9 @@
287
304
  // invalid start/end day background (circle)
288
305
  &--startDay .cobalt-CalendarRangePicker__day-inner:after,
289
306
  &--endDay .cobalt-CalendarRangePicker__day-inner:after {
307
+ @include bg-color(error);
308
+
290
309
  box-shadow: rgba($calendar-selected-day-invalid-color, 0.4) 0 2px 6px 0;
291
- background: $calendar-selected-day-invalid-color;
292
310
  }
293
311
 
294
312
  // invalid start/end day background (circle) when the other one is currently edited
@@ -304,7 +322,9 @@
304
322
  border-right: crossMonthBorder($calendar-range-day-invalid-color);
305
323
  }
306
324
 
307
- &--selected:not(&--startDay).cobalt-CalendarRangePicker__day--invalid.cobalt-CalendarRangePicker__day--firstOfMonth
325
+ &--selected:not(
326
+ &--startDay
327
+ ).cobalt-CalendarRangePicker__day--invalid.cobalt-CalendarRangePicker__day--firstOfMonth
308
328
  .cobalt-CalendarRangePicker__day-inner:before {
309
329
  border-right: crossMonthBorder($calendar-out-of-range-color);
310
330
  }
@@ -314,7 +334,9 @@
314
334
  border-left: crossMonthBorder($calendar-range-day-invalid-color);
315
335
  }
316
336
 
317
- &--selected:not(&--endDay).cobalt-CalendarRangePicker__day--invalid.cobalt-CalendarRangePicker__day--lastOfMonth
337
+ &--selected:not(
338
+ &--endDay
339
+ ).cobalt-CalendarRangePicker__day--invalid.cobalt-CalendarRangePicker__day--lastOfMonth
318
340
  .cobalt-CalendarRangePicker__day-inner:before {
319
341
  border-left: crossMonthBorder($calendar-out-of-range-color);
320
342
  }
@@ -1,20 +1,18 @@
1
1
  @use "sass:math";
2
2
 
3
- $daySize: spacing();
3
+ $daySize: spacing(md);
4
4
 
5
5
  .cobalt-CalendarView {
6
6
  display: flex;
7
7
 
8
8
  &__month {
9
9
  &:not(:last-child) {
10
- margin-right: spacing(tight);
10
+ margin-right: spacing(sm);
11
11
  }
12
12
  }
13
13
 
14
14
  &__monthName {
15
- text-transform: uppercase;
16
- color: color(graphite, light);
17
- font-weight: bold;
15
+ @include c-text-section-heading;
18
16
  }
19
17
 
20
18
  &__week {
@@ -26,6 +24,8 @@ $daySize: spacing();
26
24
  }
27
25
 
28
26
  &__day {
27
+ @include text-color(base);
28
+
29
29
  display: flex;
30
30
  align-items: center;
31
31
  justify-content: center;
@@ -33,27 +33,28 @@ $daySize: spacing();
33
33
  height: $daySize;
34
34
  flex-shrink: 0;
35
35
 
36
- color: color(graphite);
37
-
38
36
  font-size: 12px;
39
37
 
40
38
  border-radius: math.div($daySize, 2);
41
39
 
42
40
  &--disabled {
43
- background-color: color(grey);
41
+ @include bg-color(disabled);
44
42
  }
45
43
 
46
44
  &--highlighted {
47
- color: color(white);
45
+ @include text-color(inversed);
48
46
 
47
+ // TOFIX find a semantic color equivalent
49
48
  background-color: color(turquoise);
50
49
  }
51
50
 
52
51
  &--semi-highlighted {
52
+ // TOFIX find a semantic color equivalent
53
53
  background-color: lighten(color(turquoise), 30);
54
54
  }
55
55
 
56
56
  &--past {
57
+ // TOFIX find a semantic color equivalent
57
58
  color: color(grey);
58
59
  }
59
60
 
@@ -1,64 +1,72 @@
1
1
  .cobalt- {
2
2
  &Callout {
3
- @include text-style-body;
3
+ @include c-text-body-md;
4
+ @include text-color(base);
5
+ @include bg-color(secondary);
4
6
 
5
7
  position: relative;
6
8
 
7
- padding: spacing(tight);
8
- margin-bottom: spacing();
9
+ padding: spacing(sm);
10
+ margin-bottom: spacing(md);
9
11
 
10
- background-color: color(white);
11
12
  border-radius: 3px;
12
13
 
13
- box-shadow: elevation(light);
14
+ box-shadow: elevation(base);
15
+
16
+ &:before {
17
+ position: absolute;
18
+ left: 0;
19
+ top: 0;
20
+ bottom: 0;
21
+
22
+ display: block;
23
+ width: 3px;
24
+
25
+ border-top-left-radius: inherit;
26
+ border-bottom-left-radius: inherit;
27
+
28
+ content: "";
29
+ }
14
30
  }
15
31
 
16
32
  &Callout--info {
17
- @include card-strip(turquoise);
33
+ &:before {
34
+ @include fill-bg-color(secondary);
35
+ }
18
36
  }
19
37
 
20
38
  &Callout--success {
21
- @include card-strip(green);
39
+ &:before {
40
+ @include fill-bg-color(success);
41
+ }
22
42
  }
23
43
 
24
44
  &Callout--error {
25
- @include card-strip(red);
45
+ &:before {
46
+ @include fill-bg-color(error);
47
+ }
26
48
  }
27
49
 
28
50
  &Callout__Title {
29
- @include text-style-title-tiny;
51
+ @include c-text-title-sm;
30
52
 
31
- margin-bottom: spacing(extra-tight);
53
+ margin-bottom: spacing(xs);
32
54
  }
33
55
 
34
56
  &Callout__Close {
35
57
  position: absolute;
36
58
 
37
- top: -8px;
38
- right: -8px;
39
-
40
- width: 28px;
41
- height: 28px;
42
- padding: 0;
59
+ top: -14px;
60
+ right: -20px;
43
61
 
44
62
  border: 0;
45
63
 
46
- font-size: 20px;
47
- line-height: 28px;
48
- text-align: center;
49
-
50
- color: color(graphite, light);
51
-
52
- background-color: color(white);
53
- border-radius: 50%;
54
- box-shadow: elevation(light);
64
+ background-color: transparent;
55
65
 
56
66
  cursor: pointer;
57
67
 
58
- transition: color 0.2s;
59
-
60
- &:hover {
61
- color: color(graphite);
68
+ .cobalt-Icon {
69
+ transition: fill 0.2s;
62
70
  }
63
71
  }
64
72
  }
@@ -4,41 +4,41 @@
4
4
  $legacy-card-padding-tight: 12px;
5
5
 
6
6
  &Card {
7
+ @include bg-color(secondary);
7
8
  width: 100%;
8
9
 
9
- background-color: color(white);
10
10
  border-radius: $card-border-radius;
11
11
 
12
- box-shadow: elevation(light);
12
+ box-shadow: elevation(base);
13
13
 
14
14
  &--flattened {
15
- border: border($color: grey);
15
+ @include border(base);
16
16
 
17
17
  box-shadow: none;
18
18
  }
19
19
  }
20
20
 
21
21
  &Card__Section {
22
+ @include bg-color(secondary);
22
23
  position: relative;
23
24
 
24
25
  display: block;
25
26
  padding: $card-padding;
26
-
27
- background-color: color(white);
28
27
  }
29
28
 
30
29
  &Card__Section--subdued {
31
- background-color: color(grey, lighter);
30
+ @include bg-color(neutralAlt);
32
31
  }
33
32
 
34
33
  &Card__Section + &Card__Section--divided {
34
+ @include border-top(subdued);
35
35
  padding-top: $card-padding - 1px;
36
-
37
- border-top: 1px solid rgba(#000, 0.12);
38
36
  }
39
37
 
40
38
  &Card__Section + &Card__Section--dividedSoft {
41
39
  &:before {
40
+ @include bg-color(neutral);
41
+
42
42
  position: absolute;
43
43
  top: 0;
44
44
  right: 0;
@@ -48,7 +48,6 @@
48
48
  width: calc(100% - #{$card-padding});
49
49
 
50
50
  content: "";
51
- background-color: rgba(#000, 0.12);
52
51
  }
53
52
  }
54
53
 
@@ -85,7 +84,7 @@ a.cobalt-Card__Section[href] {
85
84
  &:hover {
86
85
  z-index: zx("above");
87
86
 
88
- box-shadow: elevation(light);
87
+ box-shadow: elevation(base);
89
88
 
90
89
  transform: scale(1.01);
91
90
  }
@@ -3,15 +3,17 @@
3
3
  position: relative;
4
4
 
5
5
  &--divided {
6
- border-top: border(grey);
6
+ @include border-top(base);
7
7
 
8
- &:first-child {
8
+ &:first-of-type {
9
9
  border-top: 0;
10
10
  }
11
11
  }
12
12
 
13
13
  &--softDivided {
14
14
  &::before {
15
+ @include semantic-color(base, stroke, background-color);
16
+
15
17
  position: absolute;
16
18
  top: 0;
17
19
  right: 0;
@@ -21,10 +23,9 @@
21
23
  width: calc(100% - #{spacing(sm)});
22
24
 
23
25
  content: "";
24
- background-color: color(grey);
25
26
  }
26
27
 
27
- &:first-child::before {
28
+ &:first-of-type::before {
28
29
  display: none;
29
30
  }
30
31
  }
@@ -5,6 +5,9 @@ $chip-large-height: 50px;
5
5
 
6
6
  .cobalt- {
7
7
  &Chip {
8
+ @include border(base);
9
+ @include bg-color(secondary);
10
+
8
11
  position: relative;
9
12
 
10
13
  display: inline-flex;
@@ -15,20 +18,15 @@ $chip-large-height: 50px;
15
18
  max-width: 100%;
16
19
  padding: 0;
17
20
 
18
- border: 1px solid color(grey);
19
-
20
- background-color: color(white);
21
21
  border-radius: math.div($chip-default-height, 2);
22
22
  }
23
23
 
24
24
  &Chip--interactive {
25
+ @include border-color(baseInteractive);
26
+
25
27
  &:not([disabled]) {
26
28
  cursor: pointer;
27
29
  }
28
-
29
- &:hover {
30
- border-color: color(grey, dark);
31
- }
32
30
  }
33
31
 
34
32
  &Chip--large {
@@ -43,22 +41,21 @@ $chip-large-height: 50px;
43
41
  }
44
42
 
45
43
  &Chip--large &Chip__Text {
46
- padding: 0 spacing(tight) 0 spacing(extra-tight);
44
+ padding: 0 spacing(sm) 0 spacing(xs);
47
45
  }
48
46
 
49
47
  &Chip--disabled {
50
- background-color: color(grey);
48
+ @include bg-color(disabled);
51
49
  opacity: 0.5;
52
50
  }
53
51
 
54
52
  &Chip--active {
55
- border-color: color(indigo);
56
-
57
- background-color: color(indigo);
53
+ @include bg-color(accentAlt);
54
+ @include border-color(accentAlt);
58
55
  }
59
56
 
60
57
  &Chip--active &Chip__Text {
61
- color: color(white);
58
+ @include text-color(accentAlt);
62
59
  }
63
60
 
64
61
  &Chip__Content {
@@ -81,9 +78,9 @@ $chip-large-height: 50px;
81
78
  }
82
79
 
83
80
  &Chip__Text {
84
- @include text-style-section-header;
81
+ @include c-text-section-heading;
85
82
 
86
- padding: 0 spacing(extra-tight);
83
+ padding: 0 spacing(xs);
87
84
 
88
85
  text-overflow: ellipsis;
89
86
 
@@ -16,19 +16,19 @@
16
16
  max-width: 100%;
17
17
  height: auto;
18
18
 
19
- margin-bottom: spacing();
19
+ margin-bottom: spacing(md);
20
20
  }
21
21
 
22
22
  &EmptyState__Title {
23
- @include text-style-title-small;
23
+ @include c-text-title-sm;
24
24
 
25
25
  margin-bottom: spacing(xs);
26
26
  }
27
27
 
28
28
  &EmptyState__Body {
29
- @include text-style-body;
30
- @include text-style--bodySubdued;
29
+ @include c-text-body-md;
30
+ @include text-color(subdued);
31
31
 
32
- margin-bottom: spacing();
32
+ margin-bottom: spacing(md);
33
33
  }
34
34
  }
@@ -1,19 +1,33 @@
1
1
  .cobalt- {
2
2
  &Flash {
3
- @include text-style-body;
4
- @include text-style--bodyInversed;
3
+ @include c-text-body-md;
5
4
 
6
5
  max-width: 800px;
7
6
 
8
7
  display: inline-block;
9
8
 
10
- padding: spacing(tight) spacing(base) spacing(tight) spacing(tight);
9
+ padding: spacing(sm) spacing(md) spacing(sm) spacing(sm);
11
10
 
12
- background-color: color(graphite);
11
+ border-radius: border-radius(md);
13
12
 
14
- border-radius: border-radius(large);
13
+ box-shadow: elevation(lg);
15
14
 
16
- box-shadow: elevation(strong);
15
+ &--info {
16
+ // TOFIX: there is no matching semantic color for this case
17
+ color: color(white);
18
+
19
+ background-color: color(graphite);
20
+ }
21
+
22
+ &--success {
23
+ @include bg-color(successAlt);
24
+ @include text-color(successAlt);
25
+ }
26
+
27
+ &--error {
28
+ @include bg-color(errorAlt);
29
+ @include text-color(errorAlt);
30
+ }
17
31
  }
18
32
 
19
33
  &Flash__wrapper {
@@ -23,7 +37,7 @@
23
37
  }
24
38
 
25
39
  &Flash__Icon {
26
- margin-right: spacing(extra-tight);
40
+ margin-right: spacing(xs);
27
41
  min-width: 20px;
28
42
  }
29
43
  }
@@ -113,7 +113,7 @@
113
113
 
114
114
  top: -2px;
115
115
 
116
- margin: 0 spacing(extra-tight) 0 -5px;
116
+ margin: 0 spacing(xs) 0 -5px;
117
117
  }
118
118
 
119
119
  &__item-value {
@@ -127,11 +127,11 @@
127
127
 
128
128
  width: 100%;
129
129
 
130
- padding: spacing(extra-tight) spacing(unit) spacing(extra-tight) 11px;
130
+ padding: spacing(xs) spacing("2xs") spacing(xs) 11px;
131
131
  }
132
132
 
133
133
  &__item:first-child &__item-wrapper {
134
- padding-top: spacing(extra-tight) + 1;
134
+ padding-top: spacing(xs) + 1;
135
135
  }
136
136
 
137
137
  &__item-wrapper--disabled {
@@ -37,7 +37,7 @@
37
37
  align-items: center;
38
38
  height: $height;
39
39
  box-sizing: border-box;
40
- padding: 0 spacing(base);
40
+ padding: 0 spacing(md);
41
41
  border: $border-width solid color(grey);
42
42
 
43
43
  line-height: $height - $border-width * 2;
@@ -97,7 +97,7 @@
97
97
 
98
98
  &--with-icon {
99
99
  .cobalt-Icon {
100
- margin-right: spacing(extra-tight);
100
+ margin-right: spacing(xs);
101
101
 
102
102
  fill: $main-color-light;
103
103
 
@@ -141,7 +141,7 @@
141
141
  align-items: center;
142
142
 
143
143
  .cobalt-CheckablePillField {
144
- margin-right: spacing(tight);
144
+ margin-right: spacing(sm);
145
145
 
146
146
  &--with-icon {
147
147
  white-space: nowrap;
@@ -13,7 +13,7 @@
13
13
 
14
14
  position: relative;
15
15
 
16
- margin-bottom: spacing(extra-tight);
16
+ margin-bottom: spacing(xs);
17
17
  display: block;
18
18
 
19
19
  font-weight: 400;
@@ -37,7 +37,7 @@
37
37
 
38
38
  flex: 0 0 auto;
39
39
 
40
- margin-right: spacing(extra-tight);
40
+ margin-right: spacing(xs);
41
41
  border: 2px solid $checkmark-color;
42
42
 
43
43
  box-shadow: 0 2px 4px 0 rgba(0, 0, 0, 0.08);
@@ -196,7 +196,7 @@
196
196
  @include form-field-container;
197
197
 
198
198
  .cobalt-Hint {
199
- margin: spacing(extra-tight) 0 0 spacing();
199
+ margin: spacing(xs) 0 0 spacing(md);
200
200
  }
201
201
  }
202
202
  }
@@ -8,13 +8,13 @@
8
8
  align-items: stretch;
9
9
 
10
10
  & > * + * {
11
- margin-left: spacing(tight);
11
+ margin-left: spacing(sm);
12
12
  }
13
13
  }
14
14
  }
15
15
 
16
16
  @include breakpoint($until: sm) {
17
17
  .cobalt-ComposedFormField > * + * {
18
- margin-left: spacing(extra-tight);
18
+ margin-left: spacing(xs);
19
19
  }
20
20
  }
@@ -2,22 +2,22 @@
2
2
  &Fieldset {
3
3
  $border-width: 1px;
4
4
 
5
- padding: (spacing(tight) -$border-width) 0 0 0;
5
+ padding: (spacing(sm) -$border-width) 0 0 0;
6
6
  border-top: $border-width solid color(grey, light);
7
7
 
8
8
  & > legend {
9
- @include text-style-title-small;
9
+ @include c-text-title-sm;
10
10
 
11
- margin-bottom: spacing(extra-tight);
12
- padding: 0 spacing(tight) 0 0;
11
+ margin-bottom: spacing(xs);
12
+ padding: 0 spacing(sm) 0 0;
13
13
  }
14
14
 
15
15
  &:not(:first-child) {
16
- margin-top: spacing(medium);
16
+ margin-top: spacing(lg);
17
17
  }
18
18
 
19
19
  & + & {
20
- margin-top: spacing(loose);
20
+ margin-top: spacing(xl);
21
21
  }
22
22
  }
23
23
  }