Skip to content

Commit f018cd9

Browse files
authored
Merge pull request #60 from mendix/fix/popup-menu/touch-color-and-borders
Add itemRippleColor for popup menu
2 parents 9c14cd9 + cef1c41 commit f018cd9

File tree

2 files changed

+5
-2
lines changed

2 files changed

+5
-2
lines changed

styles/native/ts/core/widgets/popupmenu.ts

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
1-
import { background, brand, font } from "../variables";
2-
import { PopupMenuType } from "../../types/widgets";
1+
import { background, brand, contrast, font } from "../variables";
2+
import { PopupMenuType } from "../../types/widgets";
33
/*
44
55
DISCLAIMER:
@@ -17,11 +17,13 @@ export const com_mendix_widget_native_popupmenu_PopupMenu: PopupMenuType = {
1717
// All ViewStyle properties are allowed
1818
borderRadius: 10,
1919
shadowColor: "#000",
20+
overflow: "hidden",
2021
shadowOpacity: 0.2,
2122
shadowRadius: 10,
2223
elevation: 16,
2324
backgroundColor: background.primary,
2425
},
26+
itemRippleColor: contrast.lower,
2527
basic: {
2628
dividerColor: font.color,
2729
itemStyle: {

styles/native/ts/types/widgets.d.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -333,6 +333,7 @@ export interface PopupMenuType {
333333
container?: ViewStyle;
334334
basic: BasicItemStyle;
335335
buttonContainer?: ViewStyle;
336+
itemRippleColor: string;
336337
}
337338

338339
interface BasicItemStyle {

0 commit comments

Comments
 (0)