@1024pix/pix-ui 41.1.1 → 41.2.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 (46) hide show
  1. package/addon/components/pix-button-base.js +2 -2
  2. package/addon/components/pix-progress-gauge.js +10 -2
  3. package/addon/components/pix-return-to.hbs +0 -2
  4. package/addon/styles/_pix-background-header.scss +3 -3
  5. package/addon/styles/_pix-banner.scss +29 -32
  6. package/addon/styles/_pix-block.scss +3 -3
  7. package/addon/styles/_pix-button-base.scss +86 -65
  8. package/addon/styles/_pix-button.scss +5 -5
  9. package/addon/styles/_pix-checkbox.scss +108 -105
  10. package/addon/styles/_pix-collapsible.scss +22 -13
  11. package/addon/styles/_pix-filter-banner.scss +15 -14
  12. package/addon/styles/_pix-filterable-and-searchable-select.scss +4 -4
  13. package/addon/styles/_pix-icon-button.scss +8 -9
  14. package/addon/styles/_pix-indicator-card.scss +28 -20
  15. package/addon/styles/_pix-input-code.scss +17 -23
  16. package/addon/styles/_pix-input-password.scss +13 -14
  17. package/addon/styles/_pix-input.scss +10 -7
  18. package/addon/styles/_pix-message.scss +16 -16
  19. package/addon/styles/_pix-modal.scss +21 -22
  20. package/addon/styles/_pix-multi-select.scss +26 -23
  21. package/addon/styles/_pix-pagination.scss +6 -6
  22. package/addon/styles/_pix-progress-gauge.scss +21 -21
  23. package/addon/styles/_pix-radio-button.scss +21 -16
  24. package/addon/styles/_pix-return-to.scss +22 -33
  25. package/addon/styles/_pix-search-input.scss +11 -11
  26. package/addon/styles/_pix-select.scss +40 -37
  27. package/addon/styles/_pix-selectable-tag.scss +24 -29
  28. package/addon/styles/_pix-sidebar.scss +16 -16
  29. package/addon/styles/_pix-stars.scss +14 -17
  30. package/addon/styles/_pix-tag.scss +48 -39
  31. package/addon/styles/_pix-textarea.scss +6 -5
  32. package/addon/styles/_pix-toggle.scss +11 -11
  33. package/addon/styles/_pix-tooltip.scss +29 -28
  34. package/addon/styles/pix-design-tokens/_colors.scss +71 -10
  35. package/addon/styles/pix-design-tokens/_form.scss +32 -26
  36. package/addon/styles/pix-design-tokens/_spacing.scss +12 -0
  37. package/app/stories/pix-button.stories.js +13 -5
  38. package/app/stories/pix-indicator-card.stories.js +1 -1
  39. package/app/stories/pix-progress-gauge.mdx +5 -1
  40. package/app/stories/pix-progress-gauge.stories.js +38 -4
  41. package/app/stories/pix-return-to.stories.js +3 -3
  42. package/app/stories/pix-stars.stories.js +1 -1
  43. package/app/stories/pix-tag.stories.js +2 -15
  44. package/package.json +9 -7
  45. package/scripts/migrate-colors-scss-vars-to-css-vars.sh +120 -0
  46. package/scripts/migrate-spacing-scss-vars-to-css-vars.sh +23 -0
@@ -1,16 +1,15 @@
1
1
  .pix-return-to {
2
+ @extend %pix-body-l;
3
+
2
4
  display: inline-flex;
5
+ gap: var(--pix-spacing-1x);
3
6
  align-items: center;
4
- font-weight: $font-medium;
5
- font-size: 1rem;
6
- letter-spacing: 0.15px;
7
7
  text-decoration: none;
8
8
  border-bottom: transparent solid 2px;
9
9
 
10
10
  &__icon {
11
11
  position: relative;
12
- z-index: 3;
13
- padding: 4px 7px;
12
+ padding: var(--pix-spacing-1x) var(--pix-spacing-2x);
14
13
  font-size: 1rem;
15
14
  }
16
15
 
@@ -27,56 +26,46 @@
27
26
  content: '';
28
27
  }
29
28
 
30
- &__text {
31
- margin-left: 4px;
32
- }
33
-
29
+ &:focus,
34
30
  &:hover,
