-
Notifications
You must be signed in to change notification settings - Fork 26
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
ntp: prevent gradients bleeding through #1382
Conversation
✅ Deploy Preview for content-scope-scripts ready!
To edit notification comments on pull requests, go to your Netlify site configuration. |
Temporary Branch UpdateThe temporary branch has been updated with the latest changes. Below are the details:
Please use the above install command to update to the latest version. |
[Beta] Generated file diffTime updated: Thu, 09 Jan 2025 11:07:26 GMT Integration
File has changed Windows
File has changed Apple
File has changed |
document.body.dataset.backgroundKind = background.kind; | ||
let nextBodyBackground = ''; | ||
|
||
if (background.kind === 'gradient') { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Just out of curiosity, was there a technical reason to not go with a switch
or just personal preference?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
👍
Asana Task/Github Issue: https://app.asana.com/0/1201141132935289/1209098832765829/f
Description
Now, I’m always setting a background color on the body, which has a nice effect of solving both of the cases above.
Testing Steps
Checklist
Please tick all that apply: