Skip to content

[EuiCard] layout breaks when horizontal and selectable #6345

Closed

Description

@chandlerprall

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

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions