File tree Expand file tree Collapse file tree 3 files changed +8
-4
lines changed
Expand file tree Collapse file tree 3 files changed +8
-4
lines changed Original file line number Diff line number Diff line change @@ -45,3 +45,7 @@ The `WarningCallout.Label` now has the hidden text `Important: ` before the labe
4545 Something Much Less Important
4646< / WarningCallout .Label >
4747```
48+
49+ ## Hint component renders as div
50+
51+ The ` Hint ` component now renders as a ` div ` element rather than a ` span ` .
Original file line number Diff line number Diff line change 11import React , { HTMLProps } from 'react' ;
22import classNames from 'classnames' ;
33
4- export type HintProps = HTMLProps < HTMLSpanElement > ;
4+ export type HintProps = HTMLProps < HTMLDivElement > ;
55
66const Hint : React . FC < HintProps > = ( { className, ...rest } ) => (
7- < span className = { classNames ( 'nhsuk-hint' , className ) } { ...rest } />
7+ < div className = { classNames ( 'nhsuk-hint' , className ) } { ...rest } />
88) ;
99
1010export default Hint ;
Original file line number Diff line number Diff line change 11// Jest Snapshot v1, https://goo.gl/fbAQLP
22
33exports [` Hint matches snapshot: Hint 1` ] = `
4- <span
4+ <div
55 className = " nhsuk-hint"
66>
77 Text
8- </span >
8+ </div >
99` ;
You can’t perform that action at this time.
0 commit comments