twentyhq / twenty

Building a modern alternative to Salesforce, powered by the community.
https://twenty.com
Other
17.57k stars 2.07k forks source link

Add Background Blur to Input Fields in Edit Popups #5644

Open Bonapara opened 4 months ago

Bonapara commented 4 months ago

Current behavior

Some input fields lack a backdrop filter and have a plain background color.

Current: CleanShot 2024-05-29 at 10 52 59

Desired: CleanShot 2024-03-12 at 17 20 10

Desired Behavior

Add the background blur to every field edit popup

backdrop-filter: blur(12px) saturate(200%) contrast(50%) brightness(130%)
background: rgba(252, 252, 252, 0.5)

Fields to update (but do check if I missed any):

CleanShot 2024-05-29 at 10 50 59

greptile-apps[bot] commented 4 months ago

Disclaimer: This comment was automatically generated with AI. It can give some useful hints as to where to look for, but sometimes it can also give very inaccurate answers so takes this with a pinch of salt :).

To add the background blur to input fields in edit popups, update the styles in the relevant overlay components. Refer to OverlayBackground.ts for the backdrop filter and background styles. Specifically, add the following CSS to the input fields in the respective components:

backdrop-filter: blur(12px) saturate(200%) contrast(50%) brightness(130%);
background: rgba(252, 252, 252, 0.5);

Update the following components:

References

shyamsundertard commented 1 week ago

@Bonapara and @charlesBochet I'd like to work on this. Could you assign it to me, please?

Bonapara commented 6 days ago

Sure @shyamsundertard, thanks for contributing!

charlesBochet commented 6 days ago

@shyamsundertard FYI backdrop filters cannot be superposed in Chrome only one child should set it, this might be the cause of the issue

shyamsundertard commented 6 days ago

@shyamsundertard FYI backdrop filters cannot be superposed in Chrome only one child should set it, this might be the cause of the issue

Ok I'll take care about it.