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

Navigation side-bar border-top disappears on dark theme #194799

Closed
ek-so opened this issue Oct 3, 2024 · 7 comments
Closed

Navigation side-bar border-top disappears on dark theme #194799

ek-so opened this issue Oct 3, 2024 · 7 comments
Labels
bug Fixes for quality problems that affect the customer experience Team:SharedUX Team label for AppEx-SharedUX (formerly Global Experience)

Comments

@ek-so
Copy link
Contributor

ek-so commented Oct 3, 2024

Description
Visual bug, the description is here:
https://github.com/elastic/UX/issues/120#issuecomment-2389313420

Serverless project type:
Observability (but it's probably in other solutions as well)

Browser:
Chrome 128.0

Describe the bug:
Border top of navigation side-bar is inconsistent between light and dark theme.

Screenshots:
Light theme
Image

Dark Theme
Image

Steps to reproduce:

  1. Just switch between light and dark theme, and vice-versa, to notice it

Expected behavior:
I would expect that border, on dark theme, to be identical (lighter) to the right border of the side-bar, as it is on light theme

Additional context
It might be a bottom-border from the top bar instead of a border-top from navigation side-bar, not entirely sure

@botelastic botelastic bot added the needs-team Issues missing a team label label Oct 3, 2024
@ek-so ek-so added bug Fixes for quality problems that affect the customer experience Team:SharedUX Team label for AppEx-SharedUX (formerly Global Experience) and removed needs-team Issues missing a team label labels Oct 3, 2024
@elasticmachine
Copy link
Contributor

Pinging @elastic/appex-sharedux (Team:SharedUX)

@petrklapka petrklapka added good first issue low hanging fruit SharedUX/fix-it-week Bugs that have been groomed and queued up for the team's next fix it week labels Oct 7, 2024
@vitalymatyushik
Copy link

good day!
I cannot check the issue (maybe not enough permissions) but maybe I can try contribute to the project?

@ek-so
Copy link
Contributor Author

ek-so commented Oct 8, 2024

Hey @vitalymatyushik I have added a full description from the original issue

@vitalymatyushik
Copy link

sorry, I have issues to follow the guide: it's failing with the message "[ERROR][elasticsearch-service] Unable to retrieve version information from Elasticsearch nodes." in the terminal and didn't open in the browser.
could you please advice if there is new instructions how to start the service locally?

@paulinashakirova
Copy link
Contributor

The code related to this issue comes from the /eui/packages/eui/src/components/header/header.styles.ts where there is a separate logic for both themes. In the DARK theme the backgroundColor is used to define the bottom border color, whereas for the default theme the defaultBorderColor is used.

There is also a comment about this difference.

/**
 * The `dark` header is (currently) a bit of a special case. We don't
 * actually want to use <EuiThemeProvider colorMode="dark"> inside it
 * because that will affect popovers and `SelectableSitewideTemplate`
 * as well, which we do not necessarily want to do (?)
 *
 * It's also possible that the dark header will go away or become unused
 * by Kibana in the near future, at which point we can remove this
 */

I’d like to transfer the issue to EUI repo so that the team could check if this is intentional or if this is a bug.

Also, this can be reproduced in the eui documentation. See here.

@Dosant Dosant removed bug Fixes for quality problems that affect the customer experience good first issue low hanging fruit SharedUX/fix-it-week Bugs that have been groomed and queued up for the team's next fix it week Team:SharedUX Team label for AppEx-SharedUX (formerly Global Experience) labels Oct 9, 2024
@botelastic botelastic bot added the needs-team Issues missing a team label label Oct 9, 2024
@Dosant Dosant added bug Fixes for quality problems that affect the customer experience Team:SharedUX Team label for AppEx-SharedUX (formerly Global Experience) labels Oct 9, 2024
@botelastic botelastic bot removed the needs-team Issues missing a team label label Oct 9, 2024
@Dosant
Copy link
Contributor

Dosant commented Oct 9, 2024

sorry, I have issues to follow the guide: it's failing with the message "[ERROR][elasticsearch-service] Unable to retrieve version information from Elasticsearch nodes." in the terminal and didn't open in the browser. could you please advice if there is new instructions how to start the service locally?

@vitalymatyushik, thank you for your interest, but it turned out to be not a "good first issue", since the root cause is in another library and some further discussions are needed.

As for starting kibana, it seems that elasticsearch was not running (yarn es snapshot) and looks like this step is missing in legacy guide, sorry about that. You can follow this guide with mode details next time

@Dosant
Copy link
Contributor

Dosant commented Oct 14, 2024

I'll close the issue, as it looks like the fix will be completed on EUI side 🥳 elastic/eui#8067

@Dosant Dosant closed this as not planned Won't fix, can't repro, duplicate, stale Oct 14, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Fixes for quality problems that affect the customer experience Team:SharedUX Team label for AppEx-SharedUX (formerly Global Experience)
Projects
None yet
Development

No branches or pull requests

6 participants