@1024pix/pix-ui 24.0.0 → 24.0.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.
@@ -18,10 +18,10 @@ jobs:
18
18
  docker:
19
19
  - image: cimg/node:16.14.0-browsers
20
20
  steps:
21
+ - checkout
21
22
  - run: sudo npm i -g npm@8.13.2
22
23
  - browser-tools/install-chrome
23
24
  - browser-tools/install-chromedriver
24
- - checkout
25
25
  - run: npm ci
26
26
  - run: npm run lint:js
27
27
  - run: npm run lint:hbs
package/CHANGELOG.md CHANGED
@@ -1,5 +1,12 @@
1
1
  # Pix-UI Changelog
2
2
 
3
+ ## v24.0.1 (11/01/2023)
4
+
5
+
6
+ ### :bug: Correction
7
+ - [#315](https://github.com/1024pix/pix-ui/pull/315) [BUGFIX] Améliorer le comportement du PixSelect (PIX-6775)
8
+ - [#317](https://github.com/1024pix/pix-ui/pull/317) [BUGFIX] La CI sort en erreur alors que les tests sont OK en local
9
+
3
10
  ## v24.0.0 (09/01/2023)
4
11
 
5
12
 
@@ -33,7 +33,7 @@
33
33
  aria-controls={{this.listId}}
34
34
  aria-disabled={{@isDisabled}}
35
35
  >
36
- {{this.placeholder}}
36
+ <span class="pix-select-button__text">{{this.placeholder}}</span>
37
37
 
38
38
  <FaIcon
39
39
  class="pix-select-button__dropdown-icon"
@@ -139,7 +139,7 @@ export default class PixSelect extends Component {
139
139
  lockTab(event) {
140
140
  if (event.code === 'Tab' && this.isExpanded) {
141
141
  event.preventDefault();
142
- document.getElementById(this.searchId).focus();
142
+ if (this.args.isSearchable) document.getElementById(this.searchId).focus();
143
143
  }
144
144
  }
145
145
 
@@ -108,6 +108,12 @@
108
108
  @include formElementInError();
109
109
  }
110
110
 
111
+ &__text {
112
+ overflow: hidden;
113
+ white-space: nowrap;
114
+ text-overflow: ellipsis;
115
+ }
116
+
111
117
  &__dropdown-icon {
112
118
  @include text-small();
113
119
  margin-left: $spacing-xs;
@@ -165,7 +171,8 @@
165
171
  &--hidden {
166
172
  visibility: hidden;
167
173
  height: 0;
168
- padding: 0;
174
+ padding-top: 0;
175
+ padding-bottom: 0;
169
176
  }
170
177
  }
171
178
  }
@@ -7,6 +7,7 @@ export const Template = (args) => {
7
7
  <style>
8
8
  .custom {
9
9
  border: 0;
10
+ width: 150px;
10
11
  }
11
12
  .custom:hover {
12
13
  border: 0;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@1024pix/pix-ui",
3
- "version": "24.0.0",
3
+ "version": "24.0.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"