Skip to content

Commit

Permalink
📝 Update Textfield example for readonly after feedback (#3448)
Browse files Browse the repository at this point in the history
  • Loading branch information
KenAJoh authored Dec 11, 2024
1 parent f120708 commit 36190f7
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 2 deletions.
2 changes: 1 addition & 1 deletion @navikt/core/css/darkside/form/form.darkside.css
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@

.navds-form-field__readonly-icon {
margin-top: var(--ax-spacing-05);
margin-right: var(--ax-spacing-2);
margin-right: var(--ax-spacing-1);
flex-shrink: 0;
align-self: flex-start;
}
Expand Down
9 changes: 8 additions & 1 deletion aksel.nav.no/website/pages/eksempler/textfield/readonly.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,14 @@ import { TextField } from "@navikt/ds-react";
import { withDsExample } from "@/web/examples/withDsExample";

const Example = () => {
return <TextField label="Har du noen tilbakemeldinger?" readOnly />;
return (
<TextField
label="Adresse"
description="Hentet fra Folkeregisteret"
value="Portveien 2"
readOnly
/>
);
};

// EXAMPLES DO NOT INCLUDE CONTENT BELOW THIS LINE
Expand Down

0 comments on commit 36190f7

Please sign in to comment.