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

[Bugfix] Make image backgrounds transparent #259

Merged
merged 2 commits into from
Mar 14, 2024
Merged

[Bugfix] Make image backgrounds transparent #259

merged 2 commits into from
Mar 14, 2024

Conversation

seshrs
Copy link
Member

@seshrs seshrs commented Mar 14, 2024

While optimizing the spec of EECS 280's new Project 4 (Editor) for dark mode images, I noticed that MacOS screenshots were always showing with a white background. It turns out that the base Primer CSS styles always render images with a white background!

Since Primer Spec manages the background of the page, we should just let images with transparency blend with the page's background color.

Before After
Screen Shot 2024-03-14 at 3 45 41 PM Screen Shot 2024-03-14 at 3 45 58 PM

@seshrs seshrs added the semver/patch Pull Request proposes "patch" change label Mar 14, 2024
Copy link
Contributor

The spec from this PR is available at https://preview.sesh.rs/previews/eecs485staff/primer-spec/259/.

(Available until Sat Apr 13 2024.)

@seshrs seshrs merged commit 92dead2 into develop Mar 14, 2024
3 checks passed
@seshrs seshrs deleted the image-fix branch March 14, 2024 23:04
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
semver/patch Pull Request proposes "patch" change
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant