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

[Visual Refresh] Update floating border styles for panels #8427

Merged

Conversation

mgadewoll
Copy link
Contributor

@mgadewoll mgadewoll commented Mar 11, 2025

Summary

closes https://github.com/elastic/eui-private/issues/207

This PR updates how floating borders are applied to components that use panels.

Previously borders were applied as actual borders (using border) on the panel element, which caused visual issues in light mode for flush fullwidth content where the 1px border created a 1px empty space.

EuiTour EuiTour
Screenshot 2025-03-11 at 21 02 15 Screenshot 2025-03-11 at 21 02 15 copy

Note

EuiPanel had already been updated to use pseudo element borders in a previous PR.
This PR now shares this styling approach to more components.

floating border = a visible border on dark mode and a transparent border on light mode that ensures better visibility and distinction of floating elements in dark mode

Changes

  • adds euiPanelBorderStyles as sharable styles which applies a floating border via pseudo element ::before to prevent it impacting content
  • updates components that use panels to use the shared panel styles
  • ensures EuiToast highlight border is properly rounded (and not cut-off by the transparent floating border)

QA

Screenshots

Show screenshots

EuiToast highlight border fix

before after
Screenshot 2025-03-11 at 19 53 51 Screenshot 2025-03-11 at 19 55 06

Floating border updates

component LIGHT mode DARK mode
EuiPopover Screenshot 2025-03-11 at 19 30 52 Screenshot 2025-03-11 at 19 30 56
EuiPopover Screenshot 2025-03-11 at 19 32 49 Screenshot 2025-03-11 at 19 32 44
EuiPanel Screenshot 2025-03-11 at 19 31 42 Screenshot 2025-03-11 at 19 31 37
EuiToast Screenshot 2025-03-11 at 19 56 45 Screenshot 2025-03-11 at 19 55 41
EuiToolTip Screenshot 2025-03-11 at 19 38 32 Screenshot 2025-03-11 at 19 38 57
EuiTour Screenshot 2025-03-11 at 19 39 29 Screenshot 2025-03-11 at 19 39 25
EuiSplitPanel Screenshot 2025-03-11 at 19 46 38 Screenshot 2025-03-11 at 19 46 27
EuiSuperDatePicker Screenshot 2025-03-11 at 19 48 45 Screenshot 2025-03-11 at 19 48 34

General checklist

  • Browser QA
    • Checked in both light and dark modes
    • Checked in mobile
    • Checked in Chrome, Safari, Edge, and Firefox
    • Checked for accessibility including keyboard-only and screenreader modes
  • Docs site QA
  • Code quality checklist
  • Release checklist
    • A changelog entry exists and is marked appropriately.
    • If applicable, added the breaking change issue label (and filled out the breaking change checklist)
  • Designer checklist
    • If applicable, file an issue to update EUI's Figma library with any corresponding UI changes. (This is an internal repo, if you are external to Elastic, ask a maintainer to submit this request)

@mgadewoll mgadewoll force-pushed the borealis/207-panel-floating-border-update branch from 857d117 to 072e4a4 Compare March 11, 2025 19:44
@mgadewoll mgadewoll self-assigned this Mar 11, 2025
- this essentially reverts a previous change back to the original values
@mgadewoll mgadewoll marked this pull request as ready for review March 12, 2025 07:56
@mgadewoll mgadewoll requested a review from a team as a code owner March 12, 2025 07:56
@acstll acstll self-requested a review March 12, 2025 13:40
Copy link
Contributor

@acstll acstll left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Amazing work, thank you @mgadewoll — I only found one small thing

- this was already implemented for tooltip and popover in Amsterdam as well, it shouldn't be removed
@kibanamachine
Copy link

Preview staging links for this PR:

@elasticmachine
Copy link
Collaborator

💚 Build Succeeded

History

cc @mgadewoll

Copy link
Contributor

@acstll acstll left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

:shipit:

@mgadewoll mgadewoll merged commit 7744732 into elastic:main Mar 17, 2025
5 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants