Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Changed EuiIcon mock to render as span instead of div #4099

Merged
merged 2 commits into from
Oct 2, 2020
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
## [`master`](https://github.com/elastic/eui/tree/master)

- Added `max-width: 100%` to `EuiKeyPadMenu` to allow it to shrink when its container is smaller than its fixed width ([ #4092](https://github.com/elastic/eui/pull/4092))
- Changed `EuiIcon` test mock to render as `span` instead of `div` ([#4099](https://github.com/elastic/eui/pull/4099))

**Bug fixes**

Expand Down
22 changes: 11 additions & 11 deletions src/components/accordion/__snapshots__/accordion.test.tsx.snap
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ exports[`EuiAccordion behavior closes when clicked twice 1`] = `
size="m"
type="arrowRight"
>
<div
<span
className="euiAccordion__icon"
data-euiicon-type="arrowRight"
size="m"
Expand Down Expand Up @@ -92,7 +92,7 @@ exports[`EuiAccordion behavior opens when clicked once 1`] = `
size="m"
type="arrowRight"
>
<div
<span
className="euiAccordion__icon euiAccordion__icon-isOpen"
data-euiicon-type="arrowRight"
size="m"
Expand Down Expand Up @@ -141,7 +141,7 @@ exports[`EuiAccordion is rendered 1`] = `
<span
class="euiAccordion__iconWrapper"
>
<div
<span
class="euiAccordion__icon"
data-euiicon-type="arrowRight"
/>
Expand Down Expand Up @@ -217,7 +217,7 @@ exports[`EuiAccordion props arrowDisplay right is rendered 1`] = `
<span
class="euiAccordion__iconWrapper"
>
<div
<span
class="euiAccordion__icon"
data-euiicon-type="arrowRight"
/>
Expand Down Expand Up @@ -261,7 +261,7 @@ exports[`EuiAccordion props buttonContent is rendered 1`] = `
<span
class="euiAccordion__iconWrapper"
>
<div
<span
class="euiAccordion__icon"
data-euiicon-type="arrowRight"
/>
Expand Down Expand Up @@ -305,7 +305,7 @@ exports[`EuiAccordion props buttonContentClassName is rendered 1`] = `
<span
class="euiAccordion__iconWrapper"
>
<div
<span
class="euiAccordion__icon"
data-euiicon-type="arrowRight"
/>
Expand Down Expand Up @@ -345,7 +345,7 @@ exports[`EuiAccordion props extraAction is rendered 1`] = `
<span
class="euiAccordion__iconWrapper"
>
<div
<span
class="euiAccordion__icon"
data-euiicon-type="arrowRight"
/>
Expand Down Expand Up @@ -392,7 +392,7 @@ exports[`EuiAccordion props forceState is rendered 1`] = `
<span
class="euiAccordion__iconWrapper"
>
<div
<span
class="euiAccordion__icon"
data-euiicon-type="arrowRight"
/>
Expand Down Expand Up @@ -436,7 +436,7 @@ exports[`EuiAccordion props initialIsOpen is rendered 1`] = `
<span
class="euiAccordion__iconWrapper"
>
<div
<span
class="euiAccordion__icon euiAccordion__icon-isOpen"
data-euiicon-type="arrowRight"
/>
Expand Down Expand Up @@ -480,7 +480,7 @@ exports[`EuiAccordion props isLoading is rendered 1`] = `
<span
class="euiAccordion__iconWrapper"
>
<div
<span
class="euiAccordion__icon"
data-euiicon-type="arrowRight"
/>
Expand Down Expand Up @@ -531,7 +531,7 @@ exports[`EuiAccordion props isLoadingMessage is rendered 1`] = `
<span
class="euiAccordion__iconWrapper"
>
<div
<span
class="euiAccordion__icon"
data-euiicon-type="arrowRight"
/>
Expand Down
6 changes: 3 additions & 3 deletions src/components/badge/__snapshots__/badge.test.tsx.snap
Original file line number Diff line number Diff line change
Expand Up @@ -307,7 +307,7 @@ exports[`EuiBadge props iconSide left is rendered 1`] = `
>
Content
</span>
<div
<span
class="euiBadge__icon"
data-euiicon-type="user"
/>
Expand All @@ -328,7 +328,7 @@ exports[`EuiBadge props iconSide right is rendered 1`] = `
>
Content
</span>
<div
<span
class="euiBadge__icon"
data-euiicon-type="user"
/>
Expand All @@ -349,7 +349,7 @@ exports[`EuiBadge props iconType is rendered 1`] = `
>
Content
</span>
<div
<span
class="euiBadge__icon"
data-euiicon-type="user"
/>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ exports[`CollapsedItemActions render 1`] = `
data-test-subj="euiCollapsedItemActionsButton"
type="button"
>
<div
<span
aria-hidden="true"
class="euiButtonIcon__icon"
data-euiicon-type="boxesHorizontal"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -406,7 +406,7 @@ exports[`EuiInMemoryTable behavior pagination 1`] = `
size="m"
type="arrowDown"
>
<div
<span
className="euiButtonContent__icon"
data-euiicon-type="arrowDown"
size="m"
Expand Down Expand Up @@ -486,7 +486,7 @@ exports[`EuiInMemoryTable behavior pagination 1`] = `
size="m"
type="arrowLeft"
>
<div
<span
aria-hidden="true"
className="euiButtonIcon__icon"
data-euiicon-type="arrowLeft"
Expand Down Expand Up @@ -698,7 +698,7 @@ exports[`EuiInMemoryTable behavior pagination 1`] = `
size="m"
type="arrowRight"
>
<div
<span
aria-hidden="true"
className="euiButtonIcon__icon"
data-euiicon-type="arrowRight"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ exports[`EuiBreadcrumbs is rendered 1`] = `
type="button"
>
<div
<span
data-euiicon-type="arrowDown"
/>
</button>
Expand Down Expand Up @@ -174,7 +174,7 @@ exports[`EuiBreadcrumbs props max renders 1 item 1`] = `
type="button"
>
<div
<span
data-euiicon-type="arrowDown"
/>
</button>
Expand Down Expand Up @@ -310,7 +310,7 @@ exports[`EuiBreadcrumbs props responsive is rendered 1`] = `
type="button"
>
<div
<span
data-euiicon-type="arrowDown"
/>
</button>
Expand Down Expand Up @@ -385,7 +385,7 @@ exports[`EuiBreadcrumbs props responsive is rendered as false 1`] = `
type="button"
>
<div
<span
data-euiicon-type="arrowDown"
/>
</button>
Expand Down Expand Up @@ -440,7 +440,7 @@ exports[`EuiBreadcrumbs props responsive is rendered with custom breakpoints 1`]
type="button"
>
<div
<span
data-euiicon-type="arrowDown"
/>
</button>
Expand Down Expand Up @@ -496,7 +496,7 @@ exports[`EuiBreadcrumbs props truncate as false is rendered 1`] = `
type="button"
>
<div
<span
data-euiicon-type="arrowDown"
/>
</button>
Expand Down
6 changes: 3 additions & 3 deletions src/components/button/__snapshots__/button.test.tsx.snap
Original file line number Diff line number Diff line change
Expand Up @@ -183,7 +183,7 @@ exports[`EuiButton props iconSide left is rendered 1`] = `
<span
class="euiButtonContent euiButton__content"
>
<div
<span
class="euiButtonContent__icon"
data-euiicon-type="user"
/>
Expand All @@ -204,7 +204,7 @@ exports[`EuiButton props iconSide right is rendered 1`] = `
<span
class="euiButtonContent euiButtonContent--iconRight euiButton__content"
>
<div
<span
class="euiButtonContent__icon"
data-euiicon-type="user"
/>
Expand All @@ -225,7 +225,7 @@ exports[`EuiButton props iconType is rendered 1`] = `
<span
class="euiButtonContent euiButton__content"
>
<div
<span
class="euiButtonContent__icon"
data-euiicon-type="user"
/>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ exports[`EuiButtonContent props iconSide is rendered 1`] = `
<span
class="euiButtonContent euiButtonContent--iconRight"
>
<div
<span
class="euiButtonContent__icon"
data-euiicon-type="bolt"
/>
Expand All @@ -36,7 +36,7 @@ exports[`EuiButtonContent props iconType is rendered 1`] = `
<span
class="euiButtonContent"
>
<div
<span
class="euiButtonContent__icon"
data-euiicon-type="bolt"
/>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -183,7 +183,7 @@ exports[`EuiButtonEmpty props iconSide left is rendered 1`] = `
<span
class="euiButtonContent euiButtonEmpty__content"
>
<div
<span
class="euiButtonContent__icon"
data-euiicon-type="user"
/>
Expand All @@ -204,7 +204,7 @@ exports[`EuiButtonEmpty props iconSide right is rendered 1`] = `
<span
class="euiButtonContent euiButtonContent--iconRight euiButtonEmpty__content"
>
<div
<span
class="euiButtonContent__icon"
data-euiicon-type="user"
/>
Expand All @@ -225,7 +225,7 @@ exports[`EuiButtonEmpty props iconType is rendered 1`] = `
<span
class="euiButtonContent euiButtonEmpty__content"
>
<div
<span
class="euiButtonContent__icon"
data-euiicon-type="user"
/>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -97,7 +97,7 @@ exports[`EuiButtonIcon props iconType is rendered 1`] = `
class="euiButtonIcon euiButtonIcon--primary"
type="button"
>
<div
<span
aria-hidden="true"
class="euiButtonIcon__icon"
data-euiicon-type="user"
Expand Down
2 changes: 1 addition & 1 deletion src/components/card/__snapshots__/card.test.tsx.snap
Original file line number Diff line number Diff line change
Expand Up @@ -218,7 +218,7 @@ exports[`EuiCard props icon 1`] = `
<div
class="euiCard__top"
>
<div
<span
class="myIconClass euiCard__icon"
data-euiicon-type="apmApp"
/>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -89,7 +89,7 @@ exports[`EuiCardSelect props isSelected 1`] = `
<span
class="euiButtonContent euiButtonEmpty__content"
>
<div
<span
class="euiButtonContent__icon"
data-euiicon-type="check"
/>
Expand Down
4 changes: 2 additions & 2 deletions src/components/code/__snapshots__/code_block.test.tsx.snap
Original file line number Diff line number Diff line change
Expand Up @@ -105,7 +105,7 @@ console.log(some);
class="euiButtonIcon euiButtonIcon--text"
type="button"
>
<div
<span
aria-hidden="true"
class="euiButtonIcon__icon"
data-euiicon-type="copy"
Expand Down Expand Up @@ -158,7 +158,7 @@ console.log(some);
class="euiButtonIcon euiButtonIcon--text euiCodeBlock__fullScreenButton"
type="button"
>
<div
<span
aria-hidden="true"
class="euiButtonIcon__icon"
data-euiicon-type="fullScreen"
Expand Down
Loading