github: shadowy octopus with the head of a robot, emblazoned with the Dreamwidth swirl (Default)
github ([personal profile] github) wrote in [site community profile] changelog2019-10-19 07:05 pm

[dreamwidth/dw-free] 44bc50: [#2536] Fix background color for "fancy-select" me...

Branch: refs/heads/master
Home: https://github.com/dreamwidth/dw-free
Commit: 44bc50f40182b501b287c8d8cc935f6a92d68141
https://github.com/dreamwidth/dw-free/commit/44bc50f40182b501b287c8d8cc935f6a92d68141
Author: Nick Fagerlund <nick.fagerlund@gmail.com>
Date: 2019-10-19 (Sat, 19 Oct 2019)

Changed paths:
M htdocs/scss/components/fancy-select.scss

Log Message:
-----------
[#2536] Fix background color for "fancy-select" menus on Windows

The background color of a `select` element is inherited by the menu it opens
when activated.

On most platform/browser combos, setting the background to "none" seems to make
both the menus and their text use the platform default styling, but in Chrome
and Edge on Windows, it unsets the background and doesn't affect the style of
the text. On dark themes like Gradation, that makes the menu white-on-white.

Since the select is invisible anyway via `opacity: 0`, I don't see any downside
to leaving out the `background: none` rule.

Post a comment in response:

This account has disabled anonymous posting.
If you don't have an account you can create one now.
HTML doesn't work in the subject.
More info about formatting

If you are unable to use this captcha for any reason, please contact us by email at support@dreamwidth.org