Some controls are better left unstyled. Look what happened to scrollbars: either they are too thin to grab, have bad color contrast, so it is hard to see what part to actually grab, and, finally, some smartypants have managed even to remove scrollbars altogether from their website. Sure, default select is not the prettiest control, but it gets it job done.
I disagree. On my website I have a sidebar and a main content area. You are able to scroll through posts on the sidebar and through the content on the main content area. The sidebar is a dark color. Being able to use a thin sidebar and make the color of the sidebar dark to match the background makes the website look a lot better than having a clunky white sidebar on a dark background. The user can still obviously see…
The element can now be customized with CSS
101–110 of 194 posts
Re: The <select> element can now be customized with CSS
#102Re: The <select> element can now be customized with CSS
#103Re: The <select> element can now be customized with CSS
#104Oh my god. This has got to be like 20 years in the making
I'd love to know the opportunity cost - billions?
Re: The <select> element can now be customized with CSS
#105Love the fact that Google auto translate of the page completely breaks the page https://imgur.com/7gfXRrm
Re: The <select> element can now be customized with CSS
#106Love the fact that Google auto translate of the page completely breaks the page https://imgur.com/7gfXRrm
This is also very much how the page looks for me in Firefox. If it can't fail without issues it's not an option I'd select.
Re: The <select> element can now be customized with CSS
#107Earlier quoted context omitted.
The prevalence of JS and JS backed components is due to the reluctance of browser vendors to introduce new HTML elements that everyone has been lobbying for in the same time period. By and large browser vendors for the longest time, even today still in many respects, repeatedly ignore pleas for more elements that cover common use cases. Even when they do arrive, they can be half baked - like dialog or details / summa…
> Even when they do arrive, they can be half baked - like dialog or details / summary - and that doesn’t help matters How are those half-baked? No smooth transition for details/summary, maybe? Dialog seems to work well enough with little to no javascript required: Warning: ... Dismiss My personal bugbear is the date/time input - FF doesn't even show a click element for time, you have to type in the time.
Forms have some special quirks inside of a dialog.
The biggest thing though, is for the life of me I don't understand why you can't open and close a dialog without JavaScript. There's no way to do it.
Re: The <select> element can now be customized with CSS
#108Re: The <select> element can now be customized with CSS
#109Earlier quoted context omitted.
Incremental improvement is great, but I do want to know what they're thinking here. They didn't mention it in the blog post that multiple isn't supported. Its perfectly fine if it is not supported right now. It would be great if they acknowledged that up front to set expectations accordingly. For instance, if its explicitly not supported, then I won't be left wondering if its a bug or a misunderstanding of the implem…
In the original dev blog from last year they mention it’s still a work in progress. https://developer.chrome.com/blog/rfc-customizable-select > Note: The multiple and size attributes on select ( and ) are not supported in appearance: base-select yet.
and now this as of Chrome 135 is shipped, and they didn't think it wise to include a back reference to this post, calling out what isn't supported?
They can and should communicate this is all.
Re: The <select> element can now be customized with CSS
#110Earlier quoted context omitted.
> Even when they do arrive, they can be half baked - like dialog or details / summary - and that doesn’t help matters How are those half-baked? No smooth transition for details/summary, maybe? Dialog seems to work well enough with little to no javascript required: Warning: ... Dismiss My personal bugbear is the date/time input - FF doesn't even show a click element for time, you have to type in the time.
There's some quirks with the API around open vs openModal if you aren't aware of the accessibility implications you may not even realize this is the case. Forms have some special quirks inside of a dialog. The biggest thing though, is for the life of me I don't understand why you can't open and close a dialog without JavaScript. There's no way to do it.
Open Dialog
...
Close Dialog
It would just make so much sense.