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

Remove dark-mode specific shadow height #377

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

jacobparis
Copy link

The shadow has an explicit 0.5em height in dark mode, but not in light mode, which falls back to the 0.25em set upstream in the cascade.

If we want to maintain the height in dark mode, we should also set it to be the same in light mode too

image

image

When the user rapidly changes between dark and light mode, the layout shifts noticeably. Try holding shift+D on the docs page to see it in effect

The shadow has an explicit 0.5em height in dark mode, but not in light mode, which falls back to the 0.25em set upstream in the cascade.

When the user rapidly changes between dark and light mode, the layout shifts noticeably. Try holding shift+D on [the docs page](https://developers.cloudflare.com/images/cloudflare-images/serve-images) to see it in effect
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.

1 participant