cloudflare-docs-engine icon indicating copy to clipboard operation
cloudflare-docs-engine copied to clipboard

Remove dark-mode specific shadow height

Open jacobparis opened this issue 3 years ago • 0 comments

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

jacobparis avatar Dec 25 '21 22:12 jacobparis