Skip to content

Commit

Permalink
style: registration form spacing
Browse files Browse the repository at this point in the history
KK-1072.

Restyle margins and paddings in registration form,
since many fields were too close to each others.
  • Loading branch information
nikomakela committed Mar 27, 2024
1 parent 950c669 commit 7d1b342
Show file tree
Hide file tree
Showing 6 changed files with 15 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -40,6 +40,7 @@ function CheckboxField(props: Props) {
<Checkbox
{...props}
{...field}
className={styles.checkboxField}
type="checkbox"
style={kukkuuCheckboxStyles}
checked={Boolean(field.value)}
Expand Down
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
.checkboxField {
margin: var(--spacing-xs);
}

.errorText {
color: var(--color-error);
}
2 changes: 1 addition & 1 deletion src/domain/home/__tests__/__snapshots__/Home.test.tsx.snap
Original file line number Diff line number Diff line change
Expand Up @@ -537,7 +537,7 @@ exports[`<Home /> > renders snapshot correctly 1`] = `
</div>
<div>
<div
class="Checkbox-module_checkbox__3L0GR checkbox_hds-checkbox__9HMCz"
class="Checkbox-module_checkbox__3L0GR checkbox_hds-checkbox__9HMCz _checkboxField_639ec5"
style="--background-hover: var(--color-summer-dark); --background-selected: var(--color-summer); --background-color-selected-hover: var(--color-summer-dark); --background-color-selected-focus: var(--color-summer-dark); --background-color-selected-hover-focus: var(--color-summer-dark); --border-color-selected: var(--color-summer); --border-color-selected-hover: var(--color-summer-dark); --border-color-selected-focus: var(--color-summer-dark); --border-color-selected-hover-focus: var(--color-summer-dark); --icon-color-selected: var(--color-black);"
>
<input
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -90,7 +90,7 @@ exports[`renders snapshot correctly 1`] = `
</div>
<div>
<div
class="Checkbox-module_checkbox__3L0GR checkbox_hds-checkbox__9HMCz"
class="Checkbox-module_checkbox__3L0GR checkbox_hds-checkbox__9HMCz _checkboxField_639ec5"
style="--background-hover: var(--color-summer-dark); --background-selected: var(--color-summer); --background-color-selected-hover: var(--color-summer-dark); --background-color-selected-focus: var(--color-summer-dark); --background-color-selected-hover-focus: var(--color-summer-dark); --border-color-selected: var(--color-summer); --border-color-selected-hover: var(--color-summer-dark); --border-color-selected-focus: var(--color-summer-dark); --border-color-selected-hover-focus: var(--color-summer-dark); --icon-color-selected: var(--color-black);"
>
<input
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,7 @@ $childIconHeight: 4rem;
grid-template-columns: 1fr 1fr;
grid-gap: $baseMargin;
}
padding: $baseMargin 0;
}

.childBirthyear,
Expand All @@ -45,6 +46,7 @@ $childIconHeight: 4rem;
display: flex;
flex-direction: row;
align-items: center;
padding: $baseMargin 0;

h2 {
flex-grow: 1;
Expand Down
7 changes: 6 additions & 1 deletion src/domain/registration/form/registrationForm.module.scss
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ $plusIconHeight: 2rem;
}

.submitButton {
margin: $largeMargin 0;
margin: $largeMargin 0 !important;
}

.addNewChildButton {
Expand Down Expand Up @@ -62,6 +62,7 @@ $plusIconHeight: 2rem;
> * {
grid-column: 2;
}
margin: $baseMargin;
}

.guardianInfo {
Expand All @@ -72,3 +73,7 @@ $plusIconHeight: 2rem;
height: $plusIconHeight;
width: $plusIconHeight;
}

.heading {
padding: $baseMargin;
}

0 comments on commit 7d1b342

Please sign in to comment.