Skip to content

[EuiCard] layout breaks when horizontal and selectable #6345

@chandlerprall

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

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type
No fields configured for issues without a type.

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions