@1024pix/pix-ui 23.1.2 → 23.2.1

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.
package/CHANGELOG.md CHANGED
@@ -1,5 +1,17 @@
1
1
  # Pix-UI Changelog
2
2
 
3
+ ## v23.2.1 (21/12/2022)
4
+
5
+
6
+ ### :bug: Correction
7
+ - [#312](https://github.com/1024pix/pix-ui/pull/312) [BUGFIX] Supprime la zone blanche non clickable dans les options du `PixSelect` (PIX-6591)
8
+
9
+ ## v23.2.0 (16/12/2022)
10
+
11
+
12
+ ### :rocket: Amélioration
13
+ - [#271](https://github.com/1024pix/pix-ui/pull/271) [FEATURE] Revue du design des boutons (PIX-6218)
14
+
3
15
  ## v23.1.2 (16/12/2022)
4
16
 
5
17
 
@@ -88,6 +88,7 @@ $pix-error-50: #ef4444;
88
88
  $pix-error-60: #dc2626;
89
89
  $pix-error-70: #b91c1c;
90
90
  $pix-error-80: #991b1b;
91
+ $pix-error-90: #861212;
91
92
 
92
93
  // Neutral
93
94
  $pix-neutral-0: #ffffff;
@@ -38,6 +38,10 @@
38
38
  background-color: $pix-primary-10;
39
39
  color: $pix-primary-70;
40
40
  }
41
+
42
+ &:focus:enabled {
43
+ outline-color: $pix-primary-70;
44
+ }
41
45
  }
42
46
  }
43
47
 
@@ -53,6 +57,10 @@
53
57
  background-color: $pix-warning-10;
54
58
  color: $pix-warning-70;
55
59
  }
60
+
61
+ &:focus:enabled {
62
+ outline-color: $pix-warning-70;
63
+ }
56
64
  }
57
65
  }
58
66
 
@@ -68,6 +76,10 @@
68
76
  background-color: $pix-error-10;
69
77
  color: $pix-error-70;
70
78
  }
79
+
80
+ &:focus:enabled {
81
+ outline-color: $pix-error-70;
82
+ }
71
83
  }
72
84
  }
73
85
 
@@ -9,7 +9,8 @@
9
9
  letter-spacing: 0.028rem;
10
10
  cursor: pointer;
11
11
  background-color: $pix-primary;
12
- border: 2px solid transparent;
12
+ border: 1px solid transparent;
13
+ outline: none;
13
14
  display: flex;
14
15
  justify-content: center;
15
16
  align-items: center;
@@ -40,105 +41,185 @@
40
41
  cursor: not-allowed;
41
42
  }
42
43
 
