Skip to content

Commit

Permalink
fix pix checkbox
Browse files Browse the repository at this point in the history
  • Loading branch information
xav-car authored and yannbertrand committed May 3, 2024
1 parent ecf60dd commit dc9a4b0
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 12 deletions.
19 changes: 10 additions & 9 deletions addon/components/pix-checkbox.hbs
Original file line number Diff line number Diff line change
@@ -1,21 +1,22 @@
<div class="pix-checkbox {{@class}}">
<input
type="checkbox"
id={{this.id}}
class={{this.inputClasses}}
checked={{@checked}}
aria-disabled={{@isDisabled}}
...attributes
/>

<PixLabel
@for={{this.id}}
@requiredLabel={{@requiredLabel}}
@size={{@size}}
@inlineLabel={{true}}
@screenReaderOnly={{@screenReaderOnly}}
@isDisabled={{@isDisabled}}
@wrappedElement={{true}}
>
<input
type="checkbox"
id={{this.id}}
class={{this.inputClasses}}
checked={{@checked}}
aria-disabled={{@isDisabled}}
...attributes
/>

{{yield to="label"}}
</PixLabel>
</div>
3 changes: 0 additions & 3 deletions addon/styles/_pix-checkbox.scss
Original file line number Diff line number Diff line change
@@ -1,9 +1,6 @@
.pix-checkbox {
position: relative;
z-index: 0;
display: flex;
gap: var(--pix-spacing-3x);
align-items: center;

& + .pix-checkbox {
margin-top: var(--pix-spacing-4x);
Expand Down

0 comments on commit dc9a4b0

Please sign in to comment.