-
Notifications
You must be signed in to change notification settings - Fork 8.2k
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
Plugins look broken in Dark Mode. #142018
Comments
This effectively solves the problem (change made in one of the plugin boilerplate files). Notice that the EuiProvider is a parent to KibanaContextProvider, so whatever interference is occurring inside of the context/theming originates at a higher level. I actually moved the EuiProvider to the top level of
Still I'd like our plugin to mirror the boiler plate's approach to make things more future proof. Any help on the matter would be appreciated. |
Pinging @elastic/kibana-operations (Team:Operations) |
(assigned to operations because according to code owners they own the |
Change description
If you standup Kibana 8.4.1 and run
node ./scripts/generate_plugin.js
, you'll notice that the boilerplate has an unusable UI when Kibana is switched into Dark Mode.Which release will ship the breaking change?
8.0
Is this a Kibana or Elasticsearch breaking change?
Kibana
Describe the change. How will it manifest to users?
Plugins are unusable in Dark Mode because you'll often see light gray text on white backgrounds.
How many users will be affected?
A great majority of people in our organization(s) prefer using the plugin in Dark Mode.
Are there any edge cases?
If I try mimicking the approach taken by the EUI team in their sandbox I can wrap our top-level component with:
<EuiProvider colorMode="dark">
That mostly fixes the problem except that another unwanted side-effect occurs. That is, the plugin's content is vertically centered in the browser. If we can't get help on this issue before the next release, I may try wrapping the EuiProvider around our plugin and looking for a way to circumvent the CSS positioning issue. I'm just scared that other side effects will begin to manifest if I take this path.
I can't be sure what the problem is exactly, but the following observations should prove helpful.
Test Data
The main component affected seems to be the EuiPanel. There are other components which inherit from that one and they are equally uglified in Dark Mode. Hopefully there's a simple fix for the EuiPanel which will cascade and fix everything else.
Cross links
I first raised the issue with the EUI team. However they said they can't reproduce the issue in CodeSandbox and therefore will not provide further assistance.
The text was updated successfully, but these errors were encountered: