Skip to content

Commit

Permalink
chore: Enhance ReactChord style with theme vars (apache#19517)
Browse files Browse the repository at this point in the history
* Enhance style with theme vars

* Update superset-frontend/plugins/legacy-plugin-chart-chord/src/ReactChord.jsx

Co-authored-by: Michael S. Molina <[email protected]>

Co-authored-by: Michael S. Molina <[email protected]>
  • Loading branch information
2 people authored and philipher29 committed Jun 9, 2022
1 parent 15da250 commit 99a0683
Showing 1 changed file with 16 additions and 14 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -39,18 +39,20 @@ Chord.propTypes = {
};

export default styled(Chord)`
.superset-legacy-chart-chord svg #circle circle {
fill: none;
pointer-events: all;
}
.superset-legacy-chart-chord svg .group path {
fill-opacity: 0.6;
}
.superset-legacy-chart-chord svg path.chord {
stroke: #000;
stroke-width: 0.25px;
}
.superset-legacy-chart-chord svg #circle:hover path.fade {
opacity: 0.2;
}
${({ theme }) => `
.superset-legacy-chart-chord svg #circle circle {
fill: none;
pointer-events: all;
}
.superset-legacy-chart-chord svg .group path {
fill-opacity: ${theme.opacity.mediumHeavy};
}
.superset-legacy-chart-chord svg path.chord {
stroke: ${theme.colors.grayscale.dark2};
stroke-width: 0.25px;
}
.superset-legacy-chart-chord svg #circle:hover path.fade {
opacity: ${theme.opacity.light};
}
`}
`;

0 comments on commit 99a0683

Please sign in to comment.