AfterClass-io / afterclass.io-v2

[alpha] v2 of https://afterclass.io!
https://afterclass-io.vercel.app
MIT License
4 stars 2 forks source link

[Feat][UI] implement ring focus and hover states for various input components #91

Closed davidlhw closed 1 month ago

davidlhw commented 3 months ago

mentioned in https://github.com/AfterClass-io/afterclass.io-v2/pull/82#issuecomment-2067683705

You can make use ring- and outline to achieve the focus. Maybe we can have a .focus-ring { @apply ... } class so that we can easily add focus-ring to components with just 1 class since the focus rings are all the same.

You can also use focus-visible:ring-* for the pseudo class instead of just focus: so it doesn't show that often