From 03939b524a6d5931721c396f110d94eb5bdd9cd9 Mon Sep 17 00:00:00 2001 From: Leo Singer Date: Mon, 27 May 2024 17:46:25 -0400 Subject: [PATCH] Return to stable uswds and nasawds releases - https://github.com/uswds/uswds/issues/5825 has been fixed. - https://github.com/lpsinger/react-uswds/tree/gcn is the same as https://github.com/trussworks/react-uswds/pull/2726, but rebased. - I had to update some CSS where we have heavily customized the appearance of some USWDS components. --- app/components/CredentialCard.tsx | 53 ++++++++------- app/components/tabs/index.module.scss | 5 ++ app/img/checkbox-indeterminate.svg | 10 --- .../route.tsx | 9 ++- .../DateSelectorMenu.tsx | 7 +- .../SortSelectorButton.tsx | 7 +- .../circulars._archive._index/route.tsx | 6 +- .../RichEditor/index.tsx | 2 +- app/theme.scss | 25 ------- package-lock.json | 66 +++++++++++++++---- package.json | 4 +- 11 files changed, 108 insertions(+), 86 deletions(-) delete mode 100644 app/img/checkbox-indeterminate.svg diff --git a/app/components/CredentialCard.tsx b/app/components/CredentialCard.tsx index a27d7960f4..b296e5d304 100644 --- a/app/components/CredentialCard.tsx +++ b/app/components/CredentialCard.tsx @@ -9,6 +9,7 @@ import { Form, useFetcher } from '@remix-run/react' import type { ModalRef } from '@trussworks/react-uswds' import { Button, + ButtonGroup, Grid, Icon, Modal, @@ -54,33 +55,35 @@ export default function CredentialCard({
- - - Delete - -
- - -
+ Delete + +
+ + +
+
- - - - - diff --git a/app/routes/circulars.$circularId.($version)/route.tsx b/app/routes/circulars.$circularId.($version)/route.tsx index 5e8922f2d0..e6f77721c7 100644 --- a/app/routes/circulars.$circularId.($version)/route.tsx +++ b/app/routes/circulars.$circularId.($version)/route.tsx @@ -72,8 +72,11 @@ export default function () { }` return ( <> - - + +
{useSubmitterStatus() && ( Request Correction diff --git a/app/routes/circulars._archive._index/DateSelectorMenu.tsx b/app/routes/circulars._archive._index/DateSelectorMenu.tsx index c18d76f5a9..cc3fa1ba3d 100644 --- a/app/routes/circulars._archive._index/DateSelectorMenu.tsx +++ b/app/routes/circulars._archive._index/DateSelectorMenu.tsx @@ -42,11 +42,14 @@ function DateSelectorButton({ endDate?: string expanded?: boolean } & Omit[0], 'segmented' | 'children'>) { - const slimClasses = 'height-4 padding-y-0' + const slimClasses = 'padding-y-1' return ( - diff --git a/app/routes/circulars.edit.$circularId/RichEditor/index.tsx b/app/routes/circulars.edit.$circularId/RichEditor/index.tsx index 7f6aeb9612..6d959849f5 100644 --- a/app/routes/circulars.edit.$circularId/RichEditor/index.tsx +++ b/app/routes/circulars.edit.$circularId/RichEditor/index.tsx @@ -44,7 +44,7 @@ import iconTable from '@gitlab/svgs/dist/sprite_icons/table.svg' function SlimButton({ className, ...props }: Parameters[0]) { return (