Skip to content

Commit

Permalink
fix: kids-first#3255 remove underline in charts tooltip
Browse files Browse the repository at this point in the history
  • Loading branch information
celinepelletier committed May 20, 2021
1 parent 04ac56b commit d596977
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 11 deletions.
4 changes: 0 additions & 4 deletions src/components/Charts/Charts.module.css
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,3 @@
.tooltip-dx-chart-container {
min-width: 50px;
}

.tooltip-dx-chart-label, .tooltip-studies-chart-label {
text-decoration: underline;
}
5 changes: 3 additions & 2 deletions src/components/Charts/index.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
import React from 'react';

import 'ui/Tooltips/tooltips.scss';

export { default as MostFrequentDiagnosesChart } from './MostFrequentDiagnosesChart';
Expand All @@ -15,7 +16,7 @@ export const mostFrequentDiagnosisTooltip = (data) => {
const participants = familyMembers + probands;
return (
<div className={'tp-diagnosis-container'}>
<div className={'tp-label'}>{removeMondo(label)}</div>
<div>{removeMondo(label)}</div>
<div>{`${participants.toLocaleString()} Participant${participants !== 1 ? 's' : ''}`}</div>
</div>
);
Expand All @@ -26,7 +27,7 @@ export const studiesToolTip = (data) => {
const participants = familyMembers + probands;
return (
<div className={'tp-studies-container'}>
<div className={'tp-label'}>{label}</div>
<div>{label}</div>
<div>{`${probands.toLocaleString()} Proband${probands !== 1 ? 's' : ''}`}</div>
<div>{`${familyMembers.toLocaleString()} Other Participant${
familyMembers > 1 ? 's' : ''
Expand Down
6 changes: 1 addition & 5 deletions src/ui/Tooltips/tooltips.scss
Original file line number Diff line number Diff line change
Expand Up @@ -6,10 +6,6 @@
min-width: 50px;
}

.tp-label {
text-decoration: underline;
}

.tp-content {
font-size: 12px;
}
}

0 comments on commit d596977

Please sign in to comment.