Skip to content

Commit

Permalink
fix: checkbox alignment in ios (#197)
Browse files Browse the repository at this point in the history
  • Loading branch information
phoebus-84 authored Dec 23, 2024
1 parent 0e3373f commit e1a51d5
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 6 deletions.
5 changes: 1 addition & 4 deletions src/components/checkbox/d-checkbox.css
Original file line number Diff line number Diff line change
Expand Up @@ -6,12 +6,9 @@ ion-checkbox {
--checkbox-background-checked: var(--accent);
width: 48px;
height: 48px;
justify-items: center;
margin-left: -12px;

}
ion-checkbox::part(container) {
border-radius: 1px;
border-radius: 2px;
border: 2px solid;
border-color: var(--on-alt);
--checkmark-color: var(--stroke);
Expand Down
2 changes: 1 addition & 1 deletion src/components/checkbox/d-checkbox.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ export class DCheckbox {
<d-vertical-stack>
<d-horizontal-stack class="items-center" gap={0}>
<ion-checkbox onIonChange={e => this.updateValue(e.detail.checked)} checked={this.checked}></ion-checkbox>
<div>
<div class="-ml-3">
<slot />
</div>
</d-horizontal-stack>
Expand Down
2 changes: 1 addition & 1 deletion src/components/checkbox/test/d-checkbox.spec.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ describe('d-checkbox', () => {
<d-vertical-stack>
<d-horizontal-stack class="items-center" gap="0">
<ion-checkbox></ion-checkbox>
<div>
<div class="-ml-3">
<slot></slot>
</div>
</d-horizontal-stack>
Expand Down

0 comments on commit e1a51d5

Please sign in to comment.