toggle icon indicating copy to clipboard operation
toggle copied to clipboard

Handle size stays the same after changing the height of the toggle

Open BKirev opened this issue 3 years ago • 1 comments

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.

BKirev avatar Sep 25 '21 20:09 BKirev

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; } `

cwoodward10 avatar Sep 29 '21 15:09 cwoodward10

Fixed.

adamberecz avatar Dec 20 '22 06:12 adamberecz