Skip to content

Commit

Permalink
fix: adjust form footer styles
Browse files Browse the repository at this point in the history
  • Loading branch information
cooper-joe committed Dec 16, 2024
1 parent c43aa2a commit 1be5c38
Show file tree
Hide file tree
Showing 6 changed files with 27 additions and 13 deletions.
7 changes: 4 additions & 3 deletions src/app/layout/Layout.module.css
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@
.wrapperWithFooter {
composes: wrapper;
grid-template-areas: 'sidebar' 'main' 'footer';
grid-template-rows: auto 1fr 68px;
grid-template-rows: auto 1fr 44px;
overflow-y: auto;
}

Expand Down Expand Up @@ -50,8 +50,9 @@
.footerPlaceholder {
grid-area: footer;
width: 100vw;
padding: var(--spacers-dp16) 0;
padding: 0;
background: var(--colors-white);
border-top: 1px solid red;
}

@media m-medium {
Expand All @@ -64,7 +65,7 @@
}
.wrapperWithFooter {
grid-template-areas: 'sidebar main' 'footer footer';
grid-template-rows: 1fr 68px;
grid-template-rows: 1fr 44px;
}
.sidebar {
width: 240px;
Expand Down
6 changes: 4 additions & 2 deletions src/components/form/DefaultFormContents.module.css
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,9 @@
left: 0;
bottom: 0;
width: 100vw;
padding: var(--spacers-dp16);
box-shadow: 0 0 3px rgba(0, 0, 0, 0.8);
padding: var(--spacers-dp8) var(--spacers-dp16);
box-shadow: 0px 0px 1px 0px rgba(33, 41, 52, 0.1),
0px -4px 6px -1px rgba(33, 41, 52, 0.1),
0px -2px 4px -1px rgba(33, 41, 52, 0.06);
background: var(--colors-white);
}
9 changes: 7 additions & 2 deletions src/components/standardForm/StandardFormActions.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -23,12 +23,17 @@ export function StandardFormActions({
}) {
return (
<ButtonStrip>
<Button primary disabled={submitting} type="submit">
<Button primary small disabled={submitting} type="submit">
{submitting && <LoadingIcon />}
{submitLabel}
</Button>

<Button disabled={submitting} onClick={onCancelClick}>
<Button
secondary
small
disabled={submitting}
onClick={onCancelClick}
>
{cancelLabel}
</Button>
</ButtonStrip>
Expand Down
6 changes: 4 additions & 2 deletions src/pages/dataElementGroupSets/Edit.module.css
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,9 @@
left: 0;
bottom: 0;
width: 100vw;
padding: var(--spacers-dp16);
box-shadow: 0 0 3px rgba(0, 0, 0, 0.8);
padding: var(--spacers-dp8) var(--spacers-dp16);
box-shadow: 0px 0px 1px 0px rgba(33, 41, 52, 0.1),
0px -4px 6px -1px rgba(33, 41, 52, 0.1),
0px -2px 4px -1px rgba(33, 41, 52, 0.06);
background: var(--colors-white);
}
6 changes: 4 additions & 2 deletions src/pages/dataElementGroups/Edit.module.css
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,9 @@
left: 0;
bottom: 0;
width: 100vw;
padding: var(--spacers-dp16);
box-shadow: 0 0 3px rgba(0, 0, 0, 0.8);
padding: var(--spacers-dp8) var(--spacers-dp16);
box-shadow: 0px 0px 1px 0px rgba(33, 41, 52, 0.1),
0px -4px 6px -1px rgba(33, 41, 52, 0.1),
0px -2px 4px -1px rgba(33, 41, 52, 0.06);
background: var(--colors-white);
}
6 changes: 4 additions & 2 deletions src/pages/dataElements/Edit.module.css
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,9 @@
left: 0;
bottom: 0;
width: 100vw;
padding: var(--spacers-dp16);
box-shadow: 0 0 3px rgba(0, 0, 0, 0.8);
padding: var(--spacers-dp8) var(--spacers-dp16);
box-shadow: 0px 0px 1px 0px rgba(33, 41, 52, 0.1),
0px -4px 6px -1px rgba(33, 41, 52, 0.1),
0px -2px 4px -1px rgba(33, 41, 52, 0.06);
background: var(--colors-white);
}

0 comments on commit 1be5c38

Please sign in to comment.