Skip to content
This repository has been archived by the owner on Jan 20, 2022. It is now read-only.

Tighten up card drop shadow #295

Merged
merged 3 commits into from
Jan 8, 2021
Merged

Conversation

jglovier
Copy link
Contributor

@jglovier jglovier commented Jan 8, 2021

The card component's default drop shadow is a bit excessive, like to the point of distracting when there are multiple cards stacked closely together on a page like we have in several views (graph index, integrations, settings, etc). This PR tweaks the shadow just a tiny bit to help make it a bit more subtle.

Drop shadows are helpful to convey depth, and depth is helpful to convey content hierarchy via z-index, or simply visual interest. In this case, we get plenty of the hierarchy and associative grouping simply from the card itself being lighter than page background, and the card border. The shadow does help bring some sense of the visual metaphor, but it doesn't need to be quite as pronounced as it is.

Note: I used a version like this on my design mocks for the cards on the Schema L2s and it got implemented that way there.

Before After
image image
📦 Published PR as canary version: 8.9.0-canary.295.7387.0

✨ Test out this PR locally via:

npm install @apollo/space-kit@8.9.0-canary.295.7387.0
# or 
yarn add @apollo/space-kit@8.9.0-canary.295.7387.0

@jglovier jglovier added the minor Increment the minor version when merged label Jan 8, 2021
@jglovier jglovier self-assigned this Jan 8, 2021
@justinanastos justinanastos enabled auto-merge (squash) January 8, 2021 14:06
@justinanastos justinanastos merged commit 35f8bd1 into main Jan 8, 2021
@justinanastos justinanastos deleted the jglovier/card-shadow-tweak branch January 8, 2021 14:10
@apollo-bot2
Copy link
Collaborator

🚀 PR was released in v8.9.0 🚀

@apollo-bot2 apollo-bot2 added the released This issue/pull request has been released. label Jan 8, 2021
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
minor Increment the minor version when merged released This issue/pull request has been released.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants