From b7c9356d7e0d19a887276820052cb6220fcbeb9c Mon Sep 17 00:00:00 2001 From: Adi Dahiya Date: Tue, 8 Jan 2019 18:20:09 -0500 Subject: [PATCH] [docs] show optional isDarkTheme parameter in ContextMenu API docs To make it more obvious that you can manually create a dark context menu, as raised in https://github.com/palantir/blueprint/issues/3229 --- packages/core/src/components/context-menu/context-menu.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/core/src/components/context-menu/context-menu.md b/packages/core/src/components/context-menu/context-menu.md index 6e27fe314f..53f5381ec3 100644 --- a/packages/core/src/components/context-menu/context-menu.md +++ b/packages/core/src/components/context-menu/context-menu.md @@ -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