43
- @mixin colorizeBackground($backgroundColor, $outlineColor) {
44
- background-color: $backgroundColor;
45
- border-color: $backgroundColor;
44
+ &--background-blue {
45
+ background-color: $pix-primary;
46
46
 
47
47
  &:not(.pix-button--disabled) {
48
- &:hover,
48
+ &:hover {
49
+ background-color: $pix-primary-60;
50
+ }
51
+
49
52
  &:focus,
50
53
  &:focus-visible {
51
- background-color: darken($backgroundColor, 8%);
52
- box-shadow: 0 0 0 2px darken($outlineColor, 8%);
53
- border-color: $pix-neutral-0;
54
- outline: none;
54
+ background-color: $pix-primary-60;
55
+ outline: 1px solid $pix-neutral-0;
56
+ outline-offset: -4px;
55
57
  }
56
58
 
57
59
  &:active {
58
- background-color: darken($backgroundColor, 12%);
60
+ background-color: $pix-primary-70;
61
+ outline: none;
59
62
  }
60
63
  }
61
64
  }
62
65
 
63
- &--background-blue {
64
- @include colorizeBackground($pix-primary, $pix-primary);
65
- }
66
-
67
66
  &--background-green {
68
- @include colorizeBackground($green, $green);
67
+ background-color: $pix-success-60;
68
+
69
+ &:not(.pix-button--disabled) {
70
+ &:hover {
71
+ background-color: $pix-success-70;
72
+ }
73
+
74
+ &:focus,
75
+ &:focus-visible {
76
+ background-color: $pix-success-70;
77
+ outline: 1px solid $pix-neutral-0;
78
+ outline-offset: -4px;
79
+ }
80
+
81
+ &:active {
82
+ background-color: $pix-success-80;
83
+ outline: none;
84
+ }
85
+ }
69
86
  }
70
87
 
71
88
  &--background-yellow {
72
89
  color: $pix-neutral-100;
73
- @include colorizeBackground($pix-warning-40, $pix-warning-40);
90
+ background-color: $pix-warning-40;
91
+
92
+ &:not(.pix-button--disabled) {
93
+ &:hover {
94
+ background-color: $pix-warning-50;
95
+ }
96
+
97
+ &:focus,
98
+ &:focus-visible {
99
+ background-color: $pix-warning-50;
100
+ outline: 1px solid $pix-neutral-0;
101
+ outline-offset: -4px;
102
+ }
103
+
104
+ &:active {
105
+ background-color: $pix-warning-60;
106
+ outline: none;
107
+ }
108
+ }
74
109
  }
75
110
 
76
111
  &--background-red {
77
112
  color: $pix-neutral-0;
78
- @include colorizeBackground($pix-error-70, $pix-error-70);
113
+ background-color: $pix-error-70;
114
+
115
+ &:not(.pix-button--disabled) {
116
+ &:hover {
117
+ background-color: $pix-error-80;
118
+ }
119
+
120
+ &:focus,
121
+ &:focus-visible {
122
+ background-color: $pix-error-70;
123
+ outline: 1px solid $pix-neutral-0;
124
+ outline-offset: -4px;
125
+ }
126
+
127
+ &:active {
128
+ background-color: $pix-error-90;
129
+ outline: none;
130
+ }
131
+ }
79
132
  }
80
133
 
81
134
  &--background-grey {
82
- @include colorizeBackground($pix-neutral-60, $pix-neutral-60);
135
+ color: $pix-neutral-90;
136
+ background-color: $pix-neutral-20;
137
+
138
+ &:not(.pix-button--disabled) {
139
+ &:hover {
140
+ background-color: $pix-neutral-22;
141
+ }
142
+
143
+ &:focus,
144
+ &:focus-visible {
145
+ background-color: $pix-neutral-90;
146
+ color: $pix-neutral-0;
147
+ outline: 1px solid $pix-neutral-0;
148
+ outline-offset: -4px;
149
+ }
150
+
151
+ &:active {
152
+ background-color: $pix-neutral-25;
153
+ color: $pix-neutral-90;
154
+ outline: none;
155
+ }
156
+ }
83
157
  }
84
158
 
85
159
  /* deprecated in favor of --background-transparent-light + --border */
86
160
  &--background-transparent {
87
161
  background-color: transparent;
88
162
  color: $pix-neutral-50;
89
- border: 2px solid $pix-neutral-50;
163
+ border: 1px solid $pix-neutral-50;
90
164
  }
91
165
 
92
166
  &--background-transparent-light {
93
- background-color: transparent;
94
- border-color: transparent;
95
167
  color: $pix-neutral-90;
168
+ background-color: transparent;
169
+
170
+ &.pix-button--border {
171
+ border: 1px solid $pix-neutral-50;
172
+ }
96
173
 
97
174
  &:not(.pix-button--disabled) {
98
- &:hover,
175
+ &:hover {
176
+ background-color: $pix-neutral-60;
177
+ color: $pix-neutral-0;
178
+ border: 1px solid transparent;
179
+ }
180
+
99
181
  &:focus,
100
182
  &:focus-visible {
101
- background-color: rgba($pix-neutral-110, 0.1);
102
- outline: none;
183
+ background-color: $pix-neutral-90;
184
+ color: $pix-neutral-0;
185
+ outline: 1px solid $pix-neutral-0;
186
+ outline-offset: -4px;
103
187
  }
104
188
 
105
189
  &:active {
106
- background-color: rgba($pix-neutral-110, 0.2);
107
- }
108
- }
109
-
110
- &.pix-button--border {
111
- border-color: $pix-neutral-50;
112
-
113
- &:not(.pix-button--disabled) {
114
- &:hover,
115
- &:active {
116
- border-color: $pix-neutral-80;
117
- }
190
+ background-color: $pix-neutral-70;
191
+ outline: none;
118
192
  }
119
193
  }
120
194
  }
121
195
 
122
196
  &--background-transparent-dark {
123
- background-color: transparent;
124
- border-color: transparent;
125
197
  color: $pix-neutral-0;
198
+ background-color: transparent;
199
+
200
+ &.pix-button--border {
201
+ border: 1px solid $pix-neutral-0;
202
+ }
126
203
 
127
204
  &:not(.pix-button--disabled) {
128
- &:hover,
205
+ &:hover {
206
+ background-color: $pix-neutral-10;
207
+ color: $pix-neutral-90;
208
+ border: 1px solid transparent;
209
+ }
210
+
129
211
  &:focus,
130
212
  &:focus-visible {
131
- background-color: rgba($pix-neutral-110, 0.1);
132
- outline: none;
213
+ background-color: $pix-neutral-10;
214
+ color: $pix-neutral-90;
215
+ outline: 1px solid $pix-neutral-90;
216
+ outline-offset: -4px;
133
217
  }
134
218
 
135
219
  &:active {
136
- background-color: rgba($pix-neutral-110, 0.2);
220
+ background-color: $pix-neutral-20;
221
+ outline: none;
137
222
  }
138
223
  }
139
-
140
- &.pix-button--border {
141
- border-color: $pix-neutral-0;
142
- }
143
224
  }
144
225
  }
@@ -19,22 +19,20 @@
19
19
 
20
20
  &:hover:enabled {
21
21
  background-color: $pix-neutral-20;
22
- box-shadow: none;
23
- border: 0;
22
+ outline: 0;
24
23
  color: $pix-neutral-60;
25
24
  }
26
25
 
27
26
  &:focus:enabled {
28
27
  background-color: $pix-neutral-60;
29
- box-shadow: 0 0 0 2px $pix-neutral-60;
30
- border: 2px solid $pix-neutral-0;
28
+ outline: 1px solid $pix-neutral-0;
29
+ outline-offset: -3px;
31
30
  color: $pix-neutral-0;
32
31
  }
33
32
 
34
33
  &:active:enabled {
35
34
  background-color: $pix-neutral-22;
36
- box-shadow: none;
37
- border: 0;
35
+ outline: 0;
38
36
  color: $pix-neutral-60;
39
37
  }
40
38
 
@@ -165,6 +165,7 @@
165
165
  &--hidden {
166
166
  visibility: hidden;
167
167
  height: 0;
168
+ padding: 0;
168
169
  }
169
170
  }
170
171
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@1024pix/pix-ui",
3
- "version": "23.1.2",
3
+ "version": "23.2.1",
4
4
  "description": "Pix-UI is the implementation of Pix design principles and guidelines for its products.",
5
5
  "keywords": [
6
6
  "ember-addon"