@1024pix/pix-ui 46.12.20 → 46.12.21

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.
@@ -1,9 +1,9 @@
1
1
  <label for={{@for}} class={{this.className}} ...attributes>
2
2
  {{#if this.hasError}}
3
- <FaIcon @icon="circle-xmark" />
3
+ <FaIcon @icon="circle-xmark" class="pix-label-wrapped__state-icon" />
4
4
  {{/if}}
5
5
  {{#if this.hasSuccess}}
6
- <FaIcon @icon="circle-check" />
6
+ <FaIcon @icon="circle-check" class="pix-label-wrapped__state-icon" />
7
7
  {{/if}}
8
8
 
9
9
  {{yield to="inputElement"}}
@@ -5,17 +5,6 @@ import { warn } from '@ember/debug';
5
5
  import { formatMessage } from '../translations';
6
6
 
7
7
  export default class PixRadioButton extends Component {
8
- constructor() {
9
- super(...arguments);
10
-
11
- warn(
12
- 'PixRadioButton: @state attribute should be used along with @isDisabled attribute.',
13
- this.stateWarning,
14
- {
15
- id: 'pix-ui.radio-button.state.cant-be-used-without-is-disabled',
16
- },
17
- );
18
- }
19
8
  text = 'pix-radio-button';
20
9
 
21
10
  get stateWarning() {
@@ -117,7 +117,6 @@
117
117
 
118
118
  &.pix-checkbox__input--state {
119
119
  position: absolute;
120
- visibility: hidden;
121
120
  }
122
121
  }
123
122
  }
@@ -10,7 +10,7 @@
10
10
  padding: var(--pix-spacing-3x) var(--pix-spacing-4x);
11
11
  background: var(--pix-neutral-0);
12
12
  border: 1px solid var(--pix-neutral-100);
13
- border-radius: 4px;
13
+ border-radius: 8px;
14
14
 
15
15
  &:focus-within {
16
16
  border: 1px solid var(--pix-primary-500);
@@ -41,6 +41,15 @@
41
41
  color: var(--pix-error-700);
42
42
  }
43
43
 
44
+ & .pix-label-wrapped__state-icon {
45
+ z-index: 1;
46
+ width: 1rem;
47
+ height: 1rem;
48
+ padding: 0;
49
+ background-color: var(--state-background-color);
50
+ border: 0;
51
+ }
52
+
44
53
  // stylelint-disable-next-line no-duplicate-selectors
45
54
  & {
46
55
  background: var(--state-background-color);
@@ -89,7 +89,6 @@
89
89
 
90
90
  &.pix-radio-button__input--state {
91
91
  position: absolute;
92
- visibility: hidden;
93
92
  }
94
93
  }
95
94
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@1024pix/pix-ui",
3
- "version": "46.12.20",
3
+ "version": "46.12.21",
4
4
  "description": "Pix-UI is the implementation of Pix design principles and guidelines for its products.",
5
5
  "keywords": [
6
6
  "ember-addon"