Skip to content
Snippets Groups Projects
Commit 5f058719 authored by Jose Manuel Serrano Amaut's avatar Jose Manuel Serrano Amaut
Browse files

[FEAT]: Add header and footer config. Also improved inheritance of font color...

[FEAT]: Add header and footer config. Also improved inheritance of font color and background from Dropzone.color prop
parent 9aab8a08
No related branches found
No related tags found
No related merge requests found
......@@ -45,7 +45,7 @@ const DropzoneFooter: React.FC<DropzoneFooterProps> = (
}
const finalClassName = resetStyles
? className
: addClassName("files-ui-footer files-ui-footer-border-bg-color", className);
: addClassName("files-ui-footer files-ui-footer-border-rd-top-bg-color", className);
const finalStyle = resetStyles
? style
......
......@@ -114,7 +114,7 @@ const DropzoneHeader: React.FC<DropzoneHeaderProps> = (
const finalClassName = resetStyles
? className
: addClassName("files-ui-header files-ui-header-border", className);
: addClassName("files-ui-header files-ui-header-border-rd", className);
const finalStyle = resetStyles
? style
: {
......
......@@ -88,7 +88,7 @@
flex-direction: column;
align-items: flex-start;
justify-content: center;
border-top: 1px dotted grey;
//border-top: 1px dotted grey;
//background-color: rgba(128, 128, 128, 0.129);
font-family: "Poppins", sans-serif;
font-family: inherit;
......
......@@ -103,20 +103,23 @@ const makeDynamicDropzoneStyleSheet = (
minHeight: typeof minHeight === "number" ? `${minHeight}px` : minHeight,
},
};
const footerBorderStyle: DynamicSheetRule = {
className: `files-ui-footer-border-bg-color`,
rules: {
"border-bottom-left-radius": DEFAULT_BORDER_RADIUS,
"border-bottom-right-radius": DEFAULT_BORDER_RADIUS,
backgroundColor: completeAsureColor(color, 0.129)
},
};
const headerBorderStyle: DynamicSheetRule = {
className: `files-ui-header-border`,
className: `files-ui-header-border-rd`,
rules: {
"border-top-left-radius": DEFAULT_BORDER_RADIUS,
"border-top-right-radius": DEFAULT_BORDER_RADIUS,
},
};
const footerBorderStyle: DynamicSheetRule = {
className: `files-ui-footer-border-rd-top-bg-color`,
rules: {
"border-bottom-left-radius": DEFAULT_BORDER_RADIUS,
"border-bottom-right-radius": DEFAULT_BORDER_RADIUS,
backgroundColor: completeAsureColor(color, 0.129),
borderTop: `1px dotted ${completeAsureColor(color)}`
},
};
const sheetRules: DynamicSheetRule[] = [rootColorBorderStyle];
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment