Skip to content

Commit

Permalink
Fixed the node stack display bug.
Browse files Browse the repository at this point in the history
  • Loading branch information
fbarl committed Feb 8, 2017
1 parent 14a555f commit c8c6dd8
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions client/app/scripts/charts/node-shape-stack.js
Original file line number Diff line number Diff line change
@@ -1,9 +1,12 @@
import React from 'react';

import { NODE_BASE_SIZE } from '../constants/styles';
import { isContrastMode } from '../utils/contrast-utils';

export default function NodeShapeStack(props) {
const dy = isContrastMode() ? 0.15 : 0.1;
const highlightScale = [1, 1 + dy];
const shift = isContrastMode() ? 0.15 : 0.1;
const highlightScale = [1, 1 + shift];
const dy = NODE_BASE_SIZE * shift;

const Shape = props.shape;
return (
Expand Down

0 comments on commit c8c6dd8

Please sign in to comment.