Skip to content

Commit

Permalink
Hover state for table row selection (#117)
Browse files Browse the repository at this point in the history
Adjusts stylistic looks for table row selection.
  • Loading branch information
snide authored Nov 7, 2017
1 parent 34cef95 commit df6905d
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 2 deletions.
7 changes: 5 additions & 2 deletions src/components/table/_table.scss
Original file line number Diff line number Diff line change
Expand Up @@ -66,13 +66,16 @@
}

.euiTableRow {
transition: background-color $euiAnimSpeedFast $euiAnimSlightResistance;
&:hover {
background-color: tintOrShade($euiColorLightestShade, 50%, 20%);
}

&.euiTableRow-isSelected {
background-color: transparentize($euiColorPrimary, .95);
background-color: tintOrShade($euiFocusBackgroundColor, 30%, 0%);

&:hover {
background-color: tintOrShade($euiFocusBackgroundColor, 0, 10%);
}
}
}

Expand Down
2 changes: 2 additions & 0 deletions src/global_styling/theme_dark_variables.scss
Original file line number Diff line number Diff line change
Expand Up @@ -11,5 +11,7 @@ $euiColorPrimary: #4da1c0;
$euiColorDanger: #bf4d4d;
$euiTextColor: #DDD;

$euiFocusBackgroundColor: #191919;

// Configuration
@import 'variables/index';

0 comments on commit df6905d

Please sign in to comment.