Skip to content

[EuiText] Remove img's from styling #7356

Closed

Description

@julianrosado

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

[EuiText] adds a margin-bottom to a number of text elements and also img's . See styles. Presumably this is to account for img float's as described in EUI documentation.

This has an unintended side effect of add margin's to images that are added to things such as callouts, necessitating some style overrides.

While, admittedly, images in callouts are not a common feature, I would argue image floats in Kibana are an even rarer bird.

Describe the solution you'd like
Remove img 's from having their styles modified by EuiText

Describe alternatives you've considered
The one went with was a recommendation by @cee-chen to override the margin with !important styles.

Desired timeline
No specific deadline

Additional context
Reach out if you want an image!

Activity

  1. cee-chen commented on Nov 10, 2023

    @cee-chen
    Contributor

    Here's a quick CodeSandbox demonstrating the problem with EuiCallOut specifically: https://codesandbox.io/s/old-shadow-vlxpgt?file=/demo.tsx

  2. self-assigned this
    on Nov 14, 2023
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