-
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
[Discover] Fix visibility of saved search grids when one of them is in fullscreen mode #136198
[Discover] Fix visibility of saved search grids when one of them is in fullscreen mode #136198
Conversation
…ne of them is in fullscreen mode
* It can be removed if we don't use inline styles (z-index, position) for Dashboard panels (react-grid-item) | ||
*/ | ||
.euiDataGrid__restrictBody .dshDashboardGrid__item { | ||
position: static !important; /* 1 */ |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@constancecchen Your suggestion works great for desktop view, thanks!
But there is something weird with mobile view. Although it has position: static !important
kibana/src/plugins/dashboard/public/application/embeddable/grid/_dashboard_grid.scss
Line 125 in fe0e702
position: static !important; |
.euiDataGrid__restrictBody .dshDashboardGrid__item { | ||
position: static !important; /* 1 */ |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
It looks like mobile / small screens already has a position: static !important
set, interestingly enough. It's not 100% clear to me why it doesn't 'just work' in that case, but as I was tinkering around I found a z-index unset that appears to work for both mobile and desktop:
.euiDataGrid__restrictBody .dshDashboardGrid__item { | |
position: static !important; /* 1 */ | |
.euiDataGrid__restrictBody .embPanel .embPanel__content { | |
z-index: unset !important; /* 1 */ |
Unsetting z-index is probably a safer bet than position in any case. Let me know if that works for you!
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@constancecchen Yes, this works great for desktop and mobile! Thank you very much for solving the issue 🎉
…mobile and desktop views
@elasticmachine merge upstream |
Pinging @elastic/kibana-data-discovery (Team:DataDiscovery) |
Pinging @elastic/kibana-presentation (Team:Presentation) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Tested locally and it worked on both desktop and mobile emulation. We could add a functional test for this but may be more effort than it's worth so LGTM!
@elasticmachine merge upstream |
💚 Build Succeeded
Metrics [docs]Module Count
Async chunks
History
To update your PR or re-run it, just comment with: cc @jughosta |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Sass change LGTM.
💔 All backports failed
Manual backportTo create the backport manually run:
Questions ?Please refer to the Backport tool documentation |
Friendly reminder: Looks like this PR hasn’t been backported yet. |
1 similar comment
Friendly reminder: Looks like this PR hasn’t been backported yet. |
💚 All backports created successfully
Note: Successful backport PRs will be merged automatically after passing CI. Questions ?Please refer to the Backport tool documentation |
…n fullscreen mode (elastic#136198) (cherry picked from commit 42f2bc2) # Conflicts: # src/plugins/discover/public/embeddable/saved_search_grid.tsx
…n fullscreen mode (#136198) (#136930) (cherry picked from commit 42f2bc2) # Conflicts: # src/plugins/discover/public/embeddable/saved_search_grid.tsx Co-authored-by: Julia Rechkunova <[email protected]>
Closes #134032
Summary
This PR adds CSS which overrides Dashboard panel styles when one of grids is in fullscreen mode.
Steps to test:
Checklist