@@ -21,7 +21,7 @@ export const Standard: Story = {
2121 < h5 > Component</ h5 >
2222 < DateInput
2323 legend = "What is your date of birth?"
24- legendProps = { { size : 'l' } }
24+ legendProps = { { isPageHeading : true , size : 'l' } }
2525 hint = "For example, 15 3 1984"
2626 onChange = { ( e ) => console . log ( e . target . value ) }
2727 />
@@ -41,7 +41,7 @@ export const StandardWithError: Story = {
4141 < h5 > Component</ h5 >
4242 < DateInput
4343 legend = "What is your date of birth?"
44- legendProps = { { size : 'l' } }
44+ legendProps = { { isPageHeading : true , size : 'l' } }
4545 hint = "For example, 15 3 1984"
4646 error = "Enter your date of birth"
4747 onChange = { ( e ) => console . log ( e . target . value ) }
@@ -51,7 +51,7 @@ export const StandardWithError: Story = {
5151 < DateInput
5252 hint = "For example, 15 3 1984"
5353 legend = "What is your date of birth?"
54- legendProps = { { size : 'l' } }
54+ legendProps = { { isPageHeading : true , size : 'l' } }
5555 error = "Date of birth must include a day"
5656 onChange = { ( e ) => console . log ( e . target . value ) }
5757 >
@@ -71,7 +71,7 @@ export const PrePopulatedIndividualComponents: Story = {
7171 < h5 > Component</ h5 >
7272 < DateInput
7373 legend = "What is your date of birth?"
74- legendProps = { { size : 'l' } }
74+ legendProps = { { isPageHeading : true , size : 'l' } }
7575 hint = "For example, 15 3 1984"
7676 >
7777 < DateInput . Day defaultValue = { defaultValue . day } />
@@ -91,7 +91,7 @@ export const PrePopulatedWrapper: Story = {
9191 < h5 > Component</ h5 >
9292 < DateInput
9393 legend = "What is your date of birth?"
94- legendProps = { { size : 'l' } }
94+ legendProps = { { isPageHeading : true , size : 'l' } }
9595 hint = "For example, 15 3 1984"
9696 defaultValue = { defaultValue }
9797 />
@@ -108,7 +108,7 @@ export const ControlledElementIndividualComponents: Story = {
108108 < h5 > Component</ h5 >
109109 < DateInput
110110 legend = "What is your date of birth?"
111- legendProps = { { size : 'l' } }
111+ legendProps = { { isPageHeading : true , size : 'l' } }
112112 hint = "For example, 15 3 1984"
113113 >
114114 < DateInput . Day value = { value . day } />
@@ -128,7 +128,7 @@ export const ControlledElementWrapper: Story = {
128128 < h5 > Component</ h5 >
129129 < DateInput
130130 legend = "What is your date of birth?"
131- legendProps = { { size : 'l' } }
131+ legendProps = { { isPageHeading : true , size : 'l' } }
132132 hint = "For example, 15 3 1984"
133133 value = { value }
134134 />
@@ -148,7 +148,7 @@ export const ChangeableControlledElement: Story = {
148148 return (
149149 < DateInput
150150 legend = "What is your date of birth?"
151- legendProps = { { size : 'l' } }
151+ legendProps = { { isPageHeading : true , size : 'l' } }
152152 hint = "For example, 15 3 1984"
153153 value = { value }
154154 onChange = { ( e ) => setValue ( e . currentTarget . value ) }
0 commit comments