From 2e585bb423ff85ecef200a49105c4816b2341ecc Mon Sep 17 00:00:00 2001 From: Hieu Ho Date: Thu, 11 Apr 2019 10:28:14 +0700 Subject: [PATCH] Restore test for ThemeProps --- types/styled-theming/styled-theming-tests.ts | 14 +++++++++++--- 1 file changed, 11 insertions(+), 3 deletions(-) diff --git a/types/styled-theming/styled-theming-tests.ts b/types/styled-theming/styled-theming-tests.ts index d0802ffe68..bfcf6767d4 100644 --- a/types/styled-theming/styled-theming-tests.ts +++ b/types/styled-theming/styled-theming-tests.ts @@ -13,12 +13,20 @@ const backgroundColor = theme.variants("mode", "variant", { warning: { light: "orange", dark: "darkorange" } }); -interface cssProps { - visible: boolean; -} const cssTheme = theme("mode", { dark: css` background: gray; + `, + light: css` + background: white; + ` +}); + +interface cssProps { + visible: boolean; +} +const cssPropsTheme = theme("mode", { + dark: css` visibility: ${(props: cssProps) => props.visible ? 'visible' : 'hidden'}; `, light: css`