35
31
  &:active {
36
32
  background-color: transparent;
37
33
  border-bottom-color: transparent;
34
+ outline: 0;
38
35
  cursor: pointer;
39
36
 
40
37
  ::before {
41
- opacity: 0.2;
42
- }
43
- }
44
-
45
- &:focus-visible {
46
- background-color: $pix-warning-40;
47
- border-bottom: $pix-neutral-100 solid 2px;
48
-
49
- .pix-return-to__text {
50
- padding-right: 6px;
38
+ opacity: 1;
51
39
  }
52
40
  }
53
41
 
54
- @mixin coloriseLink($textColor, $textHoverColor, $arrowColor) {
55
- color: $textColor;
56
-
57
- .pix-return-to__icon {
58
- color: $arrowColor;
59
- }
42
+ @mixin coloriseLink($defaultColor, $arrowHoverColor, $arrowBgColor) {
43
+ color: $defaultColor;
60
44
 
45
+ &:focus,
61
46
  &:hover,
62
47
  &:active {
63
- color: $textHoverColor;
48
+ .pix-return-to__icon {
49
+ color: $arrowHoverColor;
50
+ }
64
51
 
65
52
  ::before {
66
- background-color: $arrowColor;
53
+ background-color: $arrowBgColor;
54
+ outline: 1px solid var(--pix-neutral-0);
55
+ outline-offset: -3px;
67
56
  }
68
57
  }
69
58
  }
70
59
 
71
- &--white {
72
- @include coloriseLink($pix-neutral-10, $pix-neutral-0, $pix-neutral-0);
60
+ &--white, &--neutral-light {
61
+ @include coloriseLink(var(--pix-neutral-20), var(--pix-neutral-0), var(--pix-neutral-20));
73
62
  }
74
63
 
75
- &--black {
76
- @include coloriseLink($pix-neutral-80, $pix-neutral-110, $pix-neutral-60);
64
+ &--black, &--neutral-dark {
65
+ @include coloriseLink(var(--pix-neutral-900), var(--pix-neutral-0), var(--pix-neutral-900));
77
66
  }
78
67
 
79
- &--blue {
80
- @include coloriseLink($pix-communication-dark, $pix-primary-60, $pix-communication-dark);
68
+ &--blue, &--primary {
69
+ @include coloriseLink(var(--pix-primary-900), var(--pix-neutral-0), var(--pix-primary-900));
81
70
  }
82
71
  }
@@ -5,8 +5,8 @@
5
5
  }
6
6
 
7
7
  .pix-search-input__label {
8
- margin-bottom: 4px;
9
- color: $pix-neutral-70;
8
+ margin-bottom: var(--pix-spacing-1x);
9
+ color: var(--pix-neutral-900);
10
10
  font-size: 0.875rem;
11
11
  }
12
12
 
@@ -15,12 +15,12 @@
15
15
 
16
16
  svg {
17
17
  position: absolute;
18
- bottom: calc(50% - 9px);
19
- left: 6px;
20
- width: 18px;
21
- height: 18px;
22
- padding-left: 2px;
23
- color: $pix-neutral-60;
18
+ bottom: calc(50% - 8px);
19
+ left: 12px;
20
+ width: 12px;
21
+ height: 12px;
22
+ padding: 2px;
23
+ color: var(--pix-neutral-500);
24
24
  font-size: 0.6rem;
25
25
  }
26
26
  }
@@ -32,10 +32,10 @@
32
32
 
33
33
  width: 100%;
34
34
  height: 36px;
35
- padding-left: $pix-spacing-xl;
36
- border: 1px solid $pix-neutral-40;
35
+ padding-left: var(--pix-spacing-12x);
36
+ border: 1px solid var(--pix-neutral-500);
37
37
 
38
38
  &::placeholder {
39
- color: $pix-neutral-30;
39
+ color: var(--pix-neutral-500);
40
40
  }
41
41
  }
@@ -11,20 +11,21 @@
11
11
  }
12
12
 
