Skip to content

Commit

Permalink
[docs] show optional isDarkTheme parameter in ContextMenu API docs
Browse files Browse the repository at this point in the history
To make it more obvious that you can manually create a dark context menu, as raised in #3229
  • Loading branch information
adidahiya authored Jan 8, 2019
1 parent d8b247a commit b7c9356
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/core/src/components/context-menu/context-menu.md
Original file line number Diff line number Diff line change
Expand Up @@ -94,7 +94,7 @@ The imperative API provides a single static `ContextMenu` object, enforcing the
principle that only one context menu can be open at a time. This API is ideal
for programmatically triggered menus or for non-React apps.

- `ContextMenu.show(menu: JSX.Element, offset: IOffset, onClose?: () => void): void`
- `ContextMenu.show(menu: JSX.Element, offset: IOffset, onClose?: () => void, isDarkTheme?: boolean): void`

Show the given element at the given offset from the top-left corner of the
viewport. Showing a menu closes the previously shown one automatically. The
Expand Down

0 comments on commit b7c9356

Please sign in to comment.