From f7bfc979ba34eae0c147c7f9fdaf52afc83118b7 Mon Sep 17 00:00:00 2001 From: TomNUSDS <74203452+TomNUSDS@users.noreply.github.com> Date: Thu, 19 Aug 2021 17:34:12 -0700 Subject: [PATCH] Fix putting elements under

(#521) * Fix putting elements under

* Added Jest test to catch this mistake in the future. It does it by watching console.error(). To add in fixing the bug the test's emulated `console.error()` are echoed to the jest console.error() so they are not lost. * I tested this by putting a `

` back into the `

` and it caught it. * Update scoreStepsList.test.tsx * added comment to move console.error ticket to global location Co-authored-by: Vim <86254807+vim-usds@users.noreply.github.com> --- .../scoreStepsList.test.tsx.snap | 24 ++-- client/src/components/scoreStepsList.test.tsx | 12 ++ client/src/components/scoreStepsList.tsx | 133 ++++++++++-------- client/src/styles/global.scss | 7 + 4 files changed, 104 insertions(+), 72 deletions(-) diff --git a/client/src/components/__snapshots__/scoreStepsList.test.tsx.snap b/client/src/components/__snapshots__/scoreStepsList.test.tsx.snap index 7c8c915f..d60630ab 100644 --- a/client/src/components/__snapshots__/scoreStepsList.test.tsx.snap +++ b/client/src/components/__snapshots__/scoreStepsList.test.tsx.snap @@ -13,14 +13,17 @@ exports[`rendering of the component should match the snapshot of the MapIntroduc > Gather datasets

-

Data inputs

- The cumulative index score includes the following equally weighted inputs. - + + ); }; diff --git a/client/src/styles/global.scss b/client/src/styles/global.scss index b16209ef..06cecaf8 100644 --- a/client/src/styles/global.scss +++ b/client/src/styles/global.scss @@ -407,6 +407,13 @@ $primary-color: #112f4e; } } +ul.j40-process-nested-list { + margin-bottom: 2rem; + > li { + list-style-type: disc; /* without this, we get hollow circles */ + } +} + /* these are currently used in the list, but it seems like they should be globally consistent with the rest of the site */ .j40-item-list-title { margin-block-end: auto;