From 9f0f60b5eb676693b8fe9068d4b581019ff58b23 Mon Sep 17 00:00:00 2001 From: Severiano Badajoz Date: Thu, 11 Jul 2019 15:33:44 -0700 Subject: [PATCH] add point dilatation on hover (#841) * enable centroid * introduce new sizing * scale point size based off hovered category * add styling * fix margins * disable centroid labels * remove unused code and add detail to comment * remove cell dilation on selection toggle * move hover to name label * hover on value except for checkbox * add border radius to value --- .../components/categorical/categorical.css | 3 ++ client/src/components/categorical/value.js | 21 +++++++---- client/src/components/graph/graph.js | 36 ++++++++++++++----- 3 files changed, 45 insertions(+), 15 deletions(-) diff --git a/client/src/components/categorical/categorical.css b/client/src/components/categorical/categorical.css index e69de29b..7f6051de 100644 --- a/client/src/components/categorical/categorical.css +++ b/client/src/components/categorical/categorical.css @@ -0,0 +1,3 @@ +:local(.value):hover { + background: rgba(167, 182, 194, 0.3); +} diff --git a/client/src/components/categorical/value.js b/client/src/components/categorical/value.js index 9a50698b..cf1d015b 100644 --- a/client/src/components/categorical/value.js +++ b/client/src/components/categorical/value.js @@ -3,6 +3,7 @@ import { connect } from "react-redux"; import React from "react"; import Occupancy from "./occupancy"; import * as globals from "../../globals"; +import styles from "./categorical.css"; @connect(state => ({ categoricalSelection: state.categoricalSelection, @@ -107,14 +108,18 @@ class CategoryValue extends React.Component { return (
-