Skip to content
This repository was archived by the owner on Sep 1, 2020. It is now read-only.

Commit ab5b8f9

Browse files
authored
Updated usage to include currently active menu item class. (#314)
`react-contextmenu-item--selected` : Is applied to currently selected menu item. This information may help people. As people often style the currently selected/active menu item.
1 parent 99e2268 commit ab5b8f9

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

docs/usage.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -53,6 +53,7 @@ The styling can be apllied to using following classes.
5353
- `react-contextmenu--visible` : applied to menu root element when visible.
5454
- `react-contextmenu-item` : applied to menu items.
5555
- `react-contextmenu-item--active` : applied to menu items and title in submenu when submenu is open.
56+
- `react-contextmenu-item--selected` : applied to currently selected menu item.
5657
- `react-contextmenu-item--disabled` : applied to menu items and title in submenu when they are disabled.
5758
- `react-contextmenu-item--divider` : applied to menu items with the `divider` prop.
5859
- `react-contextmenu-wrapper` : applied to wrapper around elements in `ContextMenuTrigger`.

0 commit comments

Comments
 (0)