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

Changed App shadow from filter to box-shadow #81

Merged
merged 1 commit into from
Sep 4, 2022
Merged

Conversation

neonfuz
Copy link
Collaborator

@neonfuz neonfuz commented Sep 4, 2022

For #70

Lighthouse says the labels directly on the background have too low of a contrast ratio. The text is near white, the background is #0008. I think this is failing because the transparency is too low to guarantee contrast with any arbitrary background.

Before the PR, the App's filter: box-shadow was drawing behind the transparent background, darkening the App. Lighthouse doesn't understand this, or assumes some browsers won't have support so it ignores filters. Replacing the filter with a box-shadow allows us to darken the background color with almost no visual change.

allowed darkening of background color, to improve lighthouse score
@netlify
Copy link

netlify bot commented Sep 4, 2022

Deploy Preview for fazeoid ready!

Name Link
🔨 Latest commit 8de9299
🔍 Latest deploy log https://app.netlify.com/sites/fazeoid/deploys/63151528c3387e0008d69b80
😎 Deploy Preview https://deploy-preview-81--fazeoid.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.

To edit notification comments on pull requests, go to your Netlify site settings.

@neonfuz
Copy link
Collaborator Author

neonfuz commented Sep 4, 2022

Here's lighthouse scores. Control is #79 deploy preview because production has different hosting which affect scores.

Control:
Screenshot from 2022-09-04 16-17-25
This PR:
Screenshot from 2022-09-04 16-17-34
Production:
Screenshot from 2022-09-04 16-19-45

@44100hertz 44100hertz merged commit b803a2e into master Sep 4, 2022
@neonfuz neonfuz deleted the box-shadow branch September 5, 2022 03:25
44100hertz pushed a commit that referenced this pull request Mar 6, 2023
allowed darkening of background color, to improve lighthouse score
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants