-
Notifications
You must be signed in to change notification settings - Fork 8.3k
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
Issue with the page background colour and the app background colour #160640
Comments
Pinging @elastic/appex-sharedux (Team:SharedUX) |
It took me a while to understand what was happening but I think I finally got to the bottom of this! 😄 In Kibana "classic" the pages are wrapped with a side bar which allows the page to be "panelled". Let's look at how the ML plugin renders its pages:
@elastic/eui-team It seems that the easiest way to fix this is to allow consumers to mark a page as "panelled" manually without requiring an // before
const innerPanelled = () =>
panelled === false ? false : Boolean(sidebar.length > 0);
// after
const innerPanelled = () => panelled ?? Boolean(sidebar.length > 0); With sidebar (panelled)Without sidebar |
Thank you @sebelga for the report. I'll start looking at this suggestion on a local install of EUI and see how it holds up, then review with the EUI team. Is there a way I can run a test with serverless locally? It'd be helpful to test this in a sandbox if possible. |
If the intention is to have the white collapsible nav against pure white page backgrounds, I agree that your However, I want to caution that based on @MichaelMarcialis's Figma mocks, the non- Another designer option we could use instead of a white/panelled background here for example would be to wrap the entire table/section in an Michael, can you chime in here on the intention of the new designs and whether page backgrounds should generally either be tinted vs. pure white? |
Probably I am missing something but on my side I see all pages with white background. The thing is, we can't change now for serverless if pages render on white background or not. They must all render the same way as in "classic" Kibana - that's how their design was built on top of (see all the screenshots in the PR description). We can't either start adding panels everywhere in Kibana, that's not realistic. What you do point out that I hadn't immediately see is that the EuiSidebar does not have a white background and maybe that's what we should do in Serverless. Have the left side navigation with a light blue background to create a contrast with the main page? @MichaelMarcialis thoughts on that? |
@1Copenut You can start Kibana in serverless with |
Gotcha, that's totally valid. I'm just hoping to have a designer confirm that a white side nav next to a white page background is the new intended design before we commit any code. I'll re-ping @MichaelMarcialis and @ryankeairns here to get their confirmation |
Michael has confirmed in Slack that a white nav next to a white background is the new intended design:
Thanks for your patience with me on this. @sebelga, I'll open a PR here shortly with your proposed |
@cee-chen Thanks for adding the fix in EUI. Do you know when the next EUI version upgrade in Kibana is planed? |
@sebelga The linked EUI fix will hopefully be merged into Kibana early or middle of next week. Just to check, is the fix needed by 8.10 FF or no? |
No it is not required for 8.10 FF so mid next week is OK 👍 |
Fantastic, thanks! |
For non serverless the page background is white but for serverless it seems to be grey, causing issues with some apps
The text was updated successfully, but these errors were encountered: