Skip to content

Commit

Permalink
Use changed Alert API
Browse files Browse the repository at this point in the history
  • Loading branch information
VincentSmedinga committed Jun 7, 2024
1 parent 9ec5da7 commit fe252cd
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions packages/react/src/FormErrorList/FormErrorList.test.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -63,9 +63,9 @@ describe('Form error list', () => {
})

it('renders a custom heading', () => {
render(<FormErrorList errors={testErrors} heading="Testheading" />)
render(<FormErrorList errors={testErrors} heading="Test heading" />)

const component = screen.getByRole('heading', { name: 'Testheading' })
const component = screen.getByRole('heading', { name: 'Test heading' })

expect(component).toBeInTheDocument()
})
Expand Down
2 changes: 1 addition & 1 deletion packages/react/src/FormErrorList/FormErrorList.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -44,11 +44,11 @@ export const FormErrorList = forwardRef(
<Alert
{...restProps}
className={clsx('ams-form-error-list', className)}
heading={heading}
headingLevel={headingLevel}
ref={ref}
role="alert"
severity="error"
title={heading}
>
<LinkList>
{errors.map(({ id, label }) => (
Expand Down

0 comments on commit fe252cd

Please sign in to comment.