Elektrine lite

← Feed

@MoritzGlantz@mastodon.social

Post #1444044

2026-04-20 13:50 UTC

There is not a single reason to build a checkbox using something else than . Change my mind. #dontFightHtml #a11y #Accessibility

Replies (7)

  • @crazyeddie@mastodon.social 2026-04-20 15:01

    @MoritzGlantz@mastodon.social I've been waiting for a volunteer... Have the replacement picked out already. Can do this now if you want! I should note however, nobody has ever woken up from this. Always a first time though!!!

    Open ##1444043

  • @Signez@mastodon.social 2026-04-20 14:53

    @MoritzGlantz@mastodon.social *anymore. Well, there were no real good reasons before, but now that we can style checkbox how we want very easily in all browsers, yeah, really, there is no single reason!

    Open ##1444112

  • @MoritzGlantz the amount of over engineered radio buttons and checkboxes is astounding to me

    Open ##1452521

  • @bluememon@mastodon.social 2026-04-20 15:14

    @MoritzGlantz I agree with you, my pet peeve with this is that the browsers render the native os form element and males it not consistent for any design system. This along with radio buttons are the least customizable elements using css unfortunately and this has been for decades by now. Still, my work arounds still uses the checkbox input under the hood and I use label to remotely control its properties. We try our best to keep everyone happy.

    Open ##1452522

  • @eibhinn@mastodon.ie 2026-04-20 16:22

    @MoritzGlantz ...there's a way to build a checkbox that doesn't use ??

    Open ##1452526

  • @MarkTwoFive@norden.social 2026-04-20 19:45

    @MoritzGlantz To me, you may always wrap or add some fancy stuff around it but using the native element is a MUST. Don't replace native elements with something custom built.

    Open ##1457506

  • @MFolschette@mamot.fr 2026-04-20 19:50

    @MoritzGlantz There is one: confusing your users regarding the state this "accept all cookies" toggle switch is currently on.

    Open ##1457507