v0l / snort

Feature packed nostr web UI, Mirror of https://git.v0l.io/Kieran/snort
https://snort.social
MIT License
321 stars 125 forks source link

Fix: invisible <option> text in dark theme #454

Closed jiftechnify closed 1 year ago

jiftechnify commented 1 year ago

Description

In some environments, texts in <option>/<optgroup> elements are invisible if the dark theme is enabled. This problem occurs because the text color matches with the background color accidentally.

I confirmed that this problem occurred in:

Fixed it by setting background-color of these elements to --bg-color.

I confirmed that this fix won't break appearance in other environments, such as Safari/Chrome on macOS/iOS, Chrome on Android.

Screenshots

Before Fix

snort_options_in_dark_theme

After Fix

snort_options_in_dark_theme_fixed