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

Update styles on compact cards #2412

Open
wants to merge 2 commits into
base: main
Choose a base branch
from

Conversation

jordankoschei-okta
Copy link
Contributor

This PR brings the style of the compact variant of DataCards (cards within DataView) into conformity with the Figma mocks and suggestions from Alex and Nick.

The biggest change, in terms of scope, is that the card content now changes alignment depending on how much content is present (only in the compact variant). If there's just a title, for example, it's centered alongside the image; if there's a title + description + overline + button, however, it's aligned to the top of the image. This sounds complex, but looks visually correct in practice:

Screenshot 2024-11-08 at 3 38 07 PM Screenshot 2024-11-08 at 3 38 39 PM

@jordankoschei-okta jordankoschei-okta requested a review from a team as a code owner November 8, 2024 20:38
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.

2 participants