Skip to content

[Docs] Horizontal card not working when image or footer is passed #4485

@joselcvarela

Description

@joselcvarela

Hey guys once again,

This is a documentation issue only.

In https://elastic.github.io/eui/#/display/card it says:

Horizontal layouts do not work with images, footers, or textAlign. Therefore, these properties will be ignored.

Even though, it is imperative that those properties does not exist as we can see here:

if (layout === 'horizontal') {
if (image || footer) {
throw new Error(
"EuiCard: layout = horizontal' cannot be used in conjunction with 'image', 'footer', or 'textAlign'."
);
}
}

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