Skip to content

Commit

Permalink
Add defaults for --toggle-handle-size
Browse files Browse the repository at this point in the history
  • Loading branch information
Evgeniy committed Dec 15, 2023
1 parent 662e824 commit c680d69
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions src/form/Toggle/Toggle.module.css
Original file line number Diff line number Diff line change
Expand Up @@ -32,8 +32,8 @@
padding: calc(var(--toggle-spacing) / 2);

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

Expand All @@ -43,8 +43,8 @@
padding: calc(var(--toggle-spacing) / 1.5);

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

Expand All @@ -54,8 +54,8 @@
padding: var(--toggle-spacing);

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

Expand Down

0 comments on commit c680d69

Please sign in to comment.