by gibsonsmog · 7mo ago · 0 comments
There are some groups out there like Open UI[2] trying to push for this stuff but it seems like the standards bodies have no interest in a decent UI ecosystem instead favoring bloated APIs that make up 5% of your application versus the 95%. I'm mad! I'm mad online!
[1] I'm familiar with the newer carousel CSS/JS stuff but it's kind of clunky. I'll take it either way but damn
I think you've just answered yourself why.
Browsers are the most used applications on the planet. They have one chance to get an API right ("don't break the web"). They iterate on a new API for years. When they finally launch it, devs call it "clunky".
At some point, functionality needs to exist in user space, even if it's common.
Most tooltips can be handled by ancient `title` attributes and the ones that can't should generally be popovers anyway. Firefox support for anchor positioning is out now so HTML+CSS-only/mostly popovers are in a great state today.
There's always more UI controls people think they need. The web will be forever chasing that. But so much has happened in recent years it feels good to stop a moment and appreciate all the little things like details/summary working great for JS-free expanders and accordions.
I'd argue that browsers already have full set basic UI elements.
But the thing is that "basic set" is different for each developer / site and that is OK.
Attempt to make a browser to include everything is a path nowhere. Today we have carousel as the thing, tomorrow something else.
That's the moving target. And don't forget about versioning. Each feature has to have a fallback:
<carousel>
...
</carousel>
<nocarousel>
...
</nocarousel>
Old browsers and old machines are still there.Instead we should have really handy component system like
<section class="carousel">
...
</section>
<style>
section.carousel {
controller: Carousel url(/js/carousel-desktop.js);
}
@media handheld {
section.carousel {
controller: Carousel url(/js/carousel-mobile.js);
}
}
</style>