@@ -167,7 +167,7 @@ export const Default: Story = {
167167 return (
168168 // `onBeforeNavigate` & `onToggleHeaderArea` have to be added like this, otherwise Storybook invokes them incorrectly sometimes
169169 < ObjectPage { ...args } onBeforeNavigate = { args . onBeforeNavigate } onToggleHeaderArea = { args . onToggleHeaderArea } >
170- < ObjectPageSection titleText = "Goals" id = "goals" aria-label = "Goals" >
170+ < ObjectPageSection titleText = "Goals" id = "goals" >
171171 < Form layout = "S1 M2 L3 XL3" labelSpan = "S12 M12 L12 XL12" >
172172 < FormItem labelContent = { < Label showColon > Evangelize the UI framework across the company</ Label > } >
173173 < Text > 4 days overdue - Cascaded</ Text >
@@ -180,11 +180,10 @@ export const Default: Story = {
180180 </ FormItem >
181181 </ Form >
182182 </ ObjectPageSection >
183- < ObjectPageSection titleText = "Personal" id = "personal" aria-label = "Personal" >
183+ < ObjectPageSection titleText = "Personal" id = "personal" >
184184 < ObjectPageSubSection
185185 titleText = "Connect"
186186 id = "personal-connect"
187- aria-label = "Connect"
188187 actions = {
189188 < >
190189 < Button design = { ButtonDesign . Emphasized } style = { { minWidth : '120px' } } >
@@ -225,11 +224,7 @@ export const Default: Story = {
225224 </ FormGroup >
226225 </ Form >
227226 </ ObjectPageSubSection >
228- < ObjectPageSubSection
229- titleText = "Payment Information"
230- id = "personal-payment-information"
231- aria-label = "Payment Information"
232- >
227+ < ObjectPageSubSection titleText = "Payment Information" id = "personal-payment-information" >
233228 < Form >
234229 < FormGroup headerText = "Salary" >
235230 < FormItem labelContent = { < Label showColon > Bank Transfer</ Label > } >
@@ -244,12 +239,8 @@ export const Default: Story = {
244239 </ Form >
245240 </ ObjectPageSubSection >
246241 </ ObjectPageSection >
247- < ObjectPageSection titleText = "Employment" id = "employment" aria-label = "Employment" >
248- < ObjectPageSubSection
249- titleText = "Job Information"
250- id = "employment-job-information"
251- aria-label = "Job Information"
252- >
242+ < ObjectPageSection titleText = "Employment" id = "employment" >
243+ < ObjectPageSubSection titleText = "Job Information" id = "employment-job-information" >
253244 < Form >
254245 < FormItem labelContent = { < Label showColon > Job Classification</ Label > } >
255246 < FlexBox direction = { FlexBoxDirection . Column } >
@@ -277,11 +268,7 @@ export const Default: Story = {
277268 </ FormItem >
278269 </ Form >
279270 </ ObjectPageSubSection >
280- < ObjectPageSubSection
281- titleText = "Employee Details"
282- id = "employment-employee-details"
283- aria-label = "Employee Details"
284- >
271+ < ObjectPageSubSection titleText = "Employee Details" id = "employment-employee-details" >
285272 < Form >
286273 < FormItem labelContent = { < Label showColon > Start Date</ Label > } >
287274 < Text > Jan 01, 2018</ Text >
@@ -303,11 +290,7 @@ export const Default: Story = {
303290 </ FormItem >
304291 </ Form >
305292 </ ObjectPageSubSection >
306- < ObjectPageSubSection
307- titleText = "Job Relationship"
308- id = "employment-job-relationship"
309- aria-label = "Job Relationship"
310- >
293+ < ObjectPageSubSection titleText = "Job Relationship" id = "employment-job-relationship" >
311294 < Form >
312295 < FormItem labelContent = { < Label showColon > Manager</ Label > } >
313296 < Text > John Doe</ Text >
@@ -346,26 +329,18 @@ export const SectionWithCustomHeader: Story = {
346329 render ( args ) {
347330 return (
348331 < ObjectPage { ...args } onBeforeNavigate = { args . onBeforeNavigate } >
349- < ObjectPageSection
350- titleText = "Goals"
351- hideTitleText
352- id = "goals"
353- aria-label = "Goals"
354- header = { < Title > Custom Header Section One</ Title > }
355- >
332+ < ObjectPageSection titleText = "Goals" hideTitleText id = "goals" header = { < Title > Custom Header Section One</ Title > } >
356333 < div style = { { width : '100%' , height : '200px' , background : 'cadetblue' } } />
357334 </ ObjectPageSection >
358335 < ObjectPageSection
359336 titleText = "Personal"
360337 hideTitleText
361338 id = "personal"
362- aria-label = "Personal"
363339 header = { < MessageStrip hideCloseButton > Custom Header Section Two</ MessageStrip > }
364340 >
365341 < ObjectPageSubSection
366342 titleText = "Connect"
367343 id = "personal-connect"
368- aria-label = "Connect"
369344 actions = {
370345 < >
371346 < Button design = { ButtonDesign . Emphasized } style = { { minWidth : '120px' } } >
@@ -406,11 +381,7 @@ export const SectionWithCustomHeader: Story = {
406381 </ FormGroup >
407382 </ Form >
408383 </ ObjectPageSubSection >
409- < ObjectPageSubSection
410- titleText = "Payment Information"
411- id = "personal-payment-information"
412- aria-label = "Payment Information"
413- >
384+ < ObjectPageSubSection titleText = "Payment Information" id = "personal-payment-information" >
414385 < Form >
415386 < FormGroup headerText = "Salary" >
416387 < FormItem labelContent = { < Label showColon > Bank Transfer</ Label > } >
@@ -429,7 +400,6 @@ export const SectionWithCustomHeader: Story = {
429400 titleText = "Employment"
430401 hideTitleText
431402 id = "employment"
432- aria-label = "Employment"
433403 header = {
434404 < div style = { { display : 'flex' , alignItems : 'center' } } >
435405 < Icon name = { sunIcon } style = { { marginInlineEnd : '2rem' } } />
@@ -538,12 +508,8 @@ export const SingleSection: Story = {
538508 render ( args ) {
539509 return (
540510 < ObjectPage { ...args } >
541- < ObjectPageSection titleText = "Employment" id = "employment" aria-label = "Employment" >
542- < ObjectPageSubSection
543- titleText = "Job Information"
544- id = "employment-job-information"
545- aria-label = "Job Information"
546- >
511+ < ObjectPageSection titleText = "Employment" id = "employment" >
512+ < ObjectPageSubSection titleText = "Job Information" id = "employment-job-information" >
547513 < Form >
548514 < FormItem labelContent = { < Label showColon > Job Classification</ Label > } >
549515 < FlexBox direction = { FlexBoxDirection . Column } >
@@ -571,11 +537,7 @@ export const SingleSection: Story = {
571537 </ FormItem >
572538 </ Form >
573539 </ ObjectPageSubSection >
574- < ObjectPageSubSection
575- titleText = "Employee Details"
576- id = "employment-employee-details"
577- aria-label = "Employee Details"
578- >
540+ < ObjectPageSubSection titleText = "Employee Details" id = "employment-employee-details" >
579541 < Form >
580542 < FormItem labelContent = { < Label showColon > Start Date</ Label > } >
581543 < Text > Jan 01, 2018</ Text >
@@ -597,11 +559,7 @@ export const SingleSection: Story = {
597559 </ FormItem >
598560 </ Form >
599561 </ ObjectPageSubSection >
600- < ObjectPageSubSection
601- titleText = "Job Relationship"
602- id = "employment-job-relationship"
603- aria-label = "Job Relationship"
604- >
562+ < ObjectPageSubSection titleText = "Job Relationship" id = "employment-job-relationship" >
605563 < Form >
606564 < FormItem labelContent = { < Label showColon > Manager</ Label > } >
607565 < Text > John Doe</ Text >
0 commit comments