Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Feature/lookup-adjustments #2787

Merged
merged 3 commits into from
Dec 6, 2024
Merged
Show file tree
Hide file tree
Changes from 2 commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,9 @@
'orgname'
'submit'
'apiError';
gap: var(--fds-spacing-2);
}
.submit {
margin-top: var(--fds-spacing-6);
}
}

Expand All @@ -21,7 +23,10 @@
'orgname .'
'apiError .';
align-items: end;
column-gap: var(--fds-spacing-2);
column-gap: var(--fds-spacing-6);
}
.submit {
margin-top: 0;
}
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -146,6 +146,7 @@ export function OrganisationLookupComponent({
<Description
description={langAsString('organisation_lookup.from_registry_description')}
componentId={`${id}_orgnr`}
style={{ fontSize: '1rem' }}
HauklandJ marked this conversation as resolved.
Show resolved Hide resolved
/>
) : undefined
}
Expand Down
12 changes: 10 additions & 2 deletions src/layout/PersonLookup/PersonLookupComponent.module.css
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,11 @@
@media only screen and (min-width: 0) {
.componentWrapper {
grid-template-areas: 'ssnLabel' 'ssn' 'nameLabel' 'name' 'submit' 'apiError';
gap: var(--fds-spacing-2);
}

.nameLabel,
.submit {
margin-top: var(--fds-spacing-6);
}
}

Expand All @@ -12,7 +16,11 @@
grid-template-columns: repeat(2, minmax(250px, 250px)) auto;
grid-template-areas: 'ssnLabel nameLabel .' 'ssn name submit' 'apiError apiError .';
align-items: end;
column-gap: var(--fds-spacing-2);
column-gap: var(--fds-spacing-6);
}
.nameLabel,
.submit {
margin-top: 0;
}
}

Expand Down
2 changes: 2 additions & 0 deletions src/layout/PersonLookup/PersonLookupComponent.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -167,6 +167,7 @@ export function PersonLookupComponent({ node, overrideDisplay }: PropsFromGeneri
<Description
description={langAsString('person_lookup.from_registry_description')}
componentId={`${id}_ssn`}
style={{ fontSize: '1rem' }}
/>
) : undefined
}
Expand Down Expand Up @@ -202,6 +203,7 @@ export function PersonLookupComponent({ node, overrideDisplay }: PropsFromGeneri
<Description
description={langAsString('person_lookup.from_registry_description')}
componentId={`${id}_name`}
style={{ fontSize: '1rem' }}
/>
) : undefined
}
Expand Down
Loading