Skip to content

Commit

Permalink
Next: Switch component QA feedback patch (skeletonlabs#2705)
Browse files Browse the repository at this point in the history
  • Loading branch information
endigo9740 authored Jun 3, 2024
1 parent 0ba4e9c commit 6dd5eee
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@ export const Switch: React.FC<SwitchProps> = ({
}) => {
// Set Compact Mode
if (compact) {
base = `${thumbBase} aspect-square`;
base = thumbBase;
// Removes the height class
height = "";
// Thumb inherits track styles
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@
// Set Compact Mode
if (compact) {
base = `${thumbBase} aspect-square`;
base = thumbBase;
// Removes the height class
height = '';
// Thumb inherits track styles
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
title: Switch
description: A control for toggling between checked states.
srcSvelte: '/src/lib/components/Switch'
srcReact: '/src/components/Switch'
srcReact: '/src/lib/components/Switch'
srcAlly: 'https://www.w3.org/WAI/ARIA/apg/patterns/switch/'
showDocsUrl: true
---
Original file line number Diff line number Diff line change
Expand Up @@ -5,4 +5,4 @@
let state = $state(false);
</script>

<Switch id="example" name="example" bind:checked={state} onCheckedChange={() => console.log({ state })} />
<Switch id="example" name="example" bind:checked={state} onCheckedChange={console.log} />

0 comments on commit 6dd5eee

Please sign in to comment.