You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: packages/react-core/src/components/OverflowMenu/examples/OverflowMenu.md
+5-3Lines changed: 5 additions & 3 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -27,7 +27,9 @@ import EllipsisVIcon from '@patternfly/react-icons/dist/esm/icons/ellipsis-v-ico
27
27
28
28
```
29
29
30
-
### Simple vertical (responsive)
30
+
### Vertical
31
+
32
+
Passing `isVertical` to `OverflowMenu` will change its behavior to respond to breakpoints based on window height instead of width.
31
33
32
34
```ts file="./OverflowMenuSimpleVertical.tsx"
33
35
@@ -63,8 +65,8 @@ You can change the container width in this example by adjusting the slider. As t
63
65
64
66
### Breakpoint on container height
65
67
66
-
By passing in the `breakpointReference` and `isVertical` properties, the overflow menu's breakpoint will be relative to the height of the reference container rather than the viewport height.
68
+
By passing in the `breakpointReference` and `isVertical` properties, the overflow menu's breakpoint will be determined relative to the height of the reference container rather than the window height.
0 commit comments