s1lvax / route

🔀 Route is a platform that allows users to easily share their favourite Links, Tech Skills and GitHub Stats in one centralized place.
https://route2.dev
MIT License
50 stars 6 forks source link

[Bug] You can't click on Open to collaboration toggle #84

Open jcubic opened 13 hours ago

jcubic commented 13 hours ago

You can only click on label and not on the toggle, which looks like a UX bug to me.

s1lvax commented 13 hours ago

Hi there and welcome to the project :D @jcubic .

Thanks for pointing this out. It was just an horrible design idea on my part, I will change this soon to just be a normal button.

jcubic commented 10 hours ago

You can make Toggle like this in Pure CSS. There are a lot of examples online.

Here is mine that I did long ago:

https://codepen.io/jcubic/pen/WXLKeQ

The old code require the label to be after the input, but now with :has() selector, you can make the label before the input. Another way is to change the order with flexbox.

s1lvax commented 10 hours ago

Thank you, I'll give a try :))