Skip to content

Commit

Permalink
style: incorporate style changes in review
Browse files Browse the repository at this point in the history
  • Loading branch information
rshen91 committed Nov 17, 2020
1 parent c78bfce commit f751a99
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 1 deletion.
5 changes: 4 additions & 1 deletion src/components/legend/_legend.scss
Original file line number Diff line number Diff line change
Expand Up @@ -43,11 +43,14 @@
width: 100%;
overflow-y: auto;

.echLegendItem--right :focus {
margin-right: $euiSizeXS;
}

:focus {
@include euiFocusRing;
background-color: $euiFocusBackgroundColor;
border-radius: $euiBorderRadius / 2;
margin-right: $euiSizeXS;
}
}
}
4 changes: 4 additions & 0 deletions src/components/legend/_legend_item.scss
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,10 @@ $legendItemVerticalPadding: $echLegendRowGap / 2;
}

&__color {
display: flex;
align-items: center;
// makes the color picker to have the same height as the legend
height: 18px;
margin-right: $euiSizeXS;
margin-left: $euiSizeXS;

Expand Down

0 comments on commit f751a99

Please sign in to comment.