Skip to content

Commit 4722904

Browse files
kobanyanjavivelasco
authored andcommitted
Allow pass inverse to IconMenu (react-toolbox#1490)
1 parent 4a13ff2 commit 4722904

File tree

2 files changed

+6
-0
lines changed

2 files changed

+6
-0
lines changed

components/menu/IconMenu.d.ts

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -27,6 +27,11 @@ export interface IconMenuProps extends ReactToolbox.Props {
2727
* @default true
2828
*/
2929
iconRipple?: boolean;
30+
/**
31+
* If true, the neutral colors are inverted. Useful if the icon is over a dark background.
32+
* @default false
33+
*/
34+
inverse?: boolean;
3035
/**
3136
* Transferred to the Menu component.
3237
* @default true

components/menu/IconMenu.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,7 @@ const factory = (IconButton, Menu) => {
1616
PropTypes.element,
1717
]),
1818
iconRipple: PropTypes.bool,
19+
inverse: PropTypes.bool,
1920
menuRipple: PropTypes.bool,
2021
onClick: PropTypes.func,
2122
onHide: PropTypes.func,

0 commit comments

Comments
 (0)