Skip to content

Commit

Permalink
Merge pull request #91 from reaviz/bugfix/toggle_size_defaults
Browse files Browse the repository at this point in the history
Fix toggle size defaults
  • Loading branch information
amcdnl authored Dec 15, 2023
2 parents 82819de + c680d69 commit 2d3e7a7
Showing 1 changed file with 9 additions and 9 deletions.
18 changes: 9 additions & 9 deletions src/form/Toggle/Toggle.module.css
Original file line number Diff line number Diff line change
Expand Up @@ -27,35 +27,35 @@
}

&.small {
height: calc(var(--toggle-width, 35px) / 2);
height: calc(var(--toggle-height, 35px) / 2);
width: calc(var(--toggle-width, 55px) / 2);
padding: calc(var(--toggle-spacing) / 2);

.handle {
height: calc(var(--toggle-width, 25px) / 2);
width: calc(var(--toggle-width, 25px) / 2);
height: calc(var(--toggle-handle-size, 25px) / 2);
width: calc(var(--toggle-handle-size, 25px) / 2);
}
}

&.medium {
height: calc(var(--toggle-width, 35px) / 1.5);
height: calc(var(--toggle-height, 35px) / 1.5);
width: calc(var(--toggle-width, 55px) / 1.5);
padding: calc(var(--toggle-spacing) / 1.5);

.handle {
height: calc(var(--toggle-width, 25px) / 1.5);
width: calc(var(--toggle-width, 25px) / 1.5);
height: calc(var(--toggle-handle-size, 25px) / 1.5);
width: calc(var(--toggle-handle-size, 25px) / 1.5);
}
}

&.large {
height: var(--toggle-width, 35px);
height: var(--toggle-height, 35px);
width: var(--toggle-width, 55px);
padding: var(--toggle-spacing);

.handle {
height: var(--toggle-width, 25px);
width: var(--toggle-width, 25px);
height: var(--toggle-handle-size, 25px);
width: var(--toggle-handle-size, 25px);
}
}

Expand Down

0 comments on commit 2d3e7a7

Please sign in to comment.