brave / brave-browser

Brave browser for Android, iOS, Linux, macOS, Windows.
https://brave.com
Mozilla Public License 2.0
17.16k stars 2.23k forks source link

Dark theme causes filters to look disabled #37173

Closed srirambv closed 3 months ago

srirambv commented 4 months ago

Description

Dark theme causes filters to look disabled

Steps to Reproduce

  1. Set browser theme to dark
  2. Open Wallet and click on portfolio filters
  3. Select any dropdown, looks disabled but can still select to change filters

Actual result:

brave_FhtRY5GBl9 brave_hdlpqA9gHF

Expected result:

Better looking UI on dark theme

Reproduces how often:

Easy

Brave version (brave://version info)

All

Version/Channel Information:

Other Additional Information:

Miscellaneous Information:

cc: @kleantzogu @Douglashdaniel @josheleonard

kleantzogu commented 4 months ago

Here is how it should look: Figma Link: https://www.figma.com/file/muVcmcu4RFNu0LkXe9VRDl/Wallet-2.0?type=design&node-id=16059-210815&mode=design&t=DyKrCOALIVQlDYw5-4

Screenshot: Filters droprown

Douglashdaniel commented 4 months ago

I think this is a leo issue since this is using the Dropdown component directly from @brave/leo/react/dropdown. cc: @fallaciousreasoning @petemill

fallaciousreasoning commented 3 months ago

This looks like it could be using the colors from the light theme - if you add a data-theme="dark" to the body (or any parent element of the dropdown) does it look better?

This is how the component should look in dark mode: image

srirambv commented 2 months ago

Verification passed on

Brave 1.67.92 Chromium: 125.0.6422.76 (Official Build) beta (64-bit)
Revision d751d2edf40b466560aaeecc4c4919041f41c20d
OS Windows 11 Version 23H2 (Build 22631.3593)

https://github.com/brave/brave-browser/assets/17010094/6a59d26e-162d-43b6-a037-7e4cd5ea51ea