Skip to content

[EuiBreadcrumb] Allow to configure max-width for truncation #7349

@Dosant

Description

@Dosant

Is your feature request related to a problem? Please describe.

In Kibana we'd like to increase the max-width of the first breadcrumb before it is truncated. The default max-width is pretty short and this is user generated title we don't have control over.
elastic/kibana#170758.

Currently the truncation max-width is static 160px

isTruncated: css`
${euiTextTruncate(mathWithUnits(euiTheme.size.base, (x) => x * 10))}
`,

We don't want to disable truncation completely

Describe the solution you'd like

Expose a maxWidth prop on EUIBreadcrumb

Describe alternatives you've considered

I think we could hack it with css on Kibana side

Desired timeline

If this doesn't look like a short term fix, please let us know, we could override with css short term.

Additional context

In case you'd have any other suggestions, would love to consider them

Metadata

Metadata

Assignees

No one assigned

    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