-
Notifications
You must be signed in to change notification settings - Fork 844
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[EuiBreadcrumb] Fix styling on
application
types with popovers + pe…
…rf improvements (#7580)
- Loading branch information
Showing
17 changed files
with
839 additions
and
577 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
**Bug fixes** | ||
|
||
- Fixed a visual bug with `EuiHeaderBreadcrumbs` with popovers |
104 changes: 104 additions & 0 deletions
104
src/components/breadcrumbs/__snapshots__/_breadcrumb_content.test.tsx.snap
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,104 @@ | ||
// Jest Snapshot v1, https://goo.gl/fbAQLP | ||
|
||
exports[`EuiBreadcrumbContent breadcrumbs with popovers renders with \`popoverContent\` 1`] = ` | ||
<body> | ||
<div> | ||
<div | ||
class="euiPopover euiPopover-isOpen emotion-euiPopover-inline-block-euiBreadcrumb__popoverWrapper-page" | ||
data-test-subj="popover" | ||
> | ||
<button | ||
class="euiLink euiBreadcrumb__content emotion-euiLink-subdued-euiBreadcrumb__popoverButton-euiBreadcrumb__content-page" | ||
data-test-subj="popoverToggle" | ||
title="Toggles a popover - Clicking this button will toggle a popover dialog." | ||
type="button" | ||
> | ||
<span | ||
class="emotion-euiBreadcrumb__popoverTruncation" | ||
> | ||
Toggles a popover | ||
</span> | ||
<span | ||
data-euiicon-type="arrowDown" | ||
> | ||
- Clicking this button will toggle a popover dialog. | ||
</span> | ||
</button> | ||
</div> | ||
</div> | ||
<div | ||
data-euiportal="true" | ||
> | ||
<div | ||
data-focus-guard="true" | ||
style="width: 1px; height: 0px; padding: 0px; overflow: hidden; position: fixed; top: 1px; left: 1px;" | ||
tabindex="0" | ||
/> | ||
<div | ||
data-focus-lock-disabled="false" | ||
> | ||
<div | ||
aria-describedby="generated-id" | ||
aria-live="off" | ||
aria-modal="true" | ||
class="euiPanel euiPanel--plain euiPanel--paddingMedium euiPopover__panel emotion-euiPanel-grow-m-m-plain-euiPopover__panel-light-isOpen-hasTransform-bottom" | ||
data-autofocus="true" | ||
data-popover-open="true" | ||
data-popover-panel="true" | ||
role="dialog" | ||
style="top: 16px; left: -22px; z-index: 2000;" | ||
tabindex="0" | ||
> | ||
<div | ||
class="euiPopover__arrow emotion-euiPopoverArrow-bottom" | ||
data-popover-arrow="bottom" | ||
style="left: 10px; top: 0px;" | ||
/> | ||
<p | ||
class="emotion-euiScreenReaderOnly" | ||
id="generated-id" | ||
> | ||
You are in a dialog. Press Escape, or tap/click outside the dialog to close. | ||
</p> | ||
<div> | ||
Hello popover world | ||
</div> | ||
</div> | ||
</div> | ||
<div | ||
data-focus-guard="true" | ||
style="width: 1px; height: 0px; padding: 0px; overflow: hidden; position: fixed; top: 1px; left: 1px;" | ||
tabindex="0" | ||
/> | ||
</div> | ||
</body> | ||
`; | ||
|
||
exports[`EuiBreadcrumbContent renders interactive breadcrumbs with href or onClick 1`] = ` | ||
<div> | ||
<a | ||
class="euiLink euiBreadcrumb__content emotion-euiLink-subdued-euiBreadcrumb__content-page" | ||
href="#" | ||
rel="noreferrer" | ||
title="Link" | ||
> | ||
Link | ||
</a> | ||
<button | ||
class="euiLink euiBreadcrumb__content emotion-euiLink-subdued-euiBreadcrumb__content-page" | ||
title="Button" | ||
type="button" | ||
> | ||
Button | ||
</button> | ||
</div> | ||
`; | ||
|
||
exports[`EuiBreadcrumbContent renders plain uninteractive breadcrumb text 1`] = ` | ||
<span | ||
class="euiBreadcrumb__content emotion-euiBreadcrumb__content-page-euiTextColor-subdued" | ||
title="Text" | ||
> | ||
Text | ||
</span> | ||
`; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.