Skip to content

Commit ba9ce02

Browse files
greenstephstephanie green
andauthored
fix(menu-submenu): add parent class to set the initial display of the submenu to be open (#5022)
Co-authored-by: stephanie green <[email protected]>
1 parent af6b13e commit ba9ce02

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

ui/components/menus/docs.mdx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -261,7 +261,7 @@ To open the submenu to the right of the main menu, add `slds-dropdown_submenu-ri
261261

262262
<Example title="Menu with Submenu Right">
263263
<CodeView demoStyles="height: 300px;">
264-
<Submenu ariaExpanded="true" />
264+
<Submenu ariaExpanded parentIsOpen />
265265
</CodeView>
266266
</Example>
267267

@@ -271,7 +271,7 @@ To open the submenu to the left, add `slds-dropdown_submenu-left` to the `<div>`
271271

272272
<Example title="Menu with Submenu Left">
273273
<CodeView demoStyles="height: 300px; margin-left: 150px;">
274-
<Submenu ariaExpanded submenuClassnames="slds-dropdown_submenu-left" />
274+
<Submenu ariaExpanded parentIsOpen submenuClassnames="slds-dropdown_submenu-left" />
275275
</CodeView>
276276
</Example>
277277

0 commit comments

Comments
 (0)