@@ -16,13 +16,14 @@ export const RadioSlottedDescriptionExample = () => {
1616 tags = "angular"
1717 allowCopy = { true }
1818 code = { `
19- <goa-form-item label="Select one option">
20- <goa-radio-group name="selectOne" value="1" (_change)="onChange($event)">
21- <goa-radio-item value="1" label="Option one">
22- <span slot="description">Help text with a <a href="#">link</a>.</span>
19+ <goa-form-item label="How do you want to sign in?">
20+ <goa-radio-group name="selectOne" (_change)="onChange($event)">
21+ <goa-radio-item value="1" label="Sign in as a business">
22+ <span slot="description">Use the account associated with the business</span>
23+ </goa-radio-item>
24+ <goa-radio-item value="2" label="Sign in as an individual">
25+ <span slot="description">If you don't have a Alberta.ca login, you can create one</span>
2326 </goa-radio-item>
24- <goa-radio-item value="2" label="Option two" />
25- <goa-radio-item value="3" label="Option three" />
2627 </goa-radio-group>
2728 </goa-form-item>
2829 ` }
@@ -53,15 +54,18 @@ export const RadioSlottedDescriptionExample = () => {
5354 tags = "angular"
5455 allowCopy = { true }
5556 code = { `
56- <goab-form-item label="Select one option " [formGroup]="form">
57+ <goab-form-item label="How do you want to sign in? " [formGroup]="form">
5758 <goab-radio-group name="selectOne" formControlName="selectOne">
58- <goab-radio-item value="1" label="Option one " [description]="optionOneDescription">
59+ <goab-radio-item value="1" label="Sign in as a business " [description]="optionOneDescription">
5960 <ng-template #optionOneDescription>
60- Help text with a <a href="#">link</a>.
61+ Use the account associated with the business
62+ </ng-template>
63+ </goab-radio-item>
64+ <goab-radio-item value="2" label="Sign in as an individual" [description]="optionTwoDescription">
65+ <ng-template #optionTwoDescription>
66+ If you don't have a Alberta.ca login, you can create one
6167 </ng-template>
6268 </goab-radio-item>
63- <goab-radio-item value="2" label="Option two"></goab-radio-item>
64- <goab-radio-item value="3" label="Option three"></goab-radio-item>
6569 </goab-radio-group>
6670 </goab-form-item>
6771 ` }
@@ -75,15 +79,18 @@ export const RadioSlottedDescriptionExample = () => {
7579 tags = "react"
7680 allowCopy = { true }
7781 code = { `
78- <GoAFormItem label="Select one option">
79- <GoARadioGroup name="selectOne" value="1" onChange={onChange}>
82+ <GoAFormItem label="How do you want to sign in?">
83+ <GoARadioGroup name="selectOne" onChange={onChange}>
84+ <GoARadioItem
85+ value="1"
86+ label="Sign in as a business"
87+ description="Use the account associated with the business"
88+ />
8089 <GoARadioItem
81- value="1"
82- label="Option one"
83- description={<span>Help text with a <a href="#">link</a>.</span>}
84- />
85- <GoARadioItem value="2" label="Option two" />
86- <GoARadioItem value="3" label="Option three" />
90+ value="2"
91+ label="Sign in as an individual"
92+ description="If you don't have a Alberta.ca login, you can create one"
93+ />
8794 </GoARadioGroup>
8895 </GoAFormItem>
8996 ` }
@@ -96,36 +103,38 @@ export const RadioSlottedDescriptionExample = () => {
96103 tags = "react"
97104 allowCopy = { true }
98105 code = { `
99- <GoabFormItem label="Select one option ">
100- <GoabRadioGroup name="selectOne" value="1" onChange={onChange}>
106+ <GoabFormItem label="How do you want to sign in? ">
107+ <GoabRadioGroup name="selectOne" onChange={onChange}>
101108 <GoabRadioItem
102- value="1"
103- label="Option one"
104- description={<span>Help text with a <a href="#">link</a>.</span>}
105- />
106- <GoabRadioItem value="2" label="Option two" />
107- <GoabRadioItem value="3" label="Option three" />
109+ value="1"
110+ label="Sign in as a business"
111+ description="Use the account associated with the business"
112+ />
113+ <GoabRadioItem
114+ value="2"
115+ label="Sign in as an individual"
116+ description="If you don't have a Alberta.ca login, you can create one"
117+ />
108118 </GoabRadioGroup>
109119 </GoabFormItem>
110120 ` }
111121 />
112122 ) }
113123
114- < GoabFormItem label = "Select one option " >
115- < GoabRadioGroup name = "selectOne" value = "1" onChange = { noop } >
124+ < GoabFormItem label = "How do you want to sign in? " >
125+ < GoabRadioGroup name = "selectOne" onChange = { noop } >
116126 < GoabRadioItem
117127 value = "1"
118- label = "Option one"
119- description = {
120- < span >
121- Help text with a < a href = "#" > link</ a > .
122- </ span >
123- }
128+ label = "Sign in as a business"
129+ description = "Use the account associated with the business"
130+ />
131+ < GoabRadioItem
132+ value = "2"
133+ label = "Sign in as an individual"
134+ description = "If you don't have a Alberta.ca login, you can create one"
124135 />
125- < GoabRadioItem value = "2" label = "Option two" />
126- < GoabRadioItem value = "3" label = "Option three" />
127136 </ GoabRadioGroup >
128137 </ GoabFormItem >
129138 </ Sandbox >
130139 )
131- }
140+ }
0 commit comments