@1024pix/pix-ui 27.0.1 → 27.0.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.
- package/CHANGELOG.md +7 -0
- package/addon/components/pix-checkbox.hbs +9 -13
- package/addon/components/pix-multi-select.hbs +1 -0
- package/addon/components/pix-stars.hbs +2 -2
- package/addon/styles/_pix-checkbox.scss +10 -9
- package/addon/styles/_pix-multi-select.scss +4 -1
- package/app/stories/pix-checkbox.stories.js +5 -0
- package/package.json +1 -1
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,12 @@
|
|
|
1
1
|
# Pix-UI Changelog
|
|
2
2
|
|
|
3
|
+
## v27.0.2 (06/03/2023)
|
|
4
|
+
|
|
5
|
+
|
|
6
|
+
### :bug: Correction
|
|
7
|
+
- [#353](https://github.com/1024pix/pix-ui/pull/353) [BUGFIX] Améliorer l'accessibilité de PixStar (PIX-7349)
|
|
8
|
+
- [#348](https://github.com/1024pix/pix-ui/pull/348) [BUGFIX] Rendre la ligne entière d'une option du multiselect cliquable (PIX-6957)
|
|
9
|
+
|
|
3
10
|
## v27.0.1 (22/02/2023)
|
|
4
11
|
|
|
5
12
|
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
<
|
|
1
|
+
<label class="pix-checkbox {{if @screenReaderOnly 'sr-only'}} {{@class}}" for={{@id}}>
|
|
2
2
|
<input
|
|
3
3
|
id={{@id}}
|
|
4
4
|
type="checkbox"
|
|
@@ -6,15 +6,11 @@
|
|
|
6
6
|
checked={{@checked}}
|
|
7
7
|
...attributes
|
|
8
8
|
/>
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
{{@id}}.
|
|
18
|
-
{{/if}}
|
|
19
|
-
</label>
|
|
20
|
-
</div>
|
|
9
|
+
|
|
10
|
+
{{#if (has-block)}}
|
|
11
|
+
<span class="pix-checkbox__label {{this.labelSizeClass}}">{{yield}}</span>
|
|
12
|
+
{{else}}
|
|
13
|
+
yield required to give a label for PixCheckBox
|
|
14
|
+
{{@id}}.
|
|
15
|
+
{{/if}}
|
|
16
|
+
</label>
|
|
@@ -66,6 +66,7 @@
|
|
|
66
66
|
@id={{concat this.multiSelectId "-" option.value}}
|
|
67
67
|
@checked={{option.checked}}
|
|
68
68
|
@labelSize="small"
|
|
69
|
+
@class="pix-multi-select-list__item-label"
|
|
69
70
|
value={{option.value}}
|
|
70
71
|
{{on "change" this.onSelect}}
|
|
71
72
|
{{on-enter-action this.hideDropDown this.multiSelectId}}
|
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
<div class={{this.pixStarsClass}} ...attributes
|
|
1
|
+
<div class={{this.pixStarsClass}} ...attributes>
|
|
2
|
+
<span class="screen-reader-only">{{@alt}}</span>
|
|
2
3
|
{{#each this.stars as |star|}}
|
|
3
4
|
<svg
|
|
4
5
|
class="pix-stars__{{star}}"
|
|
5
6
|
data-test-status={{star}}
|
|
6
7
|
viewBox="0 0 36 36"
|
|
7
|
-
role="img"
|
|
8
8
|
aria-hidden="true"
|
|
9
9
|
>
|
|
10
10
|
<defs>
|
|
@@ -1,13 +1,10 @@
|
|
|
1
1
|
.pix-checkbox {
|
|
2
2
|
align-items: center;
|
|
3
3
|
display: flex;
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
cursor: pointer;
|
|
7
|
-
}
|
|
4
|
+
color: $pix-neutral-70;
|
|
5
|
+
cursor: pointer;
|
|
8
6
|
|
|
9
7
|
&__label {
|
|
10
|
-
color: $pix-neutral-70;
|
|
11
8
|
@include text;
|
|
12
9
|
|
|
13
10
|
&--small {
|
|
@@ -23,6 +20,10 @@
|
|
|
23
20
|
}
|
|
24
21
|
}
|
|
25
22
|
|
|
23
|
+
input {
|
|
24
|
+
cursor: pointer;
|
|
25
|
+
}
|
|
26
|
+
|
|
26
27
|
&__input {
|
|
27
28
|
appearance: none;
|
|
28
29
|
margin: 0 10px;
|
|
@@ -32,12 +33,13 @@
|
|
|
32
33
|
border-radius: 2px;
|
|
33
34
|
position: relative;
|
|
34
35
|
|
|
35
|
-
&:hover,
|
|
36
|
-
|
|
36
|
+
&:hover,
|
|
37
|
+
&:focus {
|
|
38
|
+
box-shadow: inset 0 1px 3px rgba(0, 0, 0, 0.1), 0 0 0 6px $pix-neutral-15;
|
|
37
39
|
}
|
|
38
40
|
|
|
39
41
|
&:active {
|
|
40
|
-
box-shadow: inset 0 1px 3px rgba(0,0,0, .1), 0 0 0 6px $pix-neutral-22;
|
|
42
|
+
box-shadow: inset 0 1px 3px rgba(0, 0, 0, 0.1), 0 0 0 6px $pix-neutral-22;
|
|
41
43
|
}
|
|
42
44
|
|
|
43
45
|
&:checked {
|
|
@@ -54,7 +56,6 @@
|
|
|
54
56
|
position: absolute;
|
|
55
57
|
top: 0;
|
|
56
58
|
left: 0;
|
|
57
|
-
|
|
58
59
|
}
|
|
59
60
|
}
|
|
60
61
|
|
|
@@ -83,6 +83,10 @@
|
|
|
83
83
|
transition: all 0.1s ease-in-out;
|
|
84
84
|
margin-top: $spacing-xxs;
|
|
85
85
|
|
|
86
|
+
&__item-label {
|
|
87
|
+
padding: $spacing-xs $spacing-m;
|
|
88
|
+
}
|
|
89
|
+
|
|
86
90
|
&--hidden {
|
|
87
91
|
visibility: hidden;
|
|
88
92
|
opacity: 0;
|
|
@@ -110,7 +114,6 @@
|
|
|
110
114
|
li.pix-multi-select-list__item {
|
|
111
115
|
position: relative;
|
|
112
116
|
list-style: none;
|
|
113
|
-
padding: $spacing-xs $spacing-m;
|
|
114
117
|
|
|
115
118
|
|
|
116
119
|
&:hover,
|
|
@@ -52,6 +52,11 @@ export const argTypes = {
|
|
|
52
52
|
name: 'label',
|
|
53
53
|
description: "Le label de l'input",
|
|
54
54
|
},
|
|
55
|
+
class: {
|
|
56
|
+
name: 'class',
|
|
57
|
+
description: "Permet d'ajouter une classe css à la checkbox.",
|
|
58
|
+
type: { name: 'string' },
|
|
59
|
+
},
|
|
55
60
|
screenReaderOnly: {
|
|
56
61
|
name: 'screenReaderOnly',
|
|
57
62
|
description:
|