Skip to content

Commit

Permalink
Improving EuiText image styles
Browse files Browse the repository at this point in the history
  • Loading branch information
elizabetdev committed Jun 28, 2022
1 parent c801e40 commit cba8d5a
Show file tree
Hide file tree
Showing 6 changed files with 9 additions and 7 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
exports[`EuiDataGridCell componentDidUpdate handles the cell popover by forwarding the cell's DOM node and contents to the parent popover context 1`] = `
Array [
<div
class="euiText emotion-euiText-m"
class="euiText css-qqidm-euiText-m"
>
<div>
<button
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,7 @@ Array [
class="euiModalBody__overflow"
>
<div
class="euiText emotion-euiText-m"
class="euiText css-qqidm-euiText-m"
data-test-subj="confirmModalBodyText"
>
<p>
Expand Down
4 changes: 2 additions & 2 deletions src/components/text/__snapshots__/text.test.tsx.snap
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
exports[`EuiText is rendered 1`] = `
<div
aria-label="aria-label"
class="euiText testClass1 testClass2 emotion-euiText-m"
class="euiText testClass1 testClass2 css-qqidm-euiText-m"
data-test-subj="test subject string"
>
<p>
Expand Down Expand Up @@ -39,7 +39,7 @@ exports[`EuiText props grow false 1`] = `
exports[`EuiText props style 1`] = `
<div
aria-label="aria-label"
class="euiText testClass1 testClass2 emotion-euiText-m-euiTextColor-customColor"
class="euiText testClass1 testClass2 css-o9ff8-euiText-m-euiTextColor-customColor"
data-test-subj="test subject string"
style="background-color:#000;color:#fff"
>
Expand Down
2 changes: 1 addition & 1 deletion src/components/text/text.styles.ts
Original file line number Diff line number Diff line change
Expand Up @@ -206,7 +206,7 @@ export const euiTextStyles = (euiThemeContext: UseEuiTheme) => {
img {
display: block;
width: 100%;
max-width: 100%;
}
ul {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

exports[`EuiTreeView is rendered 1`] = `
<div
class="euiText euiTreeView__wrapper emotion-euiText-m"
class="euiText euiTreeView__wrapper css-qqidm-euiText-m"
>
<p
class="emotion-euiScreenReaderOnly"
Expand Down Expand Up @@ -44,7 +44,7 @@ exports[`EuiTreeView is rendered 1`] = `
id="euiTreeView_generated-id_item_one"
>
<div
class="euiText euiTreeView__wrapper emotion-euiText-m"
class="euiText euiTreeView__wrapper css-qqidm-euiText-m"
>
<ul
aria-label="Item One child of aria-label"
Expand Down
2 changes: 2 additions & 0 deletions upcoming_changelogs/5969.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
- Updated styles for the `EuiText.img` to prevent them from unnecessarily growing full width

**CSS-in-JS**

- Converted `EuiImage` to Emotion

0 comments on commit cba8d5a

Please sign in to comment.