Stop Creating Custom Checkboxes - Do This Instead

preview_player
Показать описание
🌎 Find Me Here:

#Shorts
Рекомендации по теме
Комментарии
Автор

dude keep on doing this, its too useful

marvelBoy
Автор

People make custom checkboxes and range sliders because there is no way to properly style them or add animations, color is a less of a concern. Also different browsers have different checkboxes and therefore UI will look inconsistent

ivanbragin
Автор

The border color will also take the text color by just leaving out the color property. border: 1px solid;

josephlivengood
Автор

What!!?? I was literally about to bring in Daisy UI just for this. Thank you so much Kyle!!

zombiefacesupreme
Автор

Dude, you saved me so much time, thanks!

arthurmiranda
Автор

I really like your shorts=) you are awersome=)

omnomnom
Автор

This video was useful fir me.
Thank you Kyle!

dimrachkool
Автор

Hell yeah, this is amazing! Thanks Kyle

michielarkema
Автор

You are Da best my brother!!! Thanks for this priceless gift!!!

jurgenbjansen
Автор

God damn Kyle you just saved my life 😭😭💙💙 I was using before after pseudo stuffs

rfryanfavour
Автор

Omg he has such grace and ability at tje same time
Love him, sorry but he is an inspiration

justmyself
Автор

i would probably hold off on using accent-color since it just got added to most browsers this year.

techsavvytravvy
Автор

Sadly I need more customization than this in my current project. I need to set up a custom icon inside, or at least the color of the tick should be customizable.

chinmayghule
Автор

Some weeks ago i wasted an hoir until i found the accent color and now youtube recommends it haha

lighttigerxiv
Автор

It's important to mention that the accent-color property is relatively new and only available in chrome 93 and later

romzamir
Автор

You actually don't need currentcolor property by default if border color is not set it uses text color

mohammedezzinehaddady
Автор

Styling checkboxes is inconsistent across browsers and operating systems. I've tried to make a native checkbox bigger and had it look acceptable on any browser, except in Ubuntu Firefox where only the box was larger, but the checkmark didn't scale.

TanelM
Автор

Really depends on the design I guess you might want to apply more styles than the checkbox/progress bar color. I like the currentColor thing though definitely saves time if you make a design token theme.

georgios_georgiou
Автор

There is no need to write currentColor is border if you want to use same color as font color you can write like:
border:1px solid;

uroojkhan
Автор

Love your videos! Please tell me how can i make these check boxes as radio?

maheenkashish