Skip to content

Commit

Permalink
fix: 🤔 (unchecked) checkbox in sd-select does not keep size while res…
Browse files Browse the repository at this point in the history
…izing sd-popup (#1397)

Co-authored-by: Vahid Nesro <vahid.nesro@virtual-identity.com>
  • Loading branch information
Vahid1919 and Vahid1919 authored Sep 25, 2024
1 parent cebe6d5 commit cffa05d
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion packages/components/src/components/checkbox/checkbox.ts
Original file line number Diff line number Diff line change
Expand Up @@ -227,7 +227,7 @@ export default class SdCheckbox extends SolidElement implements SolidFormControl
? ' control--indeterminate'
: ''}"
class=${cx(
`relative flex flex-initial items-center justify-center border rounded-sm h-4 w-4
`relative flex flex-shrink-0 items-center justify-center border rounded-sm h-4 w-4
peer-focus-visible:outline peer-focus-visible:outline-2 peer-focus-visible:outline-offset-2
peer-focus-visible:outline-primary`,
{
Expand Down
2 changes: 1 addition & 1 deletion packages/components/src/components/option/option.ts
Original file line number Diff line number Diff line change
Expand Up @@ -157,7 +157,7 @@ export default class SdOption extends SolidElement {
id="control"
part="control ${this.selected ? ' control--checked' : 'control--unchecked'}"
class=${cx(
'relative flex flex-initial items-center justify-center border rounded-sm h-4 w-4 mr-2',
'relative flex flex-shrink-0 items-center justify-center border rounded-sm h-4 w-4 mr-2',
this.disabled ? 'border-neutral-500' : this.selected ? 'bg-accent border-accent' : 'border-neutral-800'
)}
>
Expand Down

0 comments on commit cffa05d

Please sign in to comment.