Skip to content

Commit a3ba20d

Browse files
ThomasThomas
authored andcommitted
Render Hint as div, not span
1 parent 3345d95 commit a3ba20d

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

src/components/hint/Hint.tsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,10 @@
11
import React, { HTMLProps } from 'react';
22
import classNames from 'classnames';
33

4-
export type HintProps = HTMLProps<HTMLSpanElement>;
4+
export type HintProps = HTMLProps<HTMLDivElement>;
55

66
const Hint: React.FC<HintProps> = ({ className, ...rest }) => (
7-
<span className={classNames('nhsuk-hint', className)} {...rest} />
7+
<div className={classNames('nhsuk-hint', className)} {...rest} />
88
);
99

1010
export default Hint;
Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,9 @@
11
// Jest Snapshot v1, https://goo.gl/fbAQLP
22

33
exports[`Hint matches snapshot: Hint 1`] = `
4-
<span
4+
<div
55
className="nhsuk-hint"
66
>
77
Text
8-
</span>
8+
</div>
99
`;

0 commit comments

Comments
 (0)