13
13
  &__dropdown {
14
+ @extend %pix-shadow-sm;
15
+
14
16
  position: absolute;
15
17
  z-index: 200;
16
18
  width: 100%;
17
19
  min-width: fit-content;
18
20
  max-height: 12.5rem;
19
- margin-top: $pix-spacing-xxs;
21
+ margin-top: var(--pix-spacing-1x);
20
22
  padding: 0;
21
23
  overflow-y: auto;
22
24
  white-space: nowrap;
23
25
  list-style-type: none;
24
- background-color: $pix-neutral-0;
26
+ background-color: var(--pix-neutral-0);
25
27
  border-top: none;
26
- border-radius: 0 0 $pix-spacing-xxs $pix-spacing-xxs;
27
- box-shadow: 0 6px 12px rgba(7, 20, 46, 0.08);
28
+ border-radius: 0 0 var(--pix-spacing-1x) var(--pix-spacing-1x);
28
29
  transition: all 0.1s ease-in-out;
29
30
 
30
31
  &::-webkit-scrollbar {
@@ -32,19 +33,19 @@
32
33
  }
33
34
 
34
35
  &::-webkit-scrollbar-track {
35
- background: $pix-neutral-20;
36
- border: 1px solid $pix-neutral-20;
37
- border-radius: $pix-spacing-xxs;
36
+ background: var(--pix-neutral-20);
37
+ border: 1px solid var(--pix-neutral-20);
38
+ border-radius: var(--pix-spacing-1x);
38
39
  }
39
40
 
40
41
  &::-webkit-scrollbar-thumb {
41
42
  width: 0.375rem;
42
- background: $pix-neutral-30;
43
- border-radius: $pix-spacing-xxs;
43
+ background: var(--pix-neutral-100);
44
+ border-radius: var(--pix-spacing-1x);
44
45
  }
45
46
 
46
47
  &::-webkit-scrollbar-thumb:hover {
47
- background: $pix-neutral-35;
48
+ background: var(--pix-neutral-100);
48
49
  }
49
50
 
50
51
  &--closed {
@@ -56,25 +57,25 @@
56
57
  &__empty-search-message {
57
58
  @extend %pix-body-s;
58
59
 
59
- color: $pix-neutral-70;
60
+ color: var(--pix-neutral-800);
60
61
  text-align: center;
61
62
  }
62
63
 
63
64
  &__search {
64
65
  display: flex;
65
- margin: $pix-spacing-s $pix-spacing-m;
66
- color: $pix-neutral-30;
67
- border-bottom: 2px solid $pix-neutral-22;
68
- border-radius: $pix-spacing-xxs $pix-spacing-xxs 0 0;
66
+ margin: var(--pix-spacing-4x) var(--pix-spacing-6x);
67
+ color: var(--pix-neutral-100);
68
+ border-bottom: 2px solid var(--pix-neutral-100);
69
+ border-radius: var(--pix-spacing-1x) var(--pix-spacing-1x) 0 0;
69
70
 
70
71
  &:focus-within {
71
- background: $pix-neutral-10;
72
- border-bottom: 2px solid $pix-primary;
72
+ background: var(--pix-neutral-20);
73
+ border-bottom: 2px solid var(--pix-primary-500);
73
74
  }
74
75
  }
75
76
 
76
77
  &__options {
77
- border-top: 1px solid $pix-neutral-20;
78
+ border-top: 1px solid var(--pix-neutral-20);
78
79
  }
79
80
 
80
81
  &__error-message {
@@ -83,24 +84,26 @@
83
84
  }
84
85
 
85
86
  .pix-select-button {
87
+ @extend %pix-body-s;
88
+
86
89
  position: relative;
87
90
  display: flex;
88
- gap: $pix-spacing-s;
91
+ gap: var(--pix-spacing-4x);
89
92
  align-items: center;
90
93
  justify-content: space-between;
91
94
  width: 100%;
92
95
  height: 2.25rem;
93
- padding: 0 $pix-spacing-s 0 $pix-spacing-s;
94
- color: $pix-neutral-90;
95
- background-color: $pix-neutral-0;
96
- border: 1px $pix-neutral-45 solid;
97
- border-radius: $pix-spacing-xxs;
96
+ padding: 0 var(--pix-spacing-4x) 0 var(--pix-spacing-4x);
97
+ color: var(--pix-neutral-900);
98
+ background-color: var(--pix-neutral-0);
99
+ border: 1px var(--pix-neutral-500) solid;
100
+ border-radius: var(--pix-spacing-1x);
98
101
  outline: none;
99
102
  cursor: pointer;
100
103
 
101
- @extend %pix-body-s;
102
104
  @include hoverFormElement();
103
105
  @include focusWithinFormElement();
106
+ @include activeFormElement();
104
107
 
105
108
  &--disabled {
106
109
  @include formElementDisabled();
@@ -120,7 +123,7 @@
120
123
  &__dropdown-icon {
121
124
  @extend %pix-body-s;
122
125
 
123
- color: $pix-neutral-60;
126
+ color: var(--pix-neutral-900);
124
127
  pointer-events: none;
125
128
  }
126
129
  }
@@ -135,8 +138,8 @@
135
138
  &__name {
136
139
  @extend %pix-body-s;
137
140
 
138
- padding: $pix-spacing-s $pix-spacing-m $pix-spacing-xs $pix-spacing-m;
139
- color: $pix-neutral-45;
141
+ padding: var(--pix-spacing-4x) var(--pix-spacing-6x) var(--pix-spacing-2x) var(--pix-spacing-6x);
142
+ color: var(--pix-neutral-500);
140
143
  text-transform: uppercase;
141
144
  }
142
145
 
@@ -144,14 +147,14 @@
144
147
  @extend %pix-body-s;
145
148
 
146
149
  display: flex;
147
- gap: $pix-spacing-m;
150
+ gap: var(--pix-spacing-6x);
148
151
  justify-content: space-between;
149
- padding: $pix-spacing-xs $pix-spacing-m;
150
- color: $pix-neutral-70;
152
+ padding: var(--pix-spacing-2x) var(--pix-spacing-6x);
153
+ color: var(--pix-neutral-900);
151
154
 
152
155
  &:hover,
153
156
  &:focus {
154
- background-color: $pix-neutral-10;
157
+ background-color: var(--pix-primary-10);
155
158
  outline: none;
156
159
  cursor: pointer;
157
160
  }
@@ -164,7 +167,7 @@
164
167
 
165
168
  &--selected {
166
169
  align-items: center;
167
- background-color: $pix-primary-5;
170
+ background-color: var(--pix-primary-10);
168
171
 
169
172
  svg {
170
173
  visibility: visible;
@@ -186,17 +189,17 @@
186
189
  @extend %pix-body-s;
187
190
 
188
191
  width: 100%;
189
- margin: $pix-spacing-xxs;
190
- padding-left: $pix-spacing-xs;
192
+ margin: var(--pix-spacing-1x);
193
+ padding-left: var(--pix-spacing-2x);
191
194
  border: none;
192
195
 
193
196
  &:focus {
194
- background: $pix-neutral-10;
197
+ background: var(--pix-neutral-20);
195
198
  outline: none;
196
199
  }
197
200
  }
198
201
 
199
202
  &__icon {
200
- margin: auto $pix-spacing-xxs;
203
+ margin: auto var(--pix-spacing-1x);
201
204
  }
202
205
  }
@@ -22,13 +22,12 @@ $checkmark-width-with-space: $checkmark-width + 0.438rem;
22
22
 
23
23
  position: relative;
24
24
  display: inline-block;
25
- padding: 3px calc(8px + #{$checkmark-width-with-space} / 2);
26
- color: $pix-neutral-60;
27
- font-weight: $font-medium;
25
+ padding: var(--pix-spacing-1x) calc(var(--pix-spacing-2x) + #{$checkmark-width-with-space} / 2);
26
+ color: var(--pix-neutral-900);
28
27
  letter-spacing: 0.009rem;
29
28
  text-align: center;
30
- background-color: $pix-neutral-0;
31
- border: $pix-neutral-30 solid 1px;
29
+ background-color: var(--pix-neutral-0);
30
+ border: var(--pix-neutral-900) solid 1px;
32
31
  border-radius: 0.95rem;
33
32
  cursor: pointer;
34
33
 
@@ -46,26 +45,18 @@ $checkmark-width-with-space: $checkmark-width + 0.438rem;
46
45
  cursor: pointer;
47
46
  }
48
47
 
49
- &:hover {
50
- color: $pix-neutral-70;
51
- background-color: $pix-neutral-22;
52
- border: $pix-neutral-25 solid 1px;
53
- }
54
-
55
48
  &--checked {
56
- @include checkmarkColor($pix-neutral-70);
49
+ @include checkmarkColor(var(--pix-neutral-800));
57
50
 
58
- padding: 3px 8px;
59
- color: $pix-neutral-70;
60
- background-color: $pix-neutral-20;
61
- border: $pix-neutral-22 solid 1px;
51
+ padding: var(--pix-spacing-1x) var(--pix-spacing-2x);
52
+ background-color: var(--pix-neutral-20);
62
53
 
63
54
  &:hover {
64
- @include checkmarkColor($pix-neutral-70);
55
+ @include checkmarkColor(var(--pix-neutral-900));
65
56
 
66
- color: $pix-neutral-70;
67
- background-color: $pix-neutral-22;
68
- border: $pix-neutral-25 solid 1px;
57
+ color: var(--pix-neutral-900);
58
+ background-color: var(--pix-neutral-20);
59
+ border: var(--pix-neutral-500) solid 1px;
69
60
  }
70
61
 
71
62
  & label {
@@ -74,20 +65,24 @@ $checkmark-width-with-space: $checkmark-width + 0.438rem;
74
65
  }
75
66
 
76
67
  &:focus-within {
77
- @include checkmarkColor($pix-neutral-0);
68
+ @include checkmarkColor(var(--pix-neutral-0));
78
69
 
79
- color: $pix-neutral-0;
80
- background-color: $pix-neutral-60;
81
- border-color: $pix-neutral-0;
70
+ color: var(--pix-neutral-0);
71
+ background-color: var(--pix-neutral-900);
72
+ border-color: var(--pix-neutral-0);
82
73
  outline: none;
83
- box-shadow: 0 0 0 1px $pix-neutral-60;
74
+ box-shadow: 0 0 0 1px var(--pix-neutral-900);
84
75
 
85
76
  &:hover {
86
- @include checkmarkColor($pix-neutral-70);
77
+ @include checkmarkColor(var(--pix-neutral-900));
78
+
79
+ color: var(--pix-neutral-900);
80
+ background-color: var(--pix-neutral-20);
81
+ border: var(--pix-neutral-500) solid 1px;
82
+ }
87
83
 
88
- color: $pix-neutral-70;
89
- background-color: $pix-neutral-22;
90
- border: $pix-neutral-25 solid 1px;
84
+ &:active {
85
+ background-color: var(--pix-neutral-100);
91
86
  }
92
87
  }
93
88
  }
@@ -15,18 +15,18 @@
15
15
  }
16
16
  }
17
17
 
18
- $sidebar-padding: 16px;
19
- $mobile-close-button-size: 32px;
20
- $tablet-close-button-size: 40px;
21
- $space-between-title-and-close-button: 8px;
22
- $button-margin: 16px;
23
-
24
18
  .pix-sidebar {
19
+ --sidebar-padding: var(--pix-spacing-4x);
20
+ --mobile-close-button-size: var(--pix-spacing-8x);
21
+ --tablet-close-button-size: var(--pix-spacing-10x);
22
+ --space-between-title-and-close-button: var(--pix-spacing-2x);
23
+ --button-margin: var(--pix-spacing-4x);
24
+
25
25
  display: flex;
26
26
  flex-direction: column;
27
27
  max-width: 320px;
28
28
  height: 100%;
29
- background: $pix-neutral-0;
29
+ background: var(--pix-neutral-0);
30
30
  box-shadow: 1px 1px 5px rgba(0, 0, 0, 0.1);
31
31
  transform: translate(0);
32
32
  transition: transform 0.3s ease-in-out;
@@ -39,16 +39,16 @@ $button-margin: 16px;
39
39
  display: flex;
40
40
  align-items: center;
41
41
  justify-content: space-between;
42
- padding: $sidebar-padding;
43
- border-bottom: 1px solid $pix-neutral-20;
42
+ padding: var(--sidebar-padding);
43
+ border-bottom: 1px solid var(--pix-neutral-100);
44
44
  }
45
45
 
46
46
  &__close-button {
47
47
  flex-shrink: 0;
48
48
 
49
49
  @include device-is('tablet') {
50
- width: $tablet-close-button-size;
51
- height: $tablet-close-button-size;
50
+ width: var(--tablet-close-button-size);
51
+ height: var(--tablet-close-button-size);
52
52
  }
53
53
  }
54
54
 
@@ -61,16 +61,16 @@ $button-margin: 16px;
61
61
  @extend %pix-title-s;
62
62
 
63
63
  margin-bottom: 0;
64
- padding-right: $mobile-close-button-size + $space-between-title-and-close-button;
65
- color: $pix-neutral-90;
64
+ padding-right: var(--mobile-close-button-size) + var(--space-between-title-and-close-button);
65
+ color: var(--pix-neutral-900);
66
66
 
67
67
  @include device-is('tablet') {
68
- padding-right: $tablet-close-button-size + $space-between-title-and-close-button;
68
+ padding-right: var(--tablet-close-button-size) + var(--space-between-title-and-close-button);
69
69
  }
70
70
  }
71
71
 
72
72
  &__footer {
73
- padding: $sidebar-padding;
74
- border-top: 1px solid $pix-neutral-20;
73
+ padding: var(--sidebar-padding);
74
+ border-top: 1px solid var(--pix-neutral-100);
75
75
  }
76
76
  }
