Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix(bridge-ui-v2): Fix dialogs being offset #14624

Merged
merged 5 commits into from
Sep 1, 2023

Conversation

KorbinianK
Copy link
Contributor

@KorbinianK KorbinianK commented Aug 31, 2023

Very interesting bug:

The CSS rule backdrop-filter: (filter: as well) on a parent, forces all child elements to be within the bounds of the parent.

This caused dialogs etc to be cut off and centered despite no CSS rule specifying this.

It only happend on dark mode, as we only use the "glass" effect on dark mode which has the filter.

Workaround:

apply the style to a pseudo-element..

Before:
before

After:
after

@vercel
Copy link

vercel bot commented Aug 31, 2023

The latest updates on your projects. Learn more about Vercel for Git ↗︎

1 Ignored Deployment
Name Status Preview Comments Updated (UTC)
bridge-ui-v2 ⬜️ Ignored (Inspect) Visit Preview Sep 1, 2023 6:56am

@KorbinianK KorbinianK changed the title fix(bridge-ui-v2): fix(bridge-ui-v2): Fix dialogs being offset Aug 31, 2023
@dantaik
Copy link
Contributor

dantaik commented Aug 31, 2023

@KorbinianK @je4nt0nic is the background too bright in dark mode?

@KorbinianK
Copy link
Contributor Author

@KorbinianK @je4nt0nic is the background too bright in dark mode?

For the dialogs you mean? It's according to the design, but yeah I guess if you have large popups like that, it might be too bright. Any suggestions @je4nt0nic ?

@KorbinianK KorbinianK added this pull request to the merge queue Sep 1, 2023
Merged via the queue into main with commit 2367c89 Sep 1, 2023
7 checks passed
@KorbinianK KorbinianK deleted the fix/bridge-ui-v2--dialog-offset branch September 1, 2023 06:58
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants