]> git.ipfire.org Git - thirdparty/bootstrap.git/commitdiff
Drop deprecated `.dropup` remaining usage (#42532)
authorJulien Déramond <juderamond@gmail.com>
Sat, 20 Jun 2026 07:24:33 +0000 (09:24 +0200)
committerGitHub <noreply@github.com>
Sat, 20 Jun 2026 07:24:33 +0000 (09:24 +0200)
.cspell.json
js/tests/visual/menu-submenu.html
site/src/assets/examples/navbar-bottom/index.astro
site/src/content/docs/guides/migration.mdx

index e534643635448a9a6f4c32a4385f196e6d620ca6..4a0473ae35736ad3e7af971dfe8e504e5a5d5110 100644 (file)
@@ -38,8 +38,6 @@
     "discoverability",
     "docsref",
     "dropend",
-    "dropleft",
-    "dropright",
     "dropstart",
     "dropup",
     "dgst",
index c25988cc9f67c04bbb7c48b42e8531b181c88e43..9b68c168ce185460808211d1029362a136c42738 100644 (file)
         </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>
index ec2e845d8c55fdf0d41060632f84689c9f7a4baf..e0e5378664861556ebb2af059eee8b1432933a17 100644 (file)
@@ -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>
index 4a4a000c8035d031465359b4063b1561d536eb39..c27b268771286ce56de75a184082bc1367e770f6 100644 (file)
@@ -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.