Skip to content
This repository was archived by the owner on Jul 19, 2022. It is now read-only.

Fix Safari Finder render issue #239

Merged
merged 1 commit into from
Oct 6, 2021
Merged

Conversation

hojberg
Copy link
Member

@hojberg hojberg commented Oct 6, 2021

Overview

In Safari (and perhaps other browsers?) transparent when used in
gradients are rendered with a strange dark fade instead of actually
being transparent. Using rgba with a 0 alpha fixes this. Specifically
this was noticed in the Finder (there's a truncation fade effect on the
right hand side), but could be else where in the app as well.

The fix was to add a new css variable: --color-transparent that
evaluates to rgba(255, 255, 255, 0) and use that in place of
transparent everywhere.

Before

After

Screen Shot 2021-10-06 at 10 17 38

Fixes #233

In Safari (and perhaps other browsers?) `transparent` when used in
gradients are rendered with a strange dark fade instead of actually
being transparent. Using rgba with a 0 alpha fixes this. Specifically
this was noticed in the Finder (there's a truncation fade effect on the
right hand side), but could be else where in the app as well.

The fix was to add a new css variable: `--color-transparent` that
evaluates to `rgba(255, 255, 255, 0)` and use that in place of
`transparent` everywhere.
@hojberg hojberg requested a review from pchiusano October 6, 2021 14:18
@hojberg hojberg merged commit 85e016b into main Oct 6, 2021
@hojberg hojberg deleted the fix-safari-transparent-issue branch October 6, 2021 14:20
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Safari rendering bug: Finder has a strange shadow
2 participants