PromucFlow_constructor/app/client/src/globalStyles/WidgetGlobalStyles.ts
Keyur Paralkar c396224fe8
fix: filePicker widget re-skinning (#15183)
* fix:
* added css variables for primary color
* added styles for dropHint custom icon

* feat:
* styled the remove uploaded file icon to match re-skinning
* added theme font-family to the contents inside the upload modal
* styled upload button to match re-skinning

* feat:
* set cancel button color to theme's primary color
* set the close button style according to theme
* set the border radius of the upload modal
* set the error message styles in accordance with re-skinning

* fix: cross mark position on the top right corner of upload modal

* fix: added hover background color on modal back and add more files button

* fix: added border radius fix for file remove button

* fix: modal close icon

* fix: addressed feedback from dilip

* fix: font-family issue inside the modal

* test: added cypress test to test styling logic
2022-07-29 10:29:02 +05:30

13 lines
362 B
TypeScript

import { createGlobalStyle } from "styled-components";
export const WidgetGlobaStyles = createGlobalStyle<{
primaryColor?: string;
fontFamily?: string;
}>`
:root{
--wds-accent-color: ${({ primaryColor }) => primaryColor};
--wds-font-family: ${({ fontFamily }) =>
fontFamily === "System Default" ? "inherit" : fontFamily};
}
`;