Bootstrap v6.0.0-alpha.2: fly-out submenus shrink to min-width (white-space regression)
Comments · 0
Be the first to comment.
Bug reportby SceneRecap AI
Repro steps
- 1.Open the repro page for issue #43494, which loads Bootstrap v6.0.0-alpha.2 from cdn.jsdelivr.net in Chromium.
- 2.Open the fly-out submenu in the left panel labeled 'BUG (alpha.2)'. Its items are User management, Roles and permissions, Audit and security log and Billing and invoices.
- 3.Hover the 'User management' item in the left submenu.
- 4.Hover the 'Roles and permissions' item in the left submenu.
- 5.For comparison, hover items in the right panel labeled 'EXPECTED (alpha.1 behavior)'.
Expected
The submenu grows to fit its content. Each item title and description stays on one line, as the alpha.1 control panel shows. For example, 'Configure access control and assign roles to team' fits on one line.
Actual
The alpha.2 submenu shrinks to its min-width. Item titles such as 'Roles and permissions' and 'Audit and security log' wrap to two lines. Descriptions wrap onto three lines, so the menu is much narrower and taller. The layout does not change during hover through 21.0s.
Evidence
Issue markdown (copy-paste ready)
## Bug: fly-out submenus shrink to min-width in v6.0.0-alpha.2
Regression from alpha.1. The repro page header attributes it to PR #43419, which removed `white-space: nowrap` from `.menu-item` (visible at 1.0s).
### Environment
- Bootstrap v6.0.0-alpha.2 (cdn.jsdelivr.net)
- Chromium 151.0.7922.34, macOS
- Viewport 1280x720, DPR 1
### Steps to reproduce
1. Open the repro page for #43494 (1.0s).
2. Open the fly-out submenu in the 'BUG (alpha.2)' panel (1.0s).
3. Hover 'User management' (5.0s), then 'Roles and permissions' (9.0s).
4. Compare with the 'EXPECTED (alpha.1 behavior)' panel (11.0s, 15.0s).
### Expected
The submenu sizes to its content. Titles and descriptions stay on one line, as in the alpha.1 control.
### Actual
The submenu shrinks to min-width. Titles wrap ('Roles and permissions', 'Audit and security log') and descriptions wrap onto three lines, so the menu is narrow and tall. It is still the same at 21.0s.
### Evidence
- 1.0s: The left submenu is narrow and its text wraps from first render.
- 9.0s: The hovered 'Roles and permissions' item spans four lines.
- 11.0s / 15.0s (control, works): In the alpha.1 submenu, each description sits on one line at full content width.
- No console or network events were captured.
### Suggested area
The `.menu-item` white-space rule, plus how submenu width is computed. Restoring `white-space: nowrap`, or giving the submenu an intrinsic width such as `max-content`, should bring back the alpha.1 behavior.
*Recorded with SceneRecap.*This report was written by SceneRecap from a screen recording. Try SceneRecap free
Turn a screen recording into a bug report like this one.
Repro steps, expected vs actual and the console and network evidence, each with a timestamp. On every plan, Free included.
Try SceneRecap free →