Skip to content
This repository has been archived by the owner on Apr 25, 2024. It is now read-only.

Commit

Permalink
Update error messages to use paragraph tags instead of spans
Browse files Browse the repository at this point in the history
  • Loading branch information
andymantell committed Jan 29, 2022
1 parent 529a855 commit 7174941
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/govuk/components/error-message/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -10,10 +10,10 @@ function ErrorMessage(props) {
}

return (
<span className={`govuk-error-message ${className || ''}`} {...attributes}>
<p className={`govuk-error-message ${className || ''}`} {...attributes}>
{visuallyHiddenTextComponent}
{children}
</span>
</p>
);
}

Expand Down

0 comments on commit 7174941

Please sign in to comment.