diff --git a/changelogs/upcoming/7360.md b/changelogs/upcoming/7360.md new file mode 100644 index 00000000000..18056dd00c7 --- /dev/null +++ b/changelogs/upcoming/7360.md @@ -0,0 +1 @@ +- Updated `EuiText` to no longer set any opinionated styles on child `` tags - use `EuiImage` for image display within text instead diff --git a/src/components/text/__snapshots__/text.styles.test.ts.snap b/src/components/text/__snapshots__/text.styles.test.ts.snap index 5fa6844096e..f4937379d57 100644 --- a/src/components/text/__snapshots__/text.styles.test.ts.snap +++ b/src/components/text/__snapshots__/text.styles.test.ts.snap @@ -81,7 +81,6 @@ exports[`euiTextStyles sizes m 1`] = ` p, dl, blockquote, - img, pre, > ul, > ol { @@ -243,7 +242,6 @@ exports[`euiTextStyles sizes relative 1`] = ` p, dl, blockquote, - img, pre, > ul, > ol { @@ -390,7 +388,6 @@ exports[`euiTextStyles sizes s 1`] = ` p, dl, blockquote, - img, pre, > ul, > ol { @@ -537,7 +534,6 @@ exports[`euiTextStyles sizes xs 1`] = ` p, dl, blockquote, - img, pre, > ul, > ol { diff --git a/src/components/text/text.styles.ts b/src/components/text/text.styles.ts index 0bcc68b2c45..fbafc8bb87c 100644 --- a/src/components/text/text.styles.ts +++ b/src/components/text/text.styles.ts @@ -144,7 +144,6 @@ const euiScaleText = ( p, dl, blockquote, - img, pre, > ul, > ol { @@ -249,11 +248,6 @@ export const euiTextStyles = (euiThemeContext: UseEuiTheme) => { ${euiLinkCSS(euiThemeContext)} } - img { - display: block; - ${logicalCSS('max-width', '100%')} - } - ul { list-style: disc; }