Skip to content

Commit 5684c90

Browse files
authored
chore: Remove mentions of Dialog from Account Menu doc example (#8443)
* Remove mentions of Dialog from example * forgot to remove component card
1 parent 114f890 commit 5684c90

File tree

1 file changed

+4
-12
lines changed

1 file changed

+4
-12
lines changed

packages/react-aria-components/docs/examples/account-menu.mdx

Lines changed: 4 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -13,26 +13,25 @@ export default ExampleLayout;
1313
import docs from 'docs:react-aria-components';
1414
import styles from '@react-spectrum/docs/src/docs.css';
1515
import Popover from '@react-spectrum/docs/pages/assets/component-illustrations/Popover.svg';
16-
import Dialog from '@react-spectrum/docs/pages/assets/component-illustrations/Dialog.svg';
1716
import Menu from '@react-spectrum/docs/pages/assets/component-illustrations/Menu.svg';
1817
import Button from '@react-spectrum/docs/pages/assets/component-illustrations/ActionButton.svg';
1918
import {ExampleCard} from '@react-spectrum/docs/src/ExampleCard';
2019
import ChevronRight from '@spectrum-icons/workflow/ChevronRight';
2120

2221
---
23-
keywords: [example, menu, popover, dialog, aria, accessibility, react, component]
22+
keywords: [example, menu, popover, aria, accessibility, react, component]
2423
type: component
2524
image: account-menu.png
26-
description: A Menu with an interactive header, built with a Dialog and Popover.
25+
description: A Menu with an interactive header, built with a Popover.
2726
---
2827

2928
# Account Menu
3029

31-
A [Menu](../Menu.html) with an interactive header, built with a [Dialog](../Dialog.html) and [Popover](../Popover.html).
30+
A [Menu](../Menu.html) with an interactive header, built with a [Popover](../Popover.html).
3231

3332
## Example
3433

35-
For accessibility reasons, standalone Menus cannot contain any children other than menu items (optionally grouped into sections). To build patterns that include such elements, place the Menu into a Dialog with additional interactive elements as siblings.
34+
For accessibility reasons, standalone Menus cannot contain any children other than menu items (optionally grouped into sections). To build patterns that include such elements, place the Menu into a Popover with additional interactive elements as siblings.
3635

3736
```tsx import
3837
import './tailwind.global.css';
@@ -152,11 +151,4 @@ module.exports = {
152151
<Popover />
153152
</ExampleCard>
154153

155-
<ExampleCard
156-
url="../Dialog.html"
157-
title="Dialog"
158-
description="A dialog is an overlay shown above other content in an application.">
159-
<Dialog />
160-
</ExampleCard>
161-
162154
</section>

0 commit comments

Comments
 (0)