Skip to content

Commit d08d28f

Browse files
add role region for pagelayout content
1 parent f441fed commit d08d28f

File tree

1 file changed

+2
-4
lines changed

1 file changed

+2
-4
lines changed

packages/react/src/PageLayout/PageLayout.features.stories.tsx

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -162,8 +162,7 @@ export const NestedScrollContainer: StoryFn = args => (
162162
<Placeholder label="Header" height={64} />
163163
</PageLayout.Header>
164164
<PageLayout.Content padding="normal" width="large">
165-
{/* eslint-disable-next-line github/a11y-role-supports-aria-props */}
166-
<Box sx={{display: 'grid', gap: 3}} tabIndex={0} aria-label="Page content">
165+
<Box sx={{display: 'grid', gap: 3}} tabIndex={0} role="region" aria-label="Page content">
167166
{Array.from({length: args.numParagraphsInContent}).map((_, i) => (
168167
<Box key={i} as="p" sx={{margin: 0}}>
169168
Lorem ipsum dolor sit amet, consectetur adipiscing elit. Nam at enim id lorem tempus egestas a non
@@ -335,8 +334,7 @@ export const ScrollContainerWithinPageLayoutPane: StoryFn = () => (
335334
</Box>
336335
</PageLayout.Pane>
337336
<PageLayout.Content padding="normal" width="large">
338-
{/* eslint-disable-next-line github/a11y-role-supports-aria-props */}
339-
<Box sx={{display: 'grid'}} tabIndex={0} aria-label="Page content">
337+
<Box sx={{display: 'grid'}} tabIndex={0} role="region" aria-label="Page content">
340338
<Placeholder label="Page content" height={1600} />
341339
</Box>
342340
</PageLayout.Content>

0 commit comments

Comments
 (0)