Skip to content

Commit

Permalink
[Visual Refresh] Introduce shared popover arrow styles to Borealis (#…
Browse files Browse the repository at this point in the history
  • Loading branch information
mgadewoll authored Dec 13, 2024
1 parent 10ba396 commit e162ad1
Show file tree
Hide file tree
Showing 60 changed files with 565 additions and 582 deletions.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Original file line number Diff line number Diff line change
Expand Up @@ -48,14 +48,18 @@ exports[`CollapsedItemActions custom actions 1`] = `
data-popover-open="true"
data-popover-panel="true"
role="dialog"
style="top: -22px; left: -16px; z-index: 2000;"
style="top: -18px; left: -16px; z-index: 2000;"
tabindex="0"
>
<div
class="euiPopover__arrow emotion-euiPopoverArrow-left"
data-popover-arrow="left"
style="left: 0px; top: 10px;"
/>
class="euiPopover__arrowWrapper emotion-euiPopoverArrowWrapper"
style="top: 9px; left: 100%;"
>
<div
class="euiPopover__arrow emotion-euiPopoverArrow-left"
data-popover-arrow="left"
/>
</div>
<p
class="emotion-euiScreenReaderOnly"
id="generated-id"
Expand Down Expand Up @@ -158,14 +162,18 @@ exports[`CollapsedItemActions default actions 1`] = `
data-popover-open="true"
data-popover-panel="true"
role="dialog"
style="top: -22px; left: -16px; z-index: 2000;"
style="top: -18px; left: -16px; z-index: 2000;"
tabindex="0"
>
<div
class="euiPopover__arrow emotion-euiPopoverArrow-left"
data-popover-arrow="left"
style="left: 0px; top: 10px;"
/>
class="euiPopover__arrowWrapper emotion-euiPopoverArrowWrapper"
style="top: 9px; left: 100%;"
>
<div
class="euiPopover__arrow emotion-euiPopoverArrow-left"
data-popover-arrow="left"
/>
</div>
<p
class="emotion-euiScreenReaderOnly"
id="generated-id"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -46,14 +46,18 @@ exports[`EuiBreadcrumbContent breadcrumbs with popovers renders with \`popoverCo
data-popover-open="true"
data-popover-panel="true"
role="dialog"
style="top: 16px; left: -22px; z-index: 2000;"
style="top: 16px; left: -18px; z-index: 2000;"
tabindex="0"
>
<div
class="euiPopover__arrow emotion-euiPopoverArrow-bottom"
data-popover-arrow="bottom"
style="left: 10px; top: 0px;"
/>
class="euiPopover__arrowWrapper emotion-euiPopoverArrowWrapper"
style="left: 9px; bottom: 100%;"
>
<div
class="euiPopover__arrow emotion-euiPopoverArrow-bottom"
data-popover-arrow="bottom"
/>
</div>
<p
class="emotion-euiScreenReaderOnly"
id="generated-id"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -61,14 +61,18 @@ exports[`EuiBreadcrumbCollapsed renders a ... breadcrumb with collapsed content
data-autofocus="true"
data-popover-panel="true"
role="dialog"
style="top: 16px; left: -22px; will-change: transform, opacity; z-index: 2000;"
style="top: 16px; left: -18px; will-change: transform, opacity; z-index: 2000;"
tabindex="0"
>
<div
class="euiPopover__arrow emotion-euiPopoverArrow-bottom"
data-popover-arrow="bottom"
style="left: 10px; top: 0px;"
/>
class="euiPopover__arrowWrapper emotion-euiPopoverArrowWrapper"
style="left: 9px; bottom: 100%;"
>
<div
class="euiPopover__arrow emotion-euiPopoverArrow-bottom"
data-popover-arrow="bottom"
/>
</div>
<p
class="emotion-euiScreenReaderOnly"
id="generated-id"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -41,14 +41,18 @@ exports[`EuiCodeBlockAnnotation renders 1`] = `
data-popover-panel="true"
data-test-subj="euiCodeBlockAnnotationPopover"
role="dialog"
style="top: 16px; left: -22px; z-index: 6001;"
style="top: 16px; left: -18px; z-index: 6001;"
tabindex="0"
>
<div
class="euiPopover__arrow emotion-euiPopoverArrow-bottom"
data-popover-arrow="bottom"
style="left: 10px; top: 0px;"
/>
class="euiPopover__arrowWrapper emotion-euiPopoverArrowWrapper"
style="left: 9px; bottom: 100%;"
>
<div
class="euiPopover__arrow emotion-euiPopoverArrow-bottom"
data-popover-arrow="bottom"
/>
</div>
<p
class="emotion-euiScreenReaderOnly"
id="generated-id"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -61,14 +61,18 @@ exports[`KibanaCollapsibleNavSolution renders docked icons: popover 1`] = `
data-popover-open="true"
data-popover-panel="true"
role="dialog"
style="top: -22px; left: 16px; z-index: 2000;"
style="top: -18px; left: 16px; z-index: 2000;"
tabindex="0"
>
<div
class="euiPopover__arrow emotion-euiPopoverArrow-right"
data-popover-arrow="right"
style="left: 0px; top: 10px;"
/>
class="euiPopover__arrowWrapper emotion-euiPopoverArrowWrapper"
style="top: 9px; right: 100%;"
>
<div
class="euiPopover__arrow emotion-euiPopoverArrow-right"
data-popover-arrow="right"
/>
</div>
<p
class="emotion-euiScreenReaderOnly"
id="generated-id"
Expand Down Expand Up @@ -188,7 +192,7 @@ exports[`KibanaCollapsibleNavSolution renders with a solution switcher: popover
data-popover-open="true"
data-popover-panel="true"
role="dialog"
style="top: 0px; left: -22px; z-index: 2000; inline-size: 0px;"
style="top: 0px; left: -18px; z-index: 2000; inline-size: 0px;"
tabindex="0"
>
<p
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ exports[`EuiCollapsedNavButton renders a tooltip around the icon button 1`] = `
>
<div
class="euiToolTip__arrow emotion-euiToolTip__arrow-left"
style="left: 0px; top: 4px;"
style="top: 3px; left: 100%;"
/>
<div>
Nav item
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -47,14 +47,18 @@ exports[`EuiCollapsedNavPopover renders 1`] = `
data-popover-open="true"
data-popover-panel="true"
role="dialog"
style="top: -22px; left: 16px; z-index: 2000;"
style="top: -18px; left: 16px; z-index: 2000;"
tabindex="0"
>
<div
class="euiPopover__arrow emotion-euiPopoverArrow-right"
data-popover-arrow="right"
style="left: 0px; top: 10px;"
/>
class="euiPopover__arrowWrapper emotion-euiPopoverArrowWrapper"
style="top: 9px; right: 100%;"
>
<div
class="euiPopover__arrow emotion-euiPopoverArrow-right"
data-popover-arrow="right"
/>
</div>
<p
class="emotion-euiScreenReaderOnly"
id="generated-id"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -381,7 +381,7 @@ exports[`EuiColorPalettePicker more props are propagated to each option 1`] = `
class="euiPanel euiPanel--plain euiPopover__panel emotion-euiPanel-grow-m-plain-euiPopover__panel-light-isAttached-bottom"
data-popover-panel="true"
role="dialog"
style="top: 0px; left: -22px; will-change: transform, opacity; z-index: 2000; inline-size: 0px;"
style="top: 0px; left: -18px; will-change: transform, opacity; z-index: 2000; inline-size: 0px;"
>
<div>
<div
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -141,7 +141,7 @@ exports[`EuiComboBox renders the options list dropdown 1`] = `
data-popover-open="true"
data-popover-panel="true"
role="dialog"
style="top: 0px; left: -22px; z-index: 2000; inline-size: 0px;"
style="top: 0px; left: -18px; z-index: 2000; inline-size: 0px;"
>
<div>
<div
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -100,7 +100,7 @@ exports[`EuiContextMenuItem tooltip behavior 1`] = `
</div>
<div
class="euiToolTip__arrow emotion-euiToolTip__arrow-top"
style="left: 4px; top: 0px;"
style="left: 3px; top: 100%;"
/>
<div>
tooltip content
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -254,7 +254,7 @@ describe('EuiDataGridCellPopover', () => {
openCellPopover('B');
cy.get('[data-test-subj="euiDataGridExpansionPopover"]')
.should('have.css', 'width', '400px')
.should('have.css', 'height', '88px');
.should('have.css', 'height', '90px');
});

it('matches the width of the column if the column width is larger than 400px', () => {
Expand All @@ -270,7 +270,7 @@ describe('EuiDataGridCellPopover', () => {
openCellPopover('B');
cy.get('[data-test-subj="euiDataGridExpansionPopover"]')
.should('have.css', 'width', '500px')
.should('have.css', 'height', '64px');
.should('have.css', 'height', '66px');
});
});
});
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -42,14 +42,18 @@ exports[`ColumnActions renders 1`] = `
data-popover-open="true"
data-popover-panel="true"
role="dialog"
style="top: 23px; left: -22px; z-index: 2000;"
style="top: 23px; left: -18px; z-index: 2000;"
tabindex="0"
>
<div
class="euiPopover__arrow emotion-euiPopoverArrow-bottom"
data-popover-arrow="bottom"
style="left: 10px; top: 0px;"
/>
class="euiPopover__arrowWrapper emotion-euiPopoverArrowWrapper"
style="left: 9px; bottom: 100%;"
>
<div
class="euiPopover__arrow emotion-euiPopoverArrow-bottom"
data-popover-arrow="bottom"
/>
</div>
<p
class="emotion-euiScreenReaderOnly"
id="generated-id"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -54,14 +54,18 @@ exports[`useDataGridColumnSelector columnSelector renders a toolbar button/popov
data-autofocus="true"
data-popover-panel="true"
role="dialog"
style="top: 16px; left: -22px; will-change: transform, opacity; z-index: 2000;"
style="top: 16px; left: -18px; will-change: transform, opacity; z-index: 2000;"
tabindex="0"
>
<div
class="euiPopover__arrow emotion-euiPopoverArrow-bottom"
data-popover-arrow="bottom"
style="left: 10px; top: 0px;"
/>
class="euiPopover__arrowWrapper emotion-euiPopoverArrowWrapper"
style="left: 9px; bottom: 100%;"
>
<div
class="euiPopover__arrow emotion-euiPopoverArrow-bottom"
data-popover-arrow="bottom"
/>
</div>
<p
class="emotion-euiScreenReaderOnly"
id="generated-id"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -54,14 +54,18 @@ exports[`DataGridSortingControl renders a toolbar button/popover allowing users
data-autofocus="true"
data-popover-panel="true"
role="dialog"
style="top: 16px; left: -22px; will-change: transform, opacity; z-index: 2000;"
style="top: 16px; left: -18px; will-change: transform, opacity; z-index: 2000;"
tabindex="0"
>
<div
class="euiPopover__arrow emotion-euiPopoverArrow-bottom"
data-popover-arrow="bottom"
style="left: 10px; top: 0px;"
/>
class="euiPopover__arrowWrapper emotion-euiPopoverArrowWrapper"
style="left: 9px; bottom: 100%;"
>
<div
class="euiPopover__arrow emotion-euiPopoverArrow-bottom"
data-popover-arrow="bottom"
/>
</div>
<p
class="emotion-euiScreenReaderOnly"
id="generated-id"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -240,14 +240,18 @@ exports[`useDataGridDisplaySelector displaySelector renders a toolbar button/pop
data-autofocus="true"
data-popover-panel="true"
role="dialog"
style="top: 16px; left: -22px; will-change: transform, opacity; z-index: 2000;"
style="top: 16px; left: -18px; will-change: transform, opacity; z-index: 2000;"
tabindex="0"
>
<div
class="euiPopover__arrow emotion-euiPopoverArrow-bottom"
data-popover-arrow="bottom"
style="left: 10px; top: 0px;"
/>
class="euiPopover__arrowWrapper emotion-euiPopoverArrowWrapper"
style="left: 9px; bottom: 100%;"
>
<div
class="euiPopover__arrow emotion-euiPopoverArrow-bottom"
data-popover-arrow="bottom"
/>
</div>
<p
class="emotion-euiScreenReaderOnly"
id="generated-id"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -50,14 +50,18 @@ exports[`useDataGridKeyboardShortcuts [React 16] returns a popover containing a
data-popover-open="true"
data-popover-panel="true"
role="dialog"
style="top: 16px; left: -22px; z-index: 2000;"
style="top: 16px; left: -18px; z-index: 2000;"
tabindex="0"
>
<div
class="euiPopover__arrow emotion-euiPopoverArrow-bottom"
data-popover-arrow="bottom"
style="left: 10px; top: 0px;"
/>
class="euiPopover__arrowWrapper emotion-euiPopoverArrowWrapper"
style="left: 9px; bottom: 100%;"
>
<div
class="euiPopover__arrow emotion-euiPopoverArrow-bottom"
data-popover-arrow="bottom"
/>
</div>
<p
class="emotion-euiScreenReaderOnly"
id="generated-id"
Expand Down Expand Up @@ -299,14 +303,18 @@ exports[`useDataGridKeyboardShortcuts [React 17] returns a popover containing a
data-popover-open="true"
data-popover-panel="true"
role="dialog"
style="top: 16px; left: -22px; z-index: 2000;"
style="top: 16px; left: -18px; z-index: 2000;"
tabindex="0"
>
<div
class="euiPopover__arrow emotion-euiPopoverArrow-bottom"
data-popover-arrow="bottom"
style="left: 10px; top: 0px;"
/>
class="euiPopover__arrowWrapper emotion-euiPopoverArrowWrapper"
style="left: 9px; bottom: 100%;"
>
<div
class="euiPopover__arrow emotion-euiPopoverArrow-bottom"
data-popover-arrow="bottom"
/>
</div>
<p
class="emotion-euiScreenReaderOnly"
id="generated-id"
Expand Down Expand Up @@ -549,14 +557,18 @@ exports[`useDataGridKeyboardShortcuts [React 18] returns a popover containing a
data-popover-open="true"
data-popover-panel="true"
role="dialog"
style="top: 16px; left: -22px; z-index: 2000;"
style="top: 16px; left: -18px; z-index: 2000;"
tabindex="0"
>
<div
class="euiPopover__arrow emotion-euiPopoverArrow-bottom"
data-popover-arrow="bottom"
style="left: 10px; top: 0px;"
/>
class="euiPopover__arrowWrapper emotion-euiPopoverArrowWrapper"
style="left: 9px; bottom: 100%;"
>
<div
class="euiPopover__arrow emotion-euiPopoverArrow-bottom"
data-popover-arrow="bottom"
/>
</div>
<p
class="emotion-euiScreenReaderOnly"
id="generated-id"
Expand Down
Loading

0 comments on commit e162ad1

Please sign in to comment.