@dloizides/ui-nav 1.18.0 → 1.19.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +14 -0
- package/dist/index.js +2 -0
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +2 -0
- package/dist/index.mjs.map +1 -1
- package/package.json +2 -2
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,19 @@
|
|
|
1
1
|
# Changelog
|
|
2
2
|
|
|
3
|
+
## 1.19.0
|
|
4
|
+
|
|
5
|
+
**The "More ▾" overflow menu now opens at a readable width instead of cramping onto the trigger's tiny footprint.**
|
|
6
|
+
|
|
7
|
+
`NavOverflowMenu` rendered the shared `@dloizides/ui-layout` `ModalDropdown` without a `menuMinWidth`,
|
|
8
|
+
so the popover matched the width of the compact "More ▾" pill (~its own label). Option labels
|
|
9
|
+
("Settings", "API docs") wrapped onto two lines, and the resulting tall rows overflowed the menu's
|
|
10
|
+
max-height — so the lower items scrolled out of view and read as missing.
|
|
11
|
+
|
|
12
|
+
- **`NavOverflowMenu`** now passes a 200px `menuMinWidth` floor, so the overflow menu opens wide
|
|
13
|
+
enough to show each label on one line. `ModalDropdown`/`InlineMenu` clamp a floored menu inside the
|
|
14
|
+
viewport (ui-layout ≥ 1.24.0, now the peer floor), so the extra width never pushes it off the right
|
|
15
|
+
edge. No public API changed.
|
|
16
|
+
|
|
3
17
|
## 1.18.0
|
|
4
18
|
|
|
5
19
|
Root-cause fix for sidebar leaf co-activation. Behavioral/additive — no breaking API.
|
package/dist/index.js
CHANGED
|
@@ -1074,6 +1074,7 @@ var NavBarLink = ({
|
|
|
1074
1074
|
};
|
|
1075
1075
|
var TEXT_ON_PRIMARY3 = "#ffffff";
|
|
1076
1076
|
var NO_ACTIVE_ROUTE = "";
|
|
1077
|
+
var OVERFLOW_MENU_MIN_WIDTH = 200;
|
|
1077
1078
|
var NavOverflowMenu = ({
|
|
1078
1079
|
items,
|
|
1079
1080
|
pathname,
|
|
@@ -1101,6 +1102,7 @@ var NavOverflowMenu = ({
|
|
|
1101
1102
|
{
|
|
1102
1103
|
accessibilityHint: hint,
|
|
1103
1104
|
accessibilityLabel: label,
|
|
1105
|
+
menuMinWidth: OVERFLOW_MENU_MIN_WIDTH,
|
|
1104
1106
|
optionTestID,
|
|
1105
1107
|
options,
|
|
1106
1108
|
testID,
|