Skip to content

Commit 957d262

Browse files
author
Jordan Hunt
committed
fix floating action button dark mode styling
1 parent 1556616 commit 957d262

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

styles/native/ts/core/widgets/floatingactionbutton.ts

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
import { FloatingActionButtonType } from "../../types/widgets";
22
import { background, brand, contrast, font } from "../variables";
3+
import { darkMode } from "../../app/custom-variables"
34
/*
45
56
DISCLAIMER:
@@ -67,6 +68,8 @@ export const com_mendix_widget_native_floatingactionbutton_FloatingActionButton:
6768
secondaryButtonCaptionContainer: {
6869
// All ViewStyle properties are allowed
6970
marginHorizontal: 5,
71+
backgroundColor: background.secondary,
72+
borderColor: darkMode ? background.secondary : "#eee",
7073
elevation: 2,
7174
shadowOpacity: 0.3,
7275
shadowRadius: 4,

0 commit comments

Comments
 (0)