skeleton icon indicating copy to clipboard operation
skeleton copied to clipboard

`select` menu contrast is not accessible on Firefox

Open Hugos68 opened this issue 2 months ago • 3 comments

Current Behavior

Image

Expected Behavior

No response

Steps To Reproduce

No response

Link to Reproduction / Stackblitz

No response

Environment Information

No response

More Information

No response

Hugos68 avatar Oct 19 '25 10:10 Hugos68

A fix for this has been identified, but it may result in a breaking change for users and will need to come as part of a major release.

.select,
.input,
.textarea,
.input-group {
	background-color: var(--color-surface-50-950);
	color: var(--color-surface-950-50);
}

By applying a background color and text color on the <select> itself, rather than transparent, results in a much better display for Windows-base browsers. Especially Firefox for Windows:

Image

As such, we're going to add a note able this fix in the Forms docs, then apply the fix permanently in the next major release of Skeleton.

endigo9740 avatar Nov 12 '25 17:11 endigo9740

That does solve the problem on Firefox on Windows but Chromium based browser still show incorrect style

Image

absktoday avatar Dec 06 '25 07:12 absktoday

@absktoday yeah we're still not completely satisfied with this. But we're prepping to go through a big review of our style implementation in our next major release. And we'll plan to revisit this then. Our primary goal with this issue was to get the select back in a working state. It was pretty busted after recent browser changes triggered the original issues reported here.

We'll need to use techniques like this to affect Chrome-based browsers: https://developer.chrome.com/blog/a-customizable-select

But given how new this feature was, we didn't want to fully commit yet. Give it a bit more time for browser adoption to move forward.

If it's something you need immediately, consider creating your own alternative to the .select class that includes this.

endigo9740 avatar Dec 06 '25 15:12 endigo9740