-
Notifications
You must be signed in to change notification settings - Fork 155
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
chore: Disable implicit tools integration into drawers list
- Loading branch information
1 parent
b7d291c
commit d509db0
Showing
12 changed files
with
278 additions
and
245 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,58 @@ | ||
// Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. | ||
// SPDX-License-Identifier: Apache-2.0 | ||
import React from 'react'; | ||
import { AppLayout, ContentLayout, Header, SplitPanel } from '~components'; | ||
import appLayoutLabels from './utils/labels'; | ||
import { Breadcrumbs, Containers } from './utils/content-blocks'; | ||
import ScreenshotArea from '../utils/screenshot-area'; | ||
|
||
export default function WithDrawers() { | ||
const drawers = { | ||
drawers: { | ||
items: [], | ||
}, | ||
}; | ||
|
||
return ( | ||
<ScreenshotArea gutters={false}> | ||
<AppLayout | ||
ariaLabels={appLayoutLabels} | ||
breadcrumbs={<Breadcrumbs />} | ||
content={ | ||
<ContentLayout | ||
header={ | ||
<Header | ||
variant="h1" | ||
description="This page renders an empty drawers array, which should not occupy any space" | ||
> | ||
Page without drawers | ||
</Header> | ||
} | ||
> | ||
<Containers /> | ||
</ContentLayout> | ||
} | ||
splitPanel={ | ||
<SplitPanel | ||
header="Split panel header" | ||
i18nStrings={{ | ||
preferencesTitle: 'Preferences', | ||
preferencesPositionLabel: 'Split panel position', | ||
preferencesPositionDescription: 'Choose the default split panel position for the service.', | ||
preferencesPositionSide: 'Side', | ||
preferencesPositionBottom: 'Bottom', | ||
preferencesConfirm: 'Confirm', | ||
preferencesCancel: 'Cancel', | ||
closeButtonAriaLabel: 'Close panel', | ||
openButtonAriaLabel: 'Open panel', | ||
resizeHandleAriaLabel: 'Slider', | ||
}} | ||
> | ||
This is the Split Panel! | ||
</SplitPanel> | ||
} | ||
{...drawers} | ||
/> | ||
</ScreenshotArea> | ||
); | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.