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

Add additional background for acrylic popups if backdrop-filter is unsupported #8671

Closed
wants to merge 1 commit into from
Closed

Add additional background for acrylic popups if backdrop-filter is unsupported #8671

wants to merge 1 commit into from

Conversation

pixeldesu
Copy link
Contributor

@pixeldesu pixeldesu commented May 14, 2022

What

This PR adds an additional background layer if the backdrop-filter is not supported.

This fixes #7996

Screenshot:

Firefox 100.0 on Windows 11, no backdrop-filter support:
image

Microsoft Edge 101.0.1210.39 on Windows 11, backdrop-filter support
image

Why

Reaction or chart popups are hardly readable on Firefox.

Additional info (optional)

This implementation is somewhat of a "hack". The clean solution would be introducing an additional theme color variable that generates a less transparent background color variant, but I'm not sure what the effects of adding/changing theme colors would be for...all the created themes, basically.

So, for clarity, this implementation just adds an :after element via CSS only if backdrop-filter is not supported. It takes up the height/width of the element, places itself behind it and uses var(--bg) at 75% transparency.

Copy link
Contributor

@Johann150 Johann150 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

👍

@Johann150 Johann150 added the packages/frontend Client side specific issue/PR label Jun 11, 2022
Copy link
Contributor

@ThatOneCalculator ThatOneCalculator left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Works great on https://stop.voring.me with Firefox 101.0.1 on Linux

@tamaina tamaina closed this Jan 16, 2023
@tamaina
Copy link
Contributor

tamaina commented Jan 16, 2023

Closing because of the conflict.

@pixeldesu pixeldesu deleted the fix/acrylic-firefox branch January 17, 2023 03:49
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
packages/frontend Client side specific issue/PR
Projects
None yet
Development

Successfully merging this pull request may close these issues.

reaction & renote tooltip breaks
4 participants