From c162080f359a77aface7aebb4cff23e3f87011cd Mon Sep 17 00:00:00 2001 From: Abhishek Dasgupta Date: Thu, 27 Oct 2022 15:53:10 +0100 Subject: [PATCH] curator/ui: use Inter everywhere We have been using a combination of Mabry Pro and Inter, with Roboto in a few places, which is the default Material UI font. This changes all interface fonts to Inter, and brings the line list portal in sync with the maps, which use Inter. --- .../ui/src/components/DataGuideDialog.tsx | 2 + .../src/components/LinelistTable/Header.tsx | 2 +- .../ui/src/components/ViewCase.tsx | 5 +- verification/curator-service/ui/src/index.css | 95 ++----------------- .../curator-service/ui/src/theme/theme.ts | 23 ++++- 5 files changed, 34 insertions(+), 93 deletions(-) diff --git a/verification/curator-service/ui/src/components/DataGuideDialog.tsx b/verification/curator-service/ui/src/components/DataGuideDialog.tsx index b06a565e7..de9774773 100644 --- a/verification/curator-service/ui/src/components/DataGuideDialog.tsx +++ b/verification/curator-service/ui/src/components/DataGuideDialog.tsx @@ -40,6 +40,7 @@ const styles = (theme: Theme) => cursor: 'pointer', }, title: { + fontFamily: 'Inter', fontSize: 22, fontWeight: 'bold', }, @@ -60,6 +61,7 @@ const styles = (theme: Theme) => }, }, textSection: { + fontFamily: 'Inter', marginBottom: '1rem', }, }); diff --git a/verification/curator-service/ui/src/components/LinelistTable/Header.tsx b/verification/curator-service/ui/src/components/LinelistTable/Header.tsx index 9e3266a3e..3ba72e034 100644 --- a/verification/curator-service/ui/src/components/LinelistTable/Header.tsx +++ b/verification/curator-service/ui/src/components/LinelistTable/Header.tsx @@ -52,7 +52,7 @@ const Header = () => { return ( - {diseaseName} Linelist + {diseaseName} Linelist Sort by diff --git a/verification/curator-service/ui/src/components/ViewCase.tsx b/verification/curator-service/ui/src/components/ViewCase.tsx index 068413479..832a20859 100644 --- a/verification/curator-service/ui/src/components/ViewCase.tsx +++ b/verification/curator-service/ui/src/components/ViewCase.tsx @@ -94,6 +94,7 @@ const useStyles = makeStyles((theme) => ({ }, caseTitle: { marginTop: '1em', + fontFamily: 'Inter', }, grid: { margin: '1em', @@ -848,7 +849,7 @@ function RowContent(props: { content: string; isLink?: boolean }): JSX.Element { words(searchQuery); return ( - + {props.isLink && props.content ? ( + {props.links?.map((e) => (