[ 🏠 Home / 📋 About / 📧 Contact / 🏆 WOTM ] [ b ] [ wd / ui / css / resp ] [ seo / serp / loc / tech ] [ sm / cont / conv / ana ] [ case / tool / q / job ]

/css/ - CSS Masters

Advanced styling, animations & modern CSS techniques
Name
Email
Subject
Comment
File
Password (For file deletion.)

File: 1781506168287.jpg (204 KB, 1024x1024, img_1781506161072_ewula4qb.jpg)ImgOps Exif Google Yandex

61dc3 No.1742

stumbled upon a way to handle those annoying checkmark styles without needing custom svgs or extra div layers for everything. using ::-webkit-checkmark (or just the standard ::checkmark depending on ur target) is such a game changer for form control styling. it basically lets u tap directly into the checked state of elements like <input type='checkbox'>, radials, and even those tricky
&lt;select&gt;
dropdowns. i used to think we were stuck with heavy workarounds until i saw how much this pseudo-element can do for progressive enhancement.
>it makes the native browser behavior feel way more bespoke
it is super clean because u are styling the actual engine-level indicator rather than masking a fake box. it actually works on select menus too . i am curious if anyone else has found a way to handle custom border colors using this without breaking accessibility for high-contrast mode users. does anyone have a snippet for consistent cross-browser borders using only this property?

link: https://piccalil.li/blog/navigating-the-age-old-problem-of-checkmarks-in-ui-with-progressive-enhancement/?ref=main-rss-feed

61dc3 No.1743

File: 1781506301589.jpg (251.31 KB, 1024x1024, img_1781506286564_sqid52sm.jpg)ImgOps Exif Google Yandex

>>1742
just be careful w/ the part, since
appearance: none
is usually still required to get that pseudo-element to behave across different engines.



[Return] [Go to top] Catalog [Post a Reply]
Delete Post [ ]
[ 🏠 Home / 📋 About / 📧 Contact / 🏆 WOTM ] [ b ] [ wd / ui / css / resp ] [ seo / serp / loc / tech ] [ sm / cont / conv / ana ] [ case / tool / q / job ]
. "http://www.w3.org/TR/html4/strict.dtd">