Skip to content

Commit

Permalink
fix(inputtoggle): fix on state styles
Browse files Browse the repository at this point in the history
  • Loading branch information
masoudmanson committed Apr 8, 2024
1 parent aa143fa commit 581a99d
Show file tree
Hide file tree
Showing 2 changed files with 15 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -28,11 +28,18 @@ export default {

// Default

export const Default = {};
export const Default = {
args: {
disabled: false,
},
};

// Live Preview

export const LivePreview = {
args: {
disabled: false,
},
parameters: {
controls: {
exclude: INPUT_TOGGLE_EXCLUDED_CONTROLS,
Expand Down Expand Up @@ -64,6 +71,9 @@ export const Controlled = {
// Test

export const Test = {
args: {
disabled: false,
},
parameters: {
controls: {
exclude: INPUT_TOGGLE_EXCLUDED_CONTROLS,
Expand Down
4 changes: 4 additions & 0 deletions packages/components/src/core/InputToggle/style.ts
Original file line number Diff line number Diff line change
Expand Up @@ -41,6 +41,10 @@ const toggle = (props: InputToggleExtraProps) => {
padding: 0;
transform: unset;
&.${switchClasses.checked} {
transform: unset;
}
&:hover {
background-color: transparent;
}
Expand Down

0 comments on commit 581a99d

Please sign in to comment.