toggle
toggle copied to clipboard
Handle size stays the same after changing the height of the toggle
After using --toggle-width: 120px
and --toggle-height: 35px
for example, the handle will stay 20x20 pixels. The width and height of the handle should be added as variables as well.
I had this same issue too. Was trying to find a way to hack it with css selectors but haven't yet.
EDIT: was able to do it with this - ` .toggle-small { --toggle-width: 2rem; --toggle-height: 0.75rem; --toggle-font-size: 0.5rem; }
.toggle-small * .toggle-handle { width: 12px; height: 12px; } `
Fixed.