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

[EuiCard] layout breaks when horizontal and selectable #6345

Closed
chandlerprall opened this issue Nov 5, 2022 · 0 comments · Fixed by #6348
Closed

[EuiCard] layout breaks when horizontal and selectable #6345

chandlerprall opened this issue Nov 5, 2022 · 0 comments · Fixed by #6348
Assignees
Labels

Comments

@chandlerprall
Copy link
Contributor

Found in elastic/kibana#141279 (comment) and easily reproducible in the Card > Selectable example by adding layout="horizontal" to any card.

I do not have enough flexbox intuition to propose a solution. This is the previous scss:

&.euiCard--hasIcon {
flex-direction: row;
// sass-lint:disable-block no-important
align-items: flex-start !important; /* 3 */
.euiCard__top,
.euiCard__content {
width: auto; // Makes sure the top shrinks and the content grows
margin-top: 0;
}
.euiCard__top .euiCard__icon {
margin-top: 0;
margin-right: $euiSize;
}
}

Was

Now

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants