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

[Lens] Refactor Flyout Design Updates #14

Merged

Conversation

MichaelMarcialis
Copy link

Hey, @dej611. This is a little design PR that performs the similar task of fixing the broken Lens configuration flyout at small viewport sizes, but with some slightly reorganized CSS. It also removes the flyout's max-width styles, which allows it to go full width at small viewport sizes (which I think looks better and allows users to better focus on the configuration task on small devices). Finally, it removes some visibility styles that it looks like Wylie had applied to the layer panel when a configuration flyout is open. Not sure why those styles where put in place, but their removal didn't appear to break anything and it prevented the odd flashing disappearance of the layer panel that can be seen when the flyout animation is triggered.

image

@dej611
Copy link
Owner

dej611 commented Dec 3, 2021

If I recall that visibility change, it was due to avoid React recomputing the flow in some formula's scenario.

Edit: using visibility instead of display or else was used to avoid in formula's fullscreen to reflow which was a performance issue, but keeping dimensions consistent.

@dej611
Copy link
Owner

dej611 commented Dec 3, 2021

Tested locally and could not find any performance regression with it

@dej611 dej611 merged commit 78fb97b into dej611:refactor/flyout-ui Dec 3, 2021
@MichaelMarcialis MichaelMarcialis deleted the refactor/flyout-ui-mm branch December 3, 2021 21:06
kibanamachine added a commit that referenced this pull request Dec 14, 2021
…stic#120103)

* 💄 Revisit form style + spacers

* ✅ Fix tests

* ✨ Replace percentile input with range

* 💄 Fix mobile layout

* 💄 Make searchbar go below flyout

* 🔥 Remove unused jsx

* [Lens] Refactor Flyout Design Updates (#14)

* allow flyout to go full width on small viewports

* remove hiding of layer panel when flyout open

Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
Co-authored-by: Michael Marcialis <michael@marcial.is>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants