News for hackers. Stuff that matters.
Re:Open-UI: Maintain an open standard for UI and promote its... by gyomu on Wednesday March 12, 2025 @08:04AM (#43342329)
The statement of purpose on the website (https://open-ui.org) is much clearer with their actual goal than the wordy Github document:

> The purpose of the Open UI, a W3C Community Group, is to allow web developers to style and extend built-in web UI components and controls, such as <select> dropdowns, checkboxes, radio buttons, and date/color pickers.

That'd be great. I hope they succeed.

Re:Open-UI: Maintain an open standard for UI and promote its... by madeofpalk on Wednesday March 12, 2025 @08:10AM (#43342380)
Re:Open-UI: Maintain an open standard for UI and promote its... by troupo on Wednesday March 12, 2025 @08:20AM (#43342450)
The first ones are Exclusive Accordion, Invoker Commmands, Popover. See graduated proposals at https://open-ui.org/
Re:Open-UI: Maintain an open standard for UI and promote its... by extra88 on Wednesday March 12, 2025 @09:23PM (#43349481)
Customizable selects will be the first that adds a new element, rather than new attribute behaviors or new attributes. Those have still been significant, of course.
Re:Open-UI: Maintain an open standard for UI and promote its... by AyyEye on Wednesday March 12, 2025 @08:53AM (#43342702)
Hopefully the user has the same freedoms to style things how they would like.
Re:Open-UI: Maintain an open standard for UI and promote its... by vlad-roundabout on Wednesday March 12, 2025 @12:02PM (#43344640)
Yes, one can style them with a userstyle as always.
Re:Open-UI: Maintain an open standard for UI and promote its... by dartos on Wednesday March 12, 2025 @09:33AM (#43343080)
Most browsers let you extend a page’s css (at least via extensions)

I don’t think this would be immune to that.

Re:Open-UI: Maintain an open standard for UI and promote its... by slowmovintarget on Wednesday March 12, 2025 @01:29PM (#43345605)
Until Google realizes you're using the capability to hide advertising and disables the feature to create a "trusted client" (trusted by Google to render their ads faithfully). They've pitched the idea before as a way to force users into Chrome from the server-side.

I'll go back to shouting at clouds now... Sorry.

Re:Open-UI: Maintain an open standard for UI and promote its... by Krssst on Thursday March 13, 2025 @08:43PM (#43358617)
Some pages seem to randomize element IDs to prevent adblockers from doing their job; randomizing CSS class names wouldn't be out of the ordinary.
Re:Open-UI: Maintain an open standard for UI and promote its... by nemomarx on Wednesday March 12, 2025 @12:28PM (#43344923)
if anything a standard element is easier to style on your end than everyone using a custom one right?
Re:Open-UI: Maintain an open standard for UI and promote its... by nartho on Wednesday March 12, 2025 @02:07PM (#43346021)
Not really, because for a native element you're dependent of their APIs. For example the color picker will only use the system color picker, a lot of other native elements are hard to style. So custom elements are often easier to style but harder to maintain and usually bad for accessibility.
Re:Open-UI: Maintain an open standard for UI and promote its... by devit on Wednesday March 12, 2025 @04:46PM (#43347492)
"styling on your end" means the _user_ (not the website designer/developer) deciding how controls should be styled and that's much easier if everything uses the same controls because you only need to specify it once and don't need a library to hook all possible UI frameworks that exist.
Re:Open-UI: Maintain an open standard for UI and promote its... by rerdavies on Wednesday March 12, 2025 @10:50PM (#43349948)
Users deciding how input controls are styled? Who exactly asked for THAT?
Re:Open-UI: Maintain an open standard for UI and promote its... by ErikBjare on Thursday March 13, 2025 @02:46AM (#43350871)
Heard of userstyles?
Re:Open-UI: Maintain an open standard for UI and promote its... by test6554 on Wednesday March 12, 2025 @04:00PM (#43347078)
We have <input> and <label for=""> elements, but what about <validation for="" condition="" message=""> elements?

Condition could be a wide range of possible built-in validation functions or a custom regex or js function.

Instead of adding all these validation attributes to <input> elements you could have zero or more <validation> elements, each with their own message.

The message could automatically appear when its conditions fail. Unless you call preventDefault() inside an "invalid" event handler. The invalid event could have a list of all "validations" for that element and you could check their status via js, disarm/ignore them individually, or get their messages etc.

Re:Open-UI: Maintain an open standard for UI and promote its... by blacksmith_tb on Wednesday March 12, 2025 @06:38PM (#43348442)
Don't we already have that basically, with HTML5 form validation[1]? Often just using the pattern attribute is enough to make sure you don't get a phone number in your email field etc.

1: https://developer.mozilla.org/en-US/docs/Learn_web_developme...

Re:Open-UI: Maintain an open standard for UI and promote its... by extra88 on Wednesday March 12, 2025 @09:20PM (#43349469)
Yes, but it's user agent UI which is not really good in any of them.

Good error messaging is important and having styleable semantic elements would be helpful. It's tricky because you often need more than one error message per input, not just "required" but too big, too small, wrong format, etc.

Re:Open-UI: Maintain an open standard for UI and promote its... by notpushkin on Thursday March 13, 2025 @12:28AM (#43350396)
Right. You can use browser validation and extract the error messages with JavaScript (to style them yourself, e.g. [1]), but there’s no solution without JS yet.

[1]: https://github.com/notpushkin/evilmartians-exercise-auth/blo...