Merge pull request #1220 from bluewave-labs/fix/fe/color-adjustments
fix: adjusted theme settings for color fixes, references #1178
This commit is contained in:
6 files changed
+14
-6
No files matched your search
@@ -158,9 +158,7 @@ const BarChart = ({ checks = [] }) => {
|
|||||||
width="100%"
|
width="100%"
|
||||||
height={`${animate ? check.responseTime : 0}%`}
|
height={`${animate ? check.responseTime : 0}%`}
|
||||||
backgroundColor={
|
backgroundColor={
|
||||||
check.status
|
check.status ? theme.palette.success.main : theme.palette.error.main
|
||||||
? theme.palette.success.main
|
|
||||||
: theme.palette.error.contrastText
|
|
||||||
}
|
}
|
||||||
sx={{
|
sx={{
|
||||||
borderRadius: theme.spacing(1.5),
|
borderRadius: theme.spacing(1.5),
|
||||||
|
|||||||
@@ -127,11 +127,11 @@ const StatusLabel = ({ status, text, customStyles }) => {
|
|||||||
const colors = {
|
const colors = {
|
||||||
up: {
|
up: {
|
||||||
dotColor: theme.palette.success.main,
|
dotColor: theme.palette.success.main,
|
||||||
bgColor: theme.palette.success./* dark */ contrastText,
|
bgColor: theme.palette.success.contrastText /* dark */,
|
||||||
borderColor: theme.palette.success.main /* light */,
|
borderColor: theme.palette.success.main /* light */,
|
||||||
},
|
},
|
||||||
down: {
|
down: {
|
||||||
dotColor: theme.palette.error.contrastText,
|
dotColor: theme.palette.error.main,
|
||||||
bgColor: theme.palette.error.dark,
|
bgColor: theme.palette.error.dark,
|
||||||
borderColor: theme.palette.error.light,
|
borderColor: theme.palette.error.light,
|
||||||
},
|
},
|
||||||
|
|||||||
@@ -22,6 +22,7 @@ const paletteColors = {
|
|||||||
gray80: "#FDFCFD",
|
gray80: "#FDFCFD",
|
||||||
gray90: "#FCFCFD",
|
gray90: "#FCFCFD",
|
||||||
gray100: "#F4F4F4",
|
gray100: "#F4F4F4",
|
||||||
|
gray150: "#EFEFEF",
|
||||||
gray200: "#E3E3E3",
|
gray200: "#E3E3E3",
|
||||||
gray300: "#A2A3A3",
|
gray300: "#A2A3A3",
|
||||||
gray500: "#838C99",
|
gray500: "#838C99",
|
||||||
@@ -205,10 +206,12 @@ const semanticColors = {
|
|||||||
light: {
|
light: {
|
||||||
light: paletteColors.gray200,
|
light: paletteColors.gray200,
|
||||||
dark: paletteColors.gray800,
|
dark: paletteColors.gray800,
|
||||||
|
disabled: paletteColors.gray150,
|
||||||
},
|
},
|
||||||
dark: {
|
dark: {
|
||||||
light: paletteColors.gray200,
|
light: paletteColors.gray200,
|
||||||
dark: paletteColors.gray750,
|
dark: paletteColors.gray750,
|
||||||
|
disabled: paletteColors.gray800,
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
unresolved: {
|
unresolved: {
|
||||||
|
|||||||
@@ -23,6 +23,9 @@ const {
|
|||||||
} = colors;
|
} = colors;
|
||||||
|
|
||||||
const palette = {
|
const palette = {
|
||||||
|
action: {
|
||||||
|
disabled: border.dark.disabled,
|
||||||
|
},
|
||||||
primary: { main: primary.main.dark },
|
primary: { main: primary.main.dark },
|
||||||
secondary: {
|
secondary: {
|
||||||
main: secondary.main.dark,
|
main: secondary.main.dark,
|
||||||
|
|||||||
@@ -220,7 +220,7 @@ const baseTheme = (palette) => ({
|
|||||||
height: "var(--env-var-height-2)",
|
height: "var(--env-var-height-2)",
|
||||||
fontSize: "var(--env-var-font-size-medium)",
|
fontSize: "var(--env-var-font-size-medium)",
|
||||||
fontWeight: 400,
|
fontWeight: 400,
|
||||||
color: palette.text.secondary, // or any color from your palette
|
color: palette.text.secondary,
|
||||||
},
|
},
|
||||||
"& .MuiInputBase-input.MuiOutlinedInput-input": {
|
"& .MuiInputBase-input.MuiOutlinedInput-input": {
|
||||||
padding: "0 var(--env-var-spacing-1-minus) !important",
|
padding: "0 var(--env-var-spacing-1-minus) !important",
|
||||||
@@ -231,6 +231,7 @@ const baseTheme = (palette) => ({
|
|||||||
"& .MuiOutlinedInput-notchedOutline": {
|
"& .MuiOutlinedInput-notchedOutline": {
|
||||||
borderRadius: 4,
|
borderRadius: 4,
|
||||||
},
|
},
|
||||||
|
|
||||||
"& .MuiFormHelperText-root": {
|
"& .MuiFormHelperText-root": {
|
||||||
color: palette.error.main,
|
color: palette.error.main,
|
||||||
opacity: 0.8,
|
opacity: 0.8,
|
||||||
|
|||||||
@@ -28,6 +28,9 @@ const {
|
|||||||
} = colors;
|
} = colors;
|
||||||
|
|
||||||
const palette = {
|
const palette = {
|
||||||
|
action: {
|
||||||
|
disabled: border.light.disabled,
|
||||||
|
},
|
||||||
primary: { main: primary.main.light },
|
primary: { main: primary.main.light },
|
||||||
secondary: {
|
secondary: {
|
||||||
main: secondary.main.light,
|
main: secondary.main.light,
|
||||||
|
|||||||
Reference in new issue
Block a user