* > svg":{
- stroke: constants.previewModal.closeButtonColor
+ "& svg":{
+ stroke: constants.previewModal.headerButtonColor
}
},
downloadIcon: {
- fill: constants.previewModal.closeButtonColor
+ fill: constants.previewModal.headerButtonColor
},
fileName: {
width: "100%",
@@ -104,9 +103,32 @@ const useStyles = makeStyles(
alignItems: "center"
},
prevNextButton: {
- backgroundColor: palette.common.black.main,
+ backgroundColor: constants.previewModal.controlsBackgroundColor,
+ color: constants.previewModal.controlsButtonColor,
padding: `${constants.generalUnit * 2}px !important`,
- borderRadius: constants.generalUnit * 4
+ borderRadius: constants.generalUnit * 4,
+ border: "none",
+ "& svg": {
+ fill: constants.previewModal.controlsButtonColor
+ },
+ "&:hover": {
+ backgroundColor: constants.previewModal.controlsBackgroundHoverColor,
+ "& svg": {
+ fill: constants.previewModal.controlsButtonColor
+ }
+ },
+ "&:active": {
+ backgroundColor: constants.previewModal.controlsBackgroundHoverColor,
+ "& svg": {
+ fill: constants.previewModal.controlsButtonColor
+ }
+ },
+ "&:focus": {
+ backgroundColor: constants.previewModal.controlsBackgroundHoverColor,
+ "& svg": {
+ fill: constants.previewModal.controlsButtonColor
+ }
+ }
},
previewContent: {
color: constants.previewModal.message,
@@ -277,8 +299,9 @@ const FilePreviewModal = ({ file, nextFile, previousFile, closePreview, filePath
onClick={handleDownload}
variant="text"
data-cy="button-download-previewed-file"
+ className={classes.downloadIcon}
>
-
+
setIsModalConfirmationOpen(false)}
className={classes.cancelButton}
disabled={loadingDeleteShare}
diff --git a/packages/files-ui/src/Components/Modules/Settings/SubscriptionTab/Common/AddCard.tsx b/packages/files-ui/src/Components/Modules/Settings/SubscriptionTab/Common/AddCard.tsx
index ea13e0d315..b209b256a8 100644
--- a/packages/files-ui/src/Components/Modules/Settings/SubscriptionTab/Common/AddCard.tsx
+++ b/packages/files-ui/src/Components/Modules/Settings/SubscriptionTab/Common/AddCard.tsx
@@ -1,6 +1,6 @@
import React, { FormEvent, useMemo, useState } from "react"
import { Button, Typography, useToasts } from "@chainsafe/common-components"
-import { createStyles, makeStyles, useTheme, useThemeSwitcher } from "@chainsafe/common-theme"
+import { createStyles, makeStyles, useTheme } from "@chainsafe/common-theme"
import { CSFTheme } from "../../../../../Themes/types"
import CustomButton from "../../../../Elements/CustomButton"
import { t, Trans } from "@lingui/macro"
@@ -95,7 +95,6 @@ const AddCard = ({ onClose, onCardAdd, footerClassName, submitText, goBack }: IA
const [cardAddError, setCardAddError] = useState(undefined)
const theme: CSFTheme = useTheme()
const isUpdate = useMemo(() => !!defaultCard, [defaultCard])
- const { desktop } = useThemeSwitcher()
const [loadingPaymentMethodAdd, setLoadingPaymentMethodAdd] = useState(false)
@@ -232,14 +231,14 @@ const AddCard = ({ onClose, onCardAdd, footerClassName, submitText, goBack }: IA
variant="text"
onClick={goBack}
>
- Go back
+ Go back
}
{onClose &&
({
main: "var(--gray10)",
hover: "#000"
},
- common: {
- black: {
- main: "var(--gray1)"
- }
- },
additional: {
blue: {
1: "var(--blue1)",
@@ -394,7 +389,10 @@ export const darkTheme = createTheme({
previewModal: {
controlsBackground: "var(--gray1)",
controlsColor: "var(--gray10)",
- closeButtonColor: "var(--gray9)",
+ headerButtonColor: "#DBDBDB",
+ controlsButtonColor: "#141414",
+ controlsBackgroundColor: "#DBDBDB",
+ controlsBackgroundHoverColor: "#FAFAFA",
fileOpsColor: "var(--gray9)",
fileNameColor: "var(--gray9)",
optionsBackground: "var(--gray2)",
@@ -666,10 +664,33 @@ export const darkTheme = createTheme({
}
},
focus: {
- color: "none",
- backgroundColor: "none",
+ backgroundColor: "var(--gray7)",
+ color: "var(--gray9)",
"& svg": {
- fill: "none"
+ fill: "var(--gray9)"
+ }
+ }
+ },
+ secondary: {
+ active: {
+ backgroundColor: "var(--gray2)",
+ color: "var(--gray9)",
+ "& svg": {
+ fill: "var(--gray9)"
+ }
+ },
+ hover: {
+ backgroundColor: "var(--gray2)",
+ color: "var(--gray9)",
+ "& svg": {
+ fill: "var(--gray9)"
+ }
+ },
+ focus: {
+ backgroundColor: "var(--gray2)",
+ color: "var(--gray9)",
+ "& svg": {
+ fill: "var(--gray9)"
}
}
},
@@ -696,10 +717,10 @@ export const darkTheme = createTheme({
}
},
focus: {
- color: "none",
- backgroundColor: "none",
+ backgroundColor: "var(--gray7)",
+ color: "var(--gray9)",
"& svg": {
- fill: "none"
+ fill: "var(--gray9)"
}
}
},
diff --git a/packages/files-ui/src/Themes/LightTheme.ts b/packages/files-ui/src/Themes/LightTheme.ts
index 58891271e2..41acea571c 100644
--- a/packages/files-ui/src/Themes/LightTheme.ts
+++ b/packages/files-ui/src/Themes/LightTheme.ts
@@ -12,8 +12,6 @@ export const lightTheme = createTheme({
primary: {
main: "var(--csf-primary)",
background: "var(--csf-primary)"
- },
- secondary: {
}
},
constants: {
@@ -81,7 +79,10 @@ export const lightTheme = createTheme({
previewModal: {
controlsBackground: "var(--gray9)",
controlsColor: "var(--gray8)",
- closeButtonColor: "var(--gray2)",
+ headerButtonColor: "#DBDBDB",
+ controlsButtonColor: "#141414",
+ controlsBackgroundColor: "#DBDBDB",
+ controlsBackgroundHoverColor: "#FAFAFA",
fileOpsColor: "var(--gray2)",
fileNameColor: "var(--gray1)",
optionsBackground: "var(--gray1)",
@@ -215,19 +216,6 @@ export const lightTheme = createTheme({
cursor: "pointer"
}
},
- Button: {
- variants: {
- primary: {
- focus: {
- color: "none",
- backgroundColor: "none",
- "& svg": {
- fill: "none"
- }
- }
- }
- }
- },
ToggleHiddenText: {
icon: {
stroke: "var(--gray9)"
diff --git a/packages/files-ui/src/locales/de/messages.po b/packages/files-ui/src/locales/de/messages.po
index 597fd34b6e..66c8ffa3c1 100644
--- a/packages/files-ui/src/locales/de/messages.po
+++ b/packages/files-ui/src/locales/de/messages.po
@@ -436,9 +436,6 @@ msgstr "Wird generiert …"
msgid "Get Started"
msgstr "Anfangen"
-msgid "Go back"
-msgstr ""
-
msgid "Go back"
msgstr "Zurück"
diff --git a/packages/files-ui/src/locales/en/messages.po b/packages/files-ui/src/locales/en/messages.po
index d07dd9a1ab..923378ee46 100644
--- a/packages/files-ui/src/locales/en/messages.po
+++ b/packages/files-ui/src/locales/en/messages.po
@@ -439,9 +439,6 @@ msgstr "Generating…"
msgid "Get Started"
msgstr "Get Started"
-msgid "Go back"
-msgstr "Go back"
-
msgid "Go back"
msgstr "Go back"
diff --git a/packages/files-ui/src/locales/es/messages.po b/packages/files-ui/src/locales/es/messages.po
index e4ee3965ea..d84565c393 100644
--- a/packages/files-ui/src/locales/es/messages.po
+++ b/packages/files-ui/src/locales/es/messages.po
@@ -440,9 +440,6 @@ msgstr ""
msgid "Get Started"
msgstr "Empezar"
-msgid "Go back"
-msgstr ""
-
msgid "Go back"
msgstr "Regresar"
diff --git a/packages/files-ui/src/locales/fr/messages.po b/packages/files-ui/src/locales/fr/messages.po
index 0ec828fbe0..824da41357 100644
--- a/packages/files-ui/src/locales/fr/messages.po
+++ b/packages/files-ui/src/locales/fr/messages.po
@@ -440,9 +440,6 @@ msgstr "Génération…"
msgid "Get Started"
msgstr "Commencer"
-msgid "Go back"
-msgstr "Retour"
-
msgid "Go back"
msgstr "Retour"
diff --git a/packages/files-ui/src/locales/no/messages.po b/packages/files-ui/src/locales/no/messages.po
index 31f6f5e49f..2f7ac1cf30 100644
--- a/packages/files-ui/src/locales/no/messages.po
+++ b/packages/files-ui/src/locales/no/messages.po
@@ -436,9 +436,6 @@ msgstr ""
msgid "Get Started"
msgstr "Begynn"
-msgid "Go back"
-msgstr ""
-
msgid "Go back"
msgstr "Tilbake"