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

[APM] Dark mode issues in APM UI components #30048

Closed
8 of 14 tasks
formgeist opened this issue Feb 5, 2019 · 11 comments
Closed
8 of 14 tasks

[APM] Dark mode issues in APM UI components #30048

formgeist opened this issue Feb 5, 2019 · 11 comments
Assignees
Labels
good first issue low hanging fruit low hanging fruit DO NOT USE. Use `good first issue` instead Team:APM All issues that need APM UI Team support

Comments

@formgeist
Copy link
Contributor

formgeist commented Feb 5, 2019

Summary

Depends on: #29725

This issue is meant to track the issues we're facing with dark mode in our current styled components in APM UI.

Basic implementation:

import { EuiThemeProvider } from '../../../observability/public/typings/eui_styled_components';

function bootstrapApp() {
  const [darkMode] = useUiSetting$<boolean>('theme:darkMode');
  return (
    <EuiThemeProvider darkMode={darkMode}>
      <App />
    </EuiThemeProvider>
  );
}

function MyComponent() {
  const CustomLink = styled(EuiLink)`
    margin-right: ${({ theme }) => theme.eui.euiSizeS};
  `;
}

Fixed issues

Fixed in #69362 & #69493

Screenshot 2019-02-04 at 16.39.50.png

  • Timeline: Span row hover is white

Screenshot 2019-02-05 at 09.04.22.png

  • Timeline: Span row lines and vertical markers are white

Screenshot 2019-02-05 at 10.55.46.png

  • Stacktrace source code boxes have white background

screenshot 2019-02-05 at 14 09 24

  • Errors detail: Error occurrence panel has white border

Screenshot 2019-02-05 at 10.57.01.png

  • Contextual info table: Row lines are white

Screenshot 2019-02-05 at 10.57.44.png

  • Service map: The entire map does not support the dark mode theme, but some controls are converted.

screencapture-localhost-5601-ger-s-casper-app-apm-2020-05-14-13_13_39

Screenshot 2020-06-18 at 09 54 24

Open issues

Screenshot 2019-02-05 at 09.03.34.png

  • Charts: X-axis and gridlines are light grey/white instead of darker grey

Screenshot 2019-02-05 at 09.05.34.png

  • Charts: X-axis ticks on distribution barchart are also light grey instead of dark

Screenshot 2019-02-05 at 09.06.29.png

  • Charts: Time selection colour is black

Kapture 2019-02-05 at 11.38.07.gif

Screenshot 2020-06-18 at 09 52 40

Screenshot 2020-06-18 at 10 02 17

@formgeist formgeist added Team:APM All issues that need APM UI Team support [zube]: Inbox labels Feb 5, 2019
@elasticmachine
Copy link
Contributor

Pinging @elastic/apm-ui

@formgeist
Copy link
Contributor Author

@jasonrhodes Made this issue to track many of the theming issues we have with our APM UI components when switching to dark mode in Kibana.

@fdartayre
Copy link

fdartayre commented Feb 6, 2020

Stack trace uses black font in both Error occurrence and Span details:

Screenshot 2020-02-06 at 09 37 07

Screenshot 2020-02-06 at 09 50 34

@mitchelldavis44
Copy link

Any update on this issue?

@sorenlouv sorenlouv added [zube]: Backlog bug Fixes for quality problems that affect the customer experience labels Mar 26, 2020
@formgeist
Copy link
Contributor Author

Added another dark mode issue, as the Service map feature is not supported.

@smith
Copy link
Contributor

smith commented Jun 18, 2020

Fixed by #69362.

@smith
Copy link
Contributor

smith commented Jun 28, 2020

#70161 is related technical debt though not currently a visible issue.

@sorenlouv sorenlouv added the technical debt Improvement of the software architecture and operational architecture label Jul 14, 2020
@sorenlouv sorenlouv removed technical debt Improvement of the software architecture and operational architecture bug Fixes for quality problems that affect the customer experience labels Jul 14, 2020
@graphaelli
Copy link
Member

Can we close this out as resolved now?

@formgeist
Copy link
Contributor Author

@graphaelli Still a bunch of open issues, but we can choose to convert to separate issues if that's preferred?

@graphaelli
Copy link
Member

No need to split right now. I don't want to create busy work of splitting this up for no reason - if we're still tackling them then as-is is fine. If there is a separation of short and long term then I think it would be helpful to split those up following the next release.

@sorenlouv sorenlouv added good first issue low hanging fruit low hanging fruit DO NOT USE. Use `good first issue` instead labels Sep 4, 2020
@formgeist
Copy link
Contributor Author

No need to split right now. I don't want to create busy work of splitting this up for no reason - if we're still tackling them then as-is is fine. If there is a separation of short and long term then I think it would be helpful to split those up following the next release.

We can close this issue now because I split out the ones that are not related to the charts. Seeing as we're planning to replace the react-vis visualizations with Elastic Charts, I find that these will be resolved by the switch. The remaining have separate issues as there are new components that we can make use of.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
good first issue low hanging fruit low hanging fruit DO NOT USE. Use `good first issue` instead Team:APM All issues that need APM UI Team support
Projects
None yet
Development

No branches or pull requests

8 participants