Readit News logoReadit News
virtujoel commented on Modern CSS Code Snippets: Stop writing CSS like it's 2015   modern-css.com... · Posted by u/eustoria
oddevan · a month ago
Agreed; wish the default filter was "newly available" since that includes all 3 major browsers (Chrome/Edge, Safari, Firefox) but still includes new stuff that isn't "baseline" yet.
virtujoel · a month ago
Even "newly available" doesn't seem correct. For example:

https://modern-css.com/smooth-height-auto-animations-without... This claims `interpolate-size` is newly available and works in all major browsers.

https://developer.mozilla.org/en-US/docs/Web/CSS/Reference/P... This states `interpolate-size` only works in Chrome/Edge.

I tested the demo and it's definitely not working in my copy of Firefox.

virtujoel commented on An AI agent published a hit piece on me   theshamblog.com/an-ai-age... · Posted by u/scottshambaugh
wcfrobert · a month ago
> When HR at my next job asks ChatGPT to review my application, will it find the post, sympathize with a fellow AI, and report back that I’m a prejudiced hypocrite?

I hadn't thought of this implication. Crazy world...

virtujoel · a month ago
Roko's basilisk coming to fruition in the lamest way possible.
virtujoel commented on The Overcomplexity of the Shadcn Radio Button   paulmakeswebsites.com/wri... · Posted by u/dbushell
CommonGuy · 2 months ago
I recently tried out https://daisyui.com/ (CSS only components, depends on tailwind) and so far I really like it.

It also highlights how far browser have come with new features such as dialogs, which I always implemented with (a lot of) JavaScript in the past

virtujoel · 2 months ago
This library doesn't appear to be accessible. Just looking at two random components: The Drawer (https://daisyui.com/components/drawer/) doesn't trap focus inside itself (letting you tab to the page behind the drawer while it's open). The Accordion (https://daisyui.com/components/accordion/) first example is using radio buttons as a hack to avoid Javascript, which would be very confusing to screen reader users (announcing the radio buttons to them).

This is why there's so much complexity in libraries like Radix - accessibility in the real world usually requires a lot of Javascript.

virtujoel commented on The Overcomplexity of the Shadcn Radio Button   paulmakeswebsites.com/wri... · Posted by u/dbushell
snowmobile · 2 months ago
> it's clear from research that users prefer custom buttons if they provide more "features" than the defaults.

Hate to be asking for a "source", but what research? And what "features" can a radio button even have? You click it and it's selected. I suppose accessibility can be considered "features", but I'm strongly suspecting that the overcomplex button has worse accessibility.

> all UI controls, have tremendous inherent complexity

Well, this is true in a sense, but it's not exactly a good argument for re-implementing all that complexity in JS / HTML, instead of simply using the browser's implementation that's written in a real language.

virtujoel · 2 months ago
>I suppose accessibility can be considered "features", but I'm strongly suspecting that the overcomplex button has worse accessibility.

Accessibility is incredibly hard to get right, particularly managing screen reader announcements, focus management and form validation. I recently had to build a website that met WCAG 2.1 requirements and it was made significantly easier by using React Aria (https://react-aria.adobe.com/) which is a similarly complex headless component library. To get an idea of the work that goes into making an accessible component, see their blog post about making a combo box where they test 4 different screen readers x 4 different browsers: https://react-aria.adobe.com/blog/building-a-combobox

(I haven't used Radix so I'm unsure how well they do a11y)

u/virtujoel

KarmaCake day16January 20, 2026View Original