Skip to content

Commit

Permalink
Adjust example heading text for ErrorSummary (#3126)
Browse files Browse the repository at this point in the history
  • Loading branch information
HalvorHaugan committed Aug 30, 2024
1 parent 32c13c0 commit 2c346a8
Show file tree
Hide file tree
Showing 5 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion @navikt/core/react/src/form/error-summary/ErrorSummary.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,7 @@ interface ErrorSummaryComponent
*
* @example
* ```jsx
* <ErrorSummary heading="Du må fikse disse feilene før du kan sende inn søknad.">
* <ErrorSummary heading="Du må rette disse feilene før du kan sende inn søknaden:">
* <ErrorSummary.Item href="#1">
* Felt må fylles ut med alder
* </ErrorSummary.Item>
Expand Down
2 changes: 1 addition & 1 deletion aksel.nav.no/website/pages/eksempler/errorsummary/demo.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ import { withDsExample } from "@/web/examples/withDsExample";

const Example = () => {
return (
<ErrorSummary heading="Du må fikse disse feilene før du kan sende inn søknad.">
<ErrorSummary heading="Du må rette disse feilene før du kan sende inn søknaden:">
<ErrorSummary.Item href="#1">
Felt må fylles ut med alder
</ErrorSummary.Item>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ import { withDsExample } from "@/web/examples/withDsExample";
const Example = () => {
return (
<ErrorSummary
heading="Du må fikse disse feilene før du kan sende inn søknad."
heading="Du må rette disse feilene før du kan sende inn søknaden:"
headingTag="h3"
>
<ErrorSummary.Item href="#1">
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ const Example = () => {
{hasError && (
<ErrorSummary
ref={errorRef}
heading="Du må fikse disse feilene før du kan sende inn søknad."
heading="Du må rette disse feilene før du kan sende inn søknaden:"
>
<ErrorSummary.Item href="#1">
Felt må fylles ut med alder
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ import { withDsExample } from "@/web/examples/withDsExample";
const Example = () => {
return (
<ErrorSummary
heading="Du må fikse disse feilene før du kan sende inn søknad."
heading="Du må rette disse feilene før du kan sende inn søknaden:"
size="small"
>
<ErrorSummary.Item href="#1">
Expand Down

0 comments on commit 2c346a8

Please sign in to comment.