Skip to content

Commit

Permalink
Adds special case for bottompositioned legend.
Browse files Browse the repository at this point in the history
  • Loading branch information
varunsharma27 committed May 14, 2018
1 parent 372ad32 commit 7ba68da
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 1 deletion.
9 changes: 9 additions & 0 deletions src/ui/public/vislib/styles/_legend.less
Original file line number Diff line number Diff line change
Expand Up @@ -110,6 +110,15 @@ visualize-legend {

}

.legend-value-details-bottom {
border-bottom: 1px solid @sidebar-bg;
position: absolute;
bottom: 5%;
margin-bottom: 15px;
background-color: white;

}

.legend-value-color-picker {
width: 130px;
margin: auto;
Expand Down
2 changes: 1 addition & 1 deletion src/ui/public/visualize/visualize_legend.js
Original file line number Diff line number Diff line change
Expand Up @@ -89,7 +89,7 @@ uiModules.get('kibana')
case 'top':
return 'legend-value-details-top';
case 'bottom':
return 'legend-value-details';
return 'legend-value-details-bottom';
case 'left':
return 'legend-value-details';
case 'right':
Expand Down

0 comments on commit 7ba68da

Please sign in to comment.