File tree Expand file tree Collapse file tree 10 files changed +22
-22
lines changed
NotificationDrawer/examples Expand file tree Collapse file tree 10 files changed +22
-22
lines changed Original file line number Diff line number Diff line change @@ -535,16 +535,16 @@ export const NotificationDrawerBasic: React.FunctionComponent = () => {
535535 breadcrumb = { PageBreadcrumb }
536536 mainContainerId = { pageId }
537537 >
538- < PageSection >
538+ < PageSection aria-labelledby = "main-title" >
539539 < Content >
540- < h1 > Main title</ h1 >
540+ < h1 id = "main-title" > Main title</ h1 >
541541 < p >
542542 Body text should be Red Hat Text at 1rem(16px). It should have leading of 1.5rem(24px) because < br />
543543 of its relative line height of 1.5.
544544 </ p >
545545 </ Content >
546546 </ PageSection >
547- < PageSection > Panel section content</ PageSection >
547+ < PageSection aria-label = "Panel section content" > Panel section content</ PageSection >
548548 </ Page >
549549 </ Fragment >
550550 ) ;
Original file line number Diff line number Diff line change @@ -770,16 +770,16 @@ export const NotificationDrawerGrouped: React.FunctionComponent = () => {
770770 breadcrumb = { PageBreadcrumb }
771771 mainContainerId = { pageId }
772772 >
773- < PageSection >
773+ < PageSection aria-labelledby = "main-title" >
774774 < Content >
775- < h1 > Main title</ h1 >
775+ < h1 id = "main-title" > Main title</ h1 >
776776 < p >
777777 Body text should be Red Hat Text at 1rem(16px). It should have leading of 1.5rem(24px) because < br />
778778 of its relative line height of 1.5.
779779 </ p >
780780 </ Content >
781781 </ PageSection >
782- < PageSection > Panel section content</ PageSection >
782+ < PageSection aria-label = "Panel section content" > Panel section content</ PageSection >
783783 </ Page >
784784 </ Fragment >
785785 ) ;
Original file line number Diff line number Diff line change @@ -444,9 +444,9 @@ export const PaginatedTableAction = () => {
444444 ) ) }
445445 </ Breadcrumb >
446446 </ PageBreadcrumb >
447- < PageSection variant = "light" >
447+ < PageSection variant = "light" aria-labelledby = 'main-title' >
448448 < Content >
449- < h1 > { translation . title } </ h1 >
449+ < h1 id = 'main-title' > { translation . title } </ h1 >
450450 < p > { translation . body } </ p >
451451 </ Content >
452452 </ PageSection >
Original file line number Diff line number Diff line change @@ -470,9 +470,9 @@ export const PaginatedTableAction: React.FunctionComponent = () => {
470470 ) ) }
471471 </ Breadcrumb >
472472 </ PageBreadcrumb >
473- < PageSection variant = "light" >
473+ < PageSection variant = "light" aria-labelledby = "main-title" >
474474 < Content >
475- < h1 > { translation . title } </ h1 >
475+ < h1 id = "main-title" > { translation . title } </ h1 >
476476 < p > { translation . body } </ p >
477477 </ Content >
478478 </ PageSection >
Original file line number Diff line number Diff line change @@ -15,7 +15,7 @@ import { DashboardWrapper } from '@patternfly/react-core/dist/js/demos/Dashboard
1515export const WizardInModalDemo : React . FunctionComponent = ( ) => (
1616 < >
1717 < DashboardWrapper hasPageTemplateTitle >
18- < PageSection isWidthLimited >
18+ < PageSection isWidthLimited aria-label = "Card gallery section" >
1919 < Gallery hasGutter >
2020 { Array . from ( { length : 10 } ) . map ( ( _value , index ) => (
2121 < GalleryItem key = { index } >
Original file line number Diff line number Diff line change @@ -5,7 +5,7 @@ import { DashboardWrapper } from '@patternfly/react-core/src/demos/DashboardWrap
55export const WizardFullPage : React . FunctionComponent = ( ) => (
66 < Fragment >
77 < DashboardWrapper hasPageTemplateTitle >
8- < PageSection hasBodyWrapper = { false } type = { PageSectionTypes . wizard } >
8+ < PageSection hasBodyWrapper = { false } type = { PageSectionTypes . wizard } aria-label = "Wizard container" >
99 < Wizard >
1010 < WizardStep name = "Information" id = "wizard-step-1" >
1111 < p > Step 1 content</ p >
Original file line number Diff line number Diff line change @@ -173,13 +173,13 @@ export const WizardFullPageWithDrawerDemo: React.FunctionComponent = () => {
173173 breadcrumb = { PageBreadcrumb }
174174 mainContainerId = { pageId }
175175 >
176- < PageSection >
176+ < PageSection aria-labelledby = "main-title" >
177177 < Content >
178- < h1 > Main title</ h1 >
178+ < h1 id = "main-title" > Main title</ h1 >
179179 < p > A demo of a wizard in a page.</ p >
180180 </ Content >
181181 </ PageSection >
182- < PageSection hasBodyWrapper = { false } type = { PageSectionTypes . wizard } >
182+ < PageSection hasBodyWrapper = { false } type = { PageSectionTypes . wizard } aria-label = "Wizard container" >
183183 < Wizard >
184184 < WizardStep body = { { hasNoPadding : true } } name = "Information" id = "wizard-step-1" >
185185 { createStepContentWithDrawer ( 'Information step' ) }
Original file line number Diff line number Diff line change @@ -177,13 +177,13 @@ export const WizardFullPageWithDrawerInfoStepDemo: React.FunctionComponent = ()
177177 breadcrumb = { PageBreadcrumb }
178178 mainContainerId = { pageId }
179179 >
180- < PageSection >
180+ < PageSection aria-labelledby = "main-title" >
181181 < Content >
182- < h1 > Main title</ h1 >
182+ < h1 id = "main-title" > Main title</ h1 >
183183 < p > A demo of a wizard in a page.</ p >
184184 </ Content >
185185 </ PageSection >
186- < PageSection hasBodyWrapper = { false } type = { PageSectionTypes . wizard } ß >
186+ < PageSection hasBodyWrapper = { false } type = { PageSectionTypes . wizard } ß aria-label = "Wizard container" >
187187 < Wizard >
188188 < WizardStep body = { { hasNoPadding : true } } name = "Information" id = "wizard-step-1" >
189189 { createStepContentWithDrawer ( 'Information step' ) }
Original file line number Diff line number Diff line change @@ -107,9 +107,9 @@ export const DashboardBreadcrumb = (
107107) ;
108108
109109const PageTemplateTitle = (
110- < PageSection >
110+ < PageSection aria-labelledby = "main-title" >
111111 < Content >
112- < h1 > Main title</ h1 >
112+ < h1 id = "main-title" > Main title</ h1 >
113113 < p > This is a full page demo.</ p >
114114 </ Content >
115115 </ PageSection >
Original file line number Diff line number Diff line change @@ -229,9 +229,9 @@ export const TableSortableResponsive: React.FunctionComponent = () => {
229229 return (
230230 < Fragment >
231231 < DashboardWrapper >
232- < PageSection isWidthLimited variant = { PageSectionVariants . light } >
232+ < PageSection isWidthLimited variant = { PageSectionVariants . light } aria-labelledby = "table-title" >
233233 < Content >
234- < h1 > Table demos</ h1 >
234+ < h1 id = "table-title" > Table demos</ h1 >
235235 < p >
236236 Below is an example of a responsive sortable table. When the screen size shrinks the table into a compact
237237 form, the toolbar will display a dropdown menu containing sorting options.
You can’t perform that action at this time.
0 commit comments