From 90908532fac8b7855787120bafa335d2741034b1 Mon Sep 17 00:00:00 2001 From: Vim <86254807+vim-usds@users.noreply.github.com> Date: Mon, 16 May 2022 11:59:09 -0400 Subject: [PATCH] Add copy to sidepanel on unselected and correct typo on Traffic data (#1646) * Add copy to sidepanel - add copy - add spanish copy - update snapshots - udpate en.json and es.json * Fix typo on Traffic data * Reduce sidepanel title font size to x-large --- .../tests/__snapshots__/datasetContainer.test.tsx.snap | 2 +- .../components/SidePanelInfo/SidePanelInfo.module.scss | 8 +++++++- .../SidePanelInfo/SidePanelInfo.module.scss.d.ts | 1 + client/src/components/SidePanelInfo/SidePanelInfo.tsx | 9 ++++++--- .../__snapshots__/SidePanelInfo.test.tsx.snap | 7 +++++++ .../components/__snapshots__/mapInfoPanel.test.tsx.snap | 7 +++++++ client/src/data/copy/explore.tsx | 7 +++++++ client/src/data/copy/methodology.tsx | 2 +- client/src/intl/en.json | 6 +++++- client/src/intl/es.json | 1 + .../pages/tests/__snapshots__/methodology.test.tsx.snap | 2 +- 11 files changed, 44 insertions(+), 8 deletions(-) diff --git a/client/src/components/DatasetContainer/tests/__snapshots__/datasetContainer.test.tsx.snap b/client/src/components/DatasetContainer/tests/__snapshots__/datasetContainer.test.tsx.snap index f764f1c9..ada07980 100644 --- a/client/src/components/DatasetContainer/tests/__snapshots__/datasetContainer.test.tsx.snap +++ b/client/src/components/DatasetContainer/tests/__snapshots__/datasetContainer.test.tsx.snap @@ -484,7 +484,7 @@ exports[`rendering of the DatasetContainer checks if various text fields are vis rel="noreferrer" target="_blank" > - Traffic Data + Traffic data from 2017 as compiled by EPA's EJScreen diff --git a/client/src/components/SidePanelInfo/SidePanelInfo.module.scss b/client/src/components/SidePanelInfo/SidePanelInfo.module.scss index c882063d..310f212d 100644 --- a/client/src/components/SidePanelInfo/SidePanelInfo.module.scss +++ b/client/src/components/SidePanelInfo/SidePanelInfo.module.scss @@ -7,11 +7,17 @@ @include u-padding-left(4); @include u-padding-bottom(4); - .sidePanelInfoHeading { + .sidePanelInfoTitle { @include u-padding-top(2); font-size: x-large; line-height: 1.9rem; } + + .sidePanelInfoHeading { + @include u-padding-top(2); + font-size: x-large; + // line-height: 1.9rem; + } .sidePanelInfoIcon { @include u-height(5); diff --git a/client/src/components/SidePanelInfo/SidePanelInfo.module.scss.d.ts b/client/src/components/SidePanelInfo/SidePanelInfo.module.scss.d.ts index 4eb36998..20dcdbb5 100644 --- a/client/src/components/SidePanelInfo/SidePanelInfo.module.scss.d.ts +++ b/client/src/components/SidePanelInfo/SidePanelInfo.module.scss.d.ts @@ -1,6 +1,7 @@ declare namespace MapIntroductionModuleScssNamespace { export interface IMapIntroductionModuleScss { sidePanelInfoContainer: string; + sidePanelInfoTitle: string; sidePanelInfoHeading: string; sidePanelInfoIcon: string; } diff --git a/client/src/components/SidePanelInfo/SidePanelInfo.tsx b/client/src/components/SidePanelInfo/SidePanelInfo.tsx index 37c3a2bd..cf43d108 100644 --- a/client/src/components/SidePanelInfo/SidePanelInfo.tsx +++ b/client/src/components/SidePanelInfo/SidePanelInfo.tsx @@ -13,18 +13,21 @@ import upDown from '../../images/sidePanelIcons/upDown.svg'; import * as styles from './SidePanelInfo.module.scss'; import * as EXPLORE_COPY from '../../data/copy/explore'; -const MapIntroduction = () => { +const SidePanelInfo = () => { const intl = useIntl(); return (