Skip to content

Commit 6ce3af7

Browse files
committed
Add diff color to config option when it is source
1 parent b1058a6 commit 6ce3af7

File tree

1 file changed

+5
-0
lines changed
  • site/src/components/DeploySettingsLayout

1 file changed

+5
-0
lines changed

site/src/components/DeploySettingsLayout/Option.tsx

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@ import { PropsWithChildren, FC } from "react";
33
import { MONOSPACE_FONT_FAMILY } from "theme/constants";
44
import { DisabledBadge, EnabledBadge } from "./Badges";
55
import Box, { BoxProps } from "@mui/material/Box";
6+
import { combineClasses } from "utils/combineClasses";
67

78
export const OptionName: FC<PropsWithChildren> = ({ children }) => {
89
const styles = useStyles();
@@ -82,6 +83,9 @@ export const OptionConfig = ({
8283
`1px solid ${
8384
source ? theme.palette.primary.main : theme.palette.divider
8485
}`,
86+
"& .option-config-flag": {
87+
backgroundColor: source ? "rgba(0, 0, 0, 0.7)" : undefined,
88+
},
8589
...boxProps.sx,
8690
}}
8791
/>
@@ -92,6 +96,7 @@ export const OptionConfigFlag = (props: BoxProps) => {
9296
return (
9397
<Box
9498
{...props}
99+
className={combineClasses([props.className, "option-config-flag"])}
95100
sx={{
96101
fontSize: 10,
97102
fontWeight: 600,

0 commit comments

Comments
 (0)