Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 0 additions & 2 deletions .cspell.json
Original file line number Diff line number Diff line change
Expand Up @@ -38,8 +38,6 @@
"discoverability",
"docsref",
"dropend",
"dropleft",
"dropright",
"dropstart",
"dropup",
"dgst",
Expand Down
12 changes: 6 additions & 6 deletions js/tests/visual/menu-submenu.html
Original file line number Diff line number Diff line change
Expand Up @@ -271,15 +271,15 @@ <h2>Navbar Integration</h2>
</nav>
</section>

<!-- Dropup with Submenus -->
<!-- Submenus with Top Placement -->
<section class="test-section">
<h2>Dropup with Submenus</h2>
<p class="fg-2">Submenus work with dropup direction.</p>
<h2>Submenus with Top Placement</h2>
<p class="fg-2">Submenus work in upward direction.</p>

<div class="demo-box demo-box-center" style="min-height: 200px;">
<div class="btn-group dropup">
<button type="button" class="btn-solid theme-warning" data-bs-toggle="menu" aria-expanded="false">
Dropup Menu
<div class="btn-group">
<button type="button" class="btn-solid theme-warning" data-bs-toggle="menu" data-bs-placement="top" aria-expanded="false">
Menu (opens top)
</button>
<div class="menu">
<a class="menu-item" href="#">Action</a>
Expand Down
4 changes: 2 additions & 2 deletions site/src/assets/examples/navbar-bottom/index.astro
Original file line number Diff line number Diff line change
Expand Up @@ -28,8 +28,8 @@ export const title = 'Bottom navbar example'
<li class="nav-item">
<a class="nav-link disabled" aria-disabled="true">Disabled</a>
</li>
<li class="nav-item dropup">
<a class="nav-link" href="#" role="button" data-bs-toggle="menu" aria-expanded="false">Dropup</a>
<li class="nav-item">
<a class="nav-link" href="#" role="button" data-bs-toggle="menu" aria-expanded="false">Menu</a>
<div class="menu">
<a class="menu-item" href="#">Action</a>
<a class="menu-item" href="#">Another action</a>
Expand Down
1 change: 1 addition & 0 deletions site/src/content/docs/guides/migration.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -150,6 +150,7 @@ Bootstrap 6 is a major release with many breaking changes to modernize our codeb
- Removed jQuery support and the `js-test-jquery` test target.
- **Replaced the Dropdown component with Menu.** All `.dropdown-*` classes are now `.menu-*` classes, and `data-bs-toggle="dropdown"` is now `data-bs-toggle="menu"`. See the [Menu docs]([[docsref:/components/menus]]) for full details.
- Renamed CSS classes: `.dropdown-menu` to `.menu`, `.dropdown-item` to `.menu-item`, `.dropdown-divider` to `.menu-divider`, `.dropdown-header` to `.menu-header`, `.dropdown-submenu` to `.submenu`.
- Deprecated directional wrappers: `.dropstart`, `.dropend`, and `.dropup`. Use `data-bs-placement` to control direction instead (for example, `.dropup` becomes `data-bs-placement="top"`).
- Removed the `.dropdown-toggle` class — menu toggles no longer require a toggle class.
- Removed the `.dropdown` wrapper — no wrapper element is required. The toggle and `.menu` are direct siblings.
- Simplified markup from `<ul><li><a class="dropdown-item">` to a flat `<div class="menu"><a class="menu-item">` structure.
Expand Down