twenty icon indicating copy to clipboard operation
twenty copied to clipboard

Edit opacity from 0.8 to 0.5 and remove forBackdropFilter

Open jss475 opened this issue 9 months ago • 7 comments

Update for #4836

  • edit primary and secondary transparency opacities from 0.8 to 0.5
  • remove forBackdropFilter from themes
  • update components referencing transparency/primary and transparency/secondary to have the following backdrop-filter: blur(12px) saturate(200%) contrast(50%) brightness(130%)

jss475 avatar May 04 '24 00:05 jss475

Thanks a lot @jss475! Your PR looks great. But I think we need to fix dark mode, it becomes even more obvious now with the changes you made

@Bonapara can you confirm adjustments we should make to dark mode?

After: Screenshot 2024-05-04 at 15 47 45 Screenshot 2024-05-04 at 15 48 59 Screenshot 2024-05-04 at 15 51 04

Before: Screenshot 2024-05-04 at 15 48 17 Screenshot 2024-05-04 at 15 49 25

FelixMalfait avatar May 04 '24 13:05 FelixMalfait

Dark mode should look like this:

CleanShot 2024-05-06 at 10 45 55

To do:

  • Remove the hardcoded background on search inputs that makes it look darker (Set background: transparent).
  • Remove the border-top on the input when It's at the top of the menu:

CleanShot 2024-05-06 at 10 48 44

  • Make the input 36px instead of 38px+ (with the border)

Current behavior ↓

CleanShot 2024-05-06 at 10 54 12

Bonapara avatar May 06 '24 08:05 Bonapara

Would you mind handling those changes in the PR @jss475 🙏? Thanks a lot

FelixMalfait avatar May 06 '24 09:05 FelixMalfait

Yup you got it @FelixMalfait!

jss475 avatar May 06 '24 14:05 jss475

@Bonapara I hardcoded the background for the ObjectFilterDropdownFilterSelect component to have background: transparent, made border-top: none, and edited the height to be 36px.

Should I have conditionally made the background transparent only in dark mode and have a different conditional to make border-top none when its at the top position?

Also, is the intended behavior to have a small padding on the bottom if there is no text that matches the filter text?

Screenshot 2024-05-06 at 4 48 34 PM

jss475 avatar May 06 '24 20:05 jss475

Hi @jss475,

I think background:transparent should be in both light and dark mode. Also, can you check if we need to add a border-bottom to the menu header if you remove the border-top on the search?

CleanShot 2024-05-07 at 10 09 22

Regarding the padding, it should be 8px left and right, and the height should be fixed to 36px:

You can inspect this component:

https://www.figma.com/file/xt8O9mFeLl46C5InWwoMrN/Twenty?type=design&node-id=2979-174004&mode=design&t=XnegKqWtGbRaLmeE-11

Thanks!

Bonapara avatar May 07 '24 08:05 Bonapara

Hey @Bonapara!

You got it! I had to add a bottom-border for the menu header. I've updated it with the latest commit.

Thanks!

jss475 avatar May 07 '24 19:05 jss475