Skip to content

Commit

Permalink
add font size for consistency and some margin top to org name
Browse files Browse the repository at this point in the history
  • Loading branch information
cammiida committed Dec 11, 2024
1 parent bcbe457 commit 137b6d7
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -44,6 +44,7 @@
}

.orgname {
margin-top: var(--fds-spacing-1);
grid-area: orgname;
align-self: start;
}
Expand Down
4 changes: 2 additions & 2 deletions src/layout/OrganisationLookup/OrganisationLookupComponent.tsx
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import React, { useState } from 'react';

import { ErrorMessage } from '@digdir/designsystemet-react';
import { ErrorMessage, Paragraph } from '@digdir/designsystemet-react';
import { queryOptions, useQuery } from '@tanstack/react-query';

import type { PropsFromGenericComponent } from '..';
Expand Down Expand Up @@ -198,7 +198,7 @@ export function OrganisationLookupComponent({
className={classes.orgname}
aria-label={langAsString('organisation_lookup.org_name')}
>
{hasSuccessfullyFetched && <span>{orgName}</span>}
{hasSuccessfullyFetched && <Paragraph size='sm'>{orgName}</Paragraph>}
</div>
</div>
</ComponentStructureWrapper>
Expand Down

0 comments on commit 137b6d7

Please sign in to comment.