Skip to content

Commit

Permalink
improve sidebar toggle
Browse files Browse the repository at this point in the history
  • Loading branch information
andreadelrio committed Sep 16, 2020
1 parent e79be95 commit 31cf12f
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 5 deletions.
11 changes: 8 additions & 3 deletions src/plugins/discover/public/application/_discover.scss
Original file line number Diff line number Diff line change
Expand Up @@ -22,9 +22,12 @@ discover-app {

// SASSTODO: replace the z-index value with a variable
.dscWrapper {
padding-left: $euiSizeXL;
padding-right: $euiSizeS;
padding-left: 22px;
z-index: 1;
@include euiBreakpoint('xs', 's', 'm') {
padding-left: $euiSizeS;
}
}

@include euiPanel('.dscWrapper__content');
Expand Down Expand Up @@ -128,7 +131,7 @@ discover-app {
.dscCollapsibleSidebar__collapseButton {
position: absolute;
top: 0;
right: -20px;
right: -$euiSizeXL + 4;
cursor: pointer;
z-index: -1;
min-height: $euiSizeM;
Expand All @@ -140,6 +143,9 @@ discover-app {
width: 0 !important;
border-right-width: 0;
border-left-width: 0;
.dscCollapsibleSidebar__collapseButton {
right: -$euiSizeL + 4;
}
}
}

Expand All @@ -154,4 +160,3 @@ discover-app {
}
}
}

Original file line number Diff line number Diff line change
Expand Up @@ -195,8 +195,8 @@ export function DiscoverLegacy({
</div>
)}
<EuiButtonIcon
iconType={isSidebarClosed ? 'arrowRight' : 'arrowLeft'}
iconSize="s"
iconType={isSidebarClosed ? 'menuRight' : 'menuLeft'}
iconSize="m"
size="s"
onClick={() => setIsSidebarClosed(!isSidebarClosed)}
data-test-subj="collapseSideBarButton"
Expand Down

0 comments on commit 31cf12f

Please sign in to comment.