@@ -3,34 +3,31 @@
3
3
  height: 2.25rem;
4
4
 
5
5
  & * + * {
6
- margin-left: $pix-spacing-xxs;
6
+ margin-left: var(--pix-spacing-1x);
7
7
  }
8
8
  }
9
9
 
10
10
  .pix-stars__item {
11
11
  height: 100%;
12
- fill: $pix-neutral-5;
13
- stroke: $pix-neutral-40;
12
+ fill: var(--pix-neutral-20);
13
+ stroke: var(--pix-neutral-500);
14
14
 
15
15
  &[data-acquired] {
16
- fill: $pix-secondary-40;
17
- stroke: $pix-secondary-60;
16
+ fill: var(--pix-secondary-500);
17
+ stroke: var(--pix-secondary-700);
18
18
  }
19
19
  }
20
20
 
21
- // Color variant : Blue
21
+ // Color variant : primary
22
+ .pix-stars__item--color-primary[data-acquired],
22
23
  .pix-stars__item--color-blue[data-acquired] {
23
- fill: $pix-primary-40;
24
- stroke: $pix-primary-60;
24
+ fill: var(--pix-primary-500);
25
+ stroke: var(--pix-primary-700);
25
26
  }
26
27
 
27
- // Color variant : Grey
28
- .pix-stars__item--color-grey {
29
- fill: $pix-neutral-0;
30
- stroke: $pix-neutral-40;
31
-
32
- &[data-acquired] {
33
- fill: $pix-neutral-40;
34
- stroke: $pix-neutral-40;
35
- }
28
+ // Color variant : neutral "deprecated ????"
29
+ .pix-stars__item--color-neutral[data-acquired],
30
+ .pix-stars__item--color-grey[data-acquired] {
31
+ fill: var(--pix-neutral-500);
32
+ stroke: var(--pix-neutral-500);
36
33
  }
@@ -2,74 +2,83 @@
2
2
  @extend %pix-body-s;
3
3
 
4
4
  display: inline-block;
5
- padding: 4px 16px;
6
- color: $pix-neutral-0;
5
+ padding: var(--pix-spacing-1x) var(--pix-spacing-4x);
6
+ color: var(--pix-primary-900);
7
7
  font-weight: $font-medium;
8
8
  white-space: nowrap;
9
9
  text-align: center;
10
10
  vertical-align: baseline;
11
- background-color: $pix-primary;
11
+ background-color: var(--pix-primary-100);
12
12
  border: 1px solid transparent;
13
13
  border-radius: 0.95rem;
14
14
 
15
- &--blue-light {
16
- color: $pix-primary-80;
17
- background-color: $pix-primary-10;
15
+ &--compact {
16
+ @extend %pix-body-xs;
17
+
18
+ line-height: inherit;
19
+ text-transform: uppercase;
18
20
  }
19
21
 
20
- &--green {
21
- background-color: $pix-success-70;
22
+ &--grey-light, &--neutral {
23
+ color: var(--pix-neutral-900);
24
+ background-color: var(--pix-neutral-20);
22
25
  }
23
26
 
24
- &--green-light {
25
- color: $pix-success-80;
26
- background-color: $pix-success-10;
27
+ &--yellow-light, &--secondary {
28
+ color: var(--pix-secondary-900);
29
+ background-color: var(--pix-secondary-100);
27
30
  }
28
31
 
29
- &--purple {
30
- background-color: $pix-tertiary-60;
32
+ &--purple-light, &--tertiary {
33
+ color: var(--pix-tertiary-900);
34
+ background-color: var(--pix-tertiary-100);
31
35
  }
32
36
 
33
- &--purple-light {
34
- color: $pix-tertiary-80;
35
- background-color: $pix-tertiary-5;
37
+ &--green-light, &--success {
38
+ color: var(--pix-success-900);
39
+ background-color: var(--pix-success-100);
36
40
  }
37
41
 
38
- &--yellow {
39
- color: $pix-neutral-90;
40
- background-color: $pix-warning-40;
42
+ &--error {
43
+ color: var(--pix-error-900);
44
+ background-color: var(--pix-error-100);
41
45
  }
42
46
 
43
- &--yellow-light {
44
- color: $pix-warning-80;
45
- background-color: $pix-warning-10;
47
+ &--orga {
48
+ color: var(--pix-orga-50);
49
+ background-color: var(--pix-orga-500);
46
50
  }
47
51
 
48
- &--orange {
49
- background-color: $pix-warning-70;
52
+
53
+ &--green {
54
+ /** Deprecated color **/
55
+ background-color: var(--pix-success-700);
50
56
  }
51
57
 
52
- &--orange-light {
53
- color: $pix-warning-80;
54
- background-color: $pix-warning-10;
58
+ &--purple {
59
+ /** Deprecated color **/
60
+ background-color: var(--pix-tertiary-900);
55
61
  }
56
62
 
57
- &--grey {
58
- color: $pix-neutral-15;
59
- background-color: $pix-neutral-60;
63
+ &--yellow {
64
+ /** Deprecated color **/
65
+ color: var(--pix-neutral-900);
66
+ background-color: var(--pix-warning-500);
60
67
  }
61
68
 
62
- &--grey-light {
63
- color: $pix-neutral-90;
64
- background-color: $pix-neutral-20;
69
+ &--orange {
70
+ /** Deprecated color **/
71
+ background-color: var(--pix-warning-700);
65
72
  }
66
73
 
67
- &--compact {
68
- @extend %pix-body-xs;
74
+ &--orange-light {
75
+ /** Deprecated color **/
76
+ color: var(--pix-warning-900);
77
+ background-color: var(--pix-warning-100);
78
+ }
69
79
 
70
- padding: 4px 13px;
71
- font-weight: $font-medium;
72
- line-height: inherit;
73
- text-transform: uppercase;
80
+ &--grey {
81
+ color: var(--pix-neutral-20);
82
+ background-color: var(--pix-neutral-500);
74
83
  }
75
84
  }
@@ -1,16 +1,17 @@
1
1
  .pix-textarea {
2
2
  textarea {
3
3
  width: 100%;
4
- padding: 10px 16px;
5
- color: $pix-neutral-90;
4
+ padding: 10px var(--pix-spacing-4x);
5
+ color: var(--pix-neutral-900);
6
6
  font-size: 0.875rem;
7
- border: 1px solid $pix-neutral-40;
7
+ border: 1px solid var(--pix-neutral-500);
8
8
  border-style: solid;
9
- border-radius: 4px;
9
+ border-radius: var(--pix-spacing-1x);
10
10
  resize: vertical;
11
11
 
12
12
  @include hoverFormElement();
13
13
  @include focusFormElement();
14
+ @include activeFormElement();
14
15
 
15
16
  &.pix-textarea--error {
16
17
  @include formElementInError();
@@ -22,7 +23,7 @@
22
23
  flex-direction: row-reverse;
23
24
  margin-top: 6px;
24
25
  margin-bottom: 0;
25
- color: $pix-neutral-45;
26
+ color: var(--pix-neutral-500);
26
27
  font-size: 12px;
27
28
  }
28
29