Skip to content

Commit

Permalink
[Lens] Refactor Flyout Design Updates (#14)
Browse files Browse the repository at this point in the history
* allow flyout to go full width on small viewports

* remove hiding of layer panel when flyout open
  • Loading branch information
Michael Marcialis authored Dec 3, 2021
1 parent 2b37a0f commit 78fb97b
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 15 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -5,19 +5,15 @@
// Use the EuiFlyout style
@include euiFlyout;
// But with custom positioning to keep it within the sidebar contents
position: absolute;
left: 0;
animation: euiFlyout $euiAnimSpeedNormal $euiAnimSlightResistance;
left: 0;
max-width: none !important;
z-index: $euiZContentMenu;

@include euiBreakpoint('l', 'xl') {
top: 0 !important;
height: 100% !important;
}

@include euiBreakpoint('xs', 's', 'm') {
@include euiFlyout;
left: 10vw;
z-index: $euiZContentMenu;
position: absolute;
top: 0 !important;
}

.lnsFrameLayout__sidebar-isFullscreen & {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -317,12 +317,7 @@ export function LayerPanel(

return (
<>
<section
tabIndex={-1}
ref={registerLayerRef}
className="lnsLayerPanel"
style={{ visibility: isDimensionPanelOpen ? 'hidden' : 'visible' }}
>
<section tabIndex={-1} ref={registerLayerRef} className="lnsLayerPanel">
<EuiPanel data-test-subj={`lns-layerPanel-${layerIndex}`} paddingSize="none">
<header className="lnsLayerPanel__layerHeader">
<EuiFlexGroup gutterSize="s" responsive={false} alignItems="center">
Expand Down

0 comments on commit 78fb97b

Please sign in to comment.