News for hackers. Stuff that matters.
Re:UI Web Design 5 Rules of Thumb by gsich on Friday December 23, 2022 @10:00AM (#34106506)
Don't use the slider checkbox from example 2. It's not obvious what the state is, especially without color/contrast.
Re:UI Web Design 5 Rules of Thumb by kristopolous on Friday December 23, 2022 @10:33AM (#34106872)
You can generalize this: if you have to implement the UI element because it's not there by default (like a slider), it's probably worthwhile to investigate why.
Re:UI Web Design 5 Rules of Thumb by andrei_says_ on Friday December 23, 2022 @11:36AM (#34107668)
Also default browser elements have been tested and retested. Reimplementing prettier versions is not always better.

some form elements like checkboxes, radios, sliders, cannot have their size or color be controlled via css - they need to be outright replaced.

Re:UI Web Design 5 Rules of Thumb by kristopolous on Friday December 23, 2022 @01:01PM (#34108761)
People reimplementing basic things like scrolling always comes out so comically bad and broken.

It reminds me of the classic dragon drop parody https://m.youtube.com/watch?v=DCu1G2rxj5c

Re:UI Web Design 5 Rules of Thumb by frosted-flakes on Friday December 23, 2022 @09:33PM (#34113261)
Color can be controlled with the accent-color property.

https://developer.mozilla.org/en-US/docs/Web/CSS/accent-colo...

Re:UI Web Design 5 Rules of Thumb by buttersbrian on Friday December 23, 2022 @10:07AM (#34106595)
I don't think slide toggles are inherently bad, but yes color is your friend and doing them like Material does them is a solid foundation.
Re:UI Web Design 5 Rules of Thumb by cosmotic on Friday December 23, 2022 @10:21AM (#34106749)
Slide toggles are widely considered to have bad usability because it's not clear what position they are in.
Re:UI Web Design 5 Rules of Thumb by foobarbecue on Friday December 23, 2022 @11:30AM (#34107571)
Slide toggles are such an annyoing fad. I find them really unusable. If you're going to implement one, please label which side is on vs off. Or just use a damn checkbox -- it's the same thing, but actually clear when it's enabled or disabled.
Re:UI Web Design 5 Rules of Thumb by andrei_says_ on Friday December 23, 2022 @11:38AM (#34107695)
Appple iOS design uses these instead of checkboxes and the web followed. Don’t see how they are better - maybe when used without a submit button to imply that the change takes place immediately.
Re:UI Web Design 5 Rules of Thumb by skydhash on Friday December 23, 2022 @01:42PM (#34109225)
I believe because it always mean On/Enabled/Active when it’s green. So consistent meaning.
Re:UI Web Design 5 Rules of Thumb by frosted-flakes on Friday December 23, 2022 @09:34PM (#34113270)
That's exactly what they're for. Checkboxes are for forms, and forms need to be submitted. Toggles take immediate effect.