-
Notifications
You must be signed in to change notification settings - Fork 4.3k
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
Try using shadows instead of borders on interface skeleton #42282
Conversation
Size Change: +27 B (0%) Total Size: 1.25 MB
ℹ️ View Unchanged
|
+10, the shadow version is noticeably easier on the eye. Light gray borders with dark backgrounds are a common design flaw that goes largely unpunished, I'm astonished to find someone who also notices that. |
This is delightful attention to details, thank you! I have a slight preference for what exists. The way the gray border changes hue from the list view and across the content in this example feels like noise, and makes it unclear where the content begins vs. what's user interface: I.e. if I had a minimal design with a powerful red 1px spot color border at the top of my website, perhaps as a loading or reading indicator or otherwise, presumably it would be covered by the faced border? This is just personal preference, not a blocker if others are over the moon. One thing that would need addressing, though, is high contrast screen modes (notably in Windows 10/11). In those modes, all shadows are removed, which would remove the appearance of borders across the interface. One solution we've employed in the past (you can search for "high contrast mode" in the codebase for examples) is to keep a transparent border next to the shadow border, because all such borders are made fully opaque in high contrast. |
Closing in favor of #61835. |
What?
Replaces gray interface skeleton borders with opaque shadows, which tightens up the UI when darker background colors are used.
Why?
This PR explores using box-shadows instead of borders on the interface skeleton, to tighten up the interface on sites that have darker background colors. Currently if the background color of the site is darker than the border, you end up with a slight distortion around the edges of the interface.
By using shadows, we can maintain an edge with lighter backgrounds, but on darker backgrounds (where the edge is already defined by the background color) it's sharp - instead of distorted.
How?
Replacing borders with box shadows.
Testing Instructions
Before
Notice the distortion around the gray borders against the colored background:
But there is distortion on lighter backgrounds:
Zoomed in:
After
No distortion around the edges of the interface:
Zoomed in:
Borders with lighter backgrounds still look as they do today: