@1024pix/pix-ui 46.10.2 → 46.10.4

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.
@@ -26,20 +26,15 @@ export default class PixSelect extends Component {
26
26
  this.displayCategory = categories.length > 0;
27
27
 
28
28
  if (!this.args.isComputeWidthDisabled) {
29
- this.elementHelper.waitForElement(this.selectId).then((elementList) => {
29
+ this.elementHelper.waitForElement(this.listId).then((elementList) => {
30
30
  const baseFontRemRatio = Number(
31
31
  getComputedStyle(document.querySelector('html')).fontSize.match(/\d+(\.\d+)?/)[0],
32
32
  );
33
- const checkIconWidth = 1.125 * baseFontRemRatio;
34
33
  const listWidth = elementList.getBoundingClientRect().width;
35
- const selectWidth = (listWidth + checkIconWidth) / baseFontRemRatio;
36
-
37
- const className = `sizing-select-${this.selectId}`;
38
- this.elementHelper.createClass(`.${className}`, `width: ${selectWidth}rem;`);
34
+ const selectWidth = listWidth / baseFontRemRatio;
39
35
 
40
36
  const element = document.getElementById(`container-${this.selectId}`);
41
-
42
- element.className = element.className + ' ' + className;
37
+ element.style.setProperty('--pix-select-width', `${selectWidth}rem`);
43
38
  });
44
39
  }
45
40
  }
@@ -3,6 +3,8 @@
3
3
  display: inline-flex;
4
4
  flex-direction: column;
5
5
  gap: var(--pix-spacing-1x);
6
+ width: var(--pix-select-width);
7
+ max-width: 100%;
6
8
 
7
9
  &--inline {
8
10
  flex-direction: row;
@@ -136,10 +138,8 @@
136
138
  &__option {
137
139
  @extend %pix-body-s;
138
140
 
139
- display: flex;
140
- gap: var(--pix-spacing-6x);
141
- justify-content: space-between;
142
- padding: var(--pix-spacing-2x) var(--pix-spacing-6x);
141
+ position: relative;
142
+ padding: var(--pix-spacing-2x) var(--pix-spacing-8x) var(--pix-spacing-2x) var(--pix-spacing-6x);
143
143
  color: var(--pix-neutral-900);
144
144
 
145
145
  &:hover,
@@ -150,7 +150,11 @@
150
150
  }
151
151
 
152
152
  svg {
153
+ position: absolute;
154
+ top: 50%;
155
+ right: var(--pix-spacing-2x);
153
156
  font-size: 1.125rem;
157
+ transform: translateY(-50%);
154
158
  visibility: hidden;
155
159
  opacity: 0;
156
160
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@1024pix/pix-ui",
3
- "version": "46.10.2",
3
+ "version": "46.10.4",
4
4
  "description": "Pix-UI is the implementation of Pix design principles and guidelines for its products.",
5
5
  "keywords": [
6
6
  "ember-addon"
@@ -98,7 +98,7 @@
98
98
  "ember-load-initializers": "^2.1.2",
99
99
  "ember-page-title": "^8.0.0",
100
100
  "ember-qunit": "^8.0.0",
101
- "ember-resolver": "^11.0.0",
101
+ "ember-resolver": "^12.0.0",
102
102
  "ember-sinon": "^5.0.0",
103
103
  "ember-source": "^4.0.1",
104
104
  "ember-source-channel-url": "^3.0.0",