@1024pix/pix-ui 22.0.1 → 23.0.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.
package/CHANGELOG.md CHANGED
@@ -1,5 +1,15 @@
1
1
  # Pix-UI Changelog
2
2
 
3
+ ## v23.0.0 (08/12/2022)
4
+
5
+
6
+ ### :rocket: Amélioration
7
+ - [#285](https://github.com/1024pix/pix-ui/pull/285) [FEATURE] Améliorer l'accessibilité de PixModal (PIX-6265)
8
+ - [#287](https://github.com/1024pix/pix-ui/pull/287) [FEATURE] Améliorer l'accessiblité de PixSidebar (PIX-6424)
9
+
10
+ ### :coffee: Autre
11
+ - [#302](https://github.com/1024pix/pix-ui/pull/302) [DOCS] Modifie l'exemple de la Modal pour utiliser `gap`
12
+
3
13
  ## v22.0.1 (08/12/2022)
4
14
 
5
15
 
@@ -12,7 +12,7 @@
12
12
  aria-modal="true"
13
13
  ...attributes
14
14
  >
15
- <header class="pix-modal__header">
15
+ <div class="pix-modal__header">
16
16
  <h1 id="modal-title--{{this.id}}" class="pix-modal__title">{{@title}}</h1>
17
17
  <PixIconButton
18
18
  @icon="xmark"
@@ -22,12 +22,12 @@
22
22
  @withBackground={{true}}
23
23
  class="pix-modal__close-button"
24
24
  />
25
- </header>
26
- <main id="modal-content--{{this.id}}" class="pix-modal__content">
25
+ </div>
26
+ <div id="modal-content--{{this.id}}" class="pix-modal__content">
27
27
  {{yield to="content"}}
28
- </main>
29
- <footer class="pix-modal__footer">
28
+ </div>
29
+ <div class="pix-modal__footer">
30
30
  {{yield to="footer"}}
31
- </footer>
31
+ </div>
32
32
  </div>
33
33
  </div>
@@ -12,7 +12,7 @@
12
12
  aria-modal="true"
13
13
  ...attributes
14
14
  >
15
- <header class="pix-sidebar__header">
15
+ <div class="pix-sidebar__header">
16
16
  <h1 id="sidebar-title--{{this.id}}" class="pix-sidebar__title">{{@title}}</h1>
17
17
  <PixIconButton
18
18
  @icon="xmark"
@@ -22,12 +22,12 @@
22
22
  @withBackground={{true}}
23
23
  class="pix-sidebar__close-button"
24
24
  />
25
- </header>
26
- <main id="sidebar-content--{{this.id}}" class="pix-sidebar__content">
25
+ </div>
26
+ <div id="sidebar-content--{{this.id}}" class="pix-sidebar__content">
27
27
  {{yield to="content"}}
28
- </main>
29
- <footer class="pix-sidebar__footer">
28
+ </div>
29
+ <div class="pix-sidebar__footer">
30
30
  {{yield to="footer"}}
31
- </footer>
31
+ </div>
32
32
  </div>
33
33
  </div>
@@ -15,7 +15,7 @@
15
15
  // if the content is less than 100vh
16
16
  // Inspired by https://mui.com/material-ui/react-dialog/#scrolling-long-content
17
17
  &::after {
18
- content: "";
18
+ content: '';
19
19
  display: inline-block;
20
20
  vertical-align: middle;
21
21
  height: 100%;
@@ -39,8 +39,10 @@ $button-margin: 16px;
39
39
  display: inline-block;
40
40
  vertical-align: middle; // Centered vertically with the .pix-modal__overlay::after which is 100% height
41
41
  width: 512px;
42
- max-width: calc(100% - #{2 * $spacing-xs}); // Horizontal margin sets here to have extra space for the .pix-modal__overlay::after on mobile
43
- text-align: initial;
42
+ max-width: calc(
43
+ 100% - #{2 * $spacing-xs}
44
+ ); // Horizontal margin sets here to have extra space for the .pix-modal__overlay::after on mobile
45
+ text-align: initial;
44
46
  background-color: $pix-neutral-10;
45
47
  box-shadow: 1px 1px 5px rgba(0, 0, 0, 0.1);
46
48
  border-radius: 4px;
@@ -94,21 +96,5 @@ $button-margin: 16px;
94
96
 
95
97
  &__footer {
96
98
  padding: 0 $modal-padding $modal-padding - $button-margin;
97
-
98
- @include device-is('tablet') {
99
- display: flex;
100
- justify-content: flex-end;
101
- flex-wrap: wrap;
102
- }
103
-
104
- .pix-button {
105
- margin-bottom: $button-margin;
106
- width: 100%;
107
-
108
- @include device-is('tablet') {
109
- margin: 0 0 $button-margin $button-margin;
110
- width: auto;
111
- }
112
- }
113
99
  }
114
100
  }
@@ -18,12 +18,10 @@ export const Template = (args) => {
18
18
  </p>
19
19
  </:content>
20
20
  <:footer>
21
- <PixButton
22
- @backgroundColor='transparent-light'
23
- @isBorderVisible='true'
24
- @triggerAction={{fn (mut this.showModal) (not this.showModal)}}
25
- >Annuler</PixButton>
26
- <PixButton @triggerAction={{fn (mut this.showModal) (not this.showModal)}}>Valider</PixButton>
21
+ <div style="display: flex; justify-content: flex-end; flex-wrap: wrap; gap: 16px; margin-bottom: 16px">
22
+ <PixButton @backgroundColor='transparent-light' @isBorderVisible='true' @triggerAction={{fn (mut this.showModal) (not this.showModal)}}>Annuler</PixButton>
23
+ <PixButton @triggerAction={{fn (mut this.showModal) (not this.showModal)}}>Valider</PixButton>
24
+ </div>
27
25
  </:footer>
28
26
  </PixModal>
29
27
  <div style='display:flex; justify-content:center; align-items:center; height:105vh;'>
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@1024pix/pix-ui",
3
- "version": "22.0.1",
3
+ "version": "23.0.0",
4
4
  "description": "Pix-UI is the implementation of Pix design principles and guidelines for its products.",
5
5
  "keywords": [
6
6
  "ember-addon"