Skip to content

Commit

Permalink
ErrorMessage: remove content class wrapper
Browse files Browse the repository at this point in the history
  • Loading branch information
jennur committed Nov 10, 2023
1 parent 8cde6ba commit 852f1f2
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/lib/elements/ErrorMessage.js
Original file line number Diff line number Diff line change
Expand Up @@ -51,11 +51,11 @@ export class ErrorMessage extends Component {
return (
<Message icon {...uiProps}>
{icon && <Icon name={icon} />}
<Message.Content role="alert">
<div role="alert">
{header && <Message.Header>{header}</Message.Header>}
{content}
<p>{content}</p>
{!_isEmpty(errors) && <FieldErrorList fieldErrors={errors} />}
</Message.Content>
</div>
</Message>
);
}
Expand Down

0 comments on commit 852f1f2

Please sign in to comment.