Skip to content

chore: color value_source for deployment values #9922

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 21 commits into from
Sep 29, 2023
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
Use theme colors
  • Loading branch information
Emyrk committed Sep 28, 2023
commit a6cc10e7914c567b19e2edc862aaa09d51a19361
8 changes: 6 additions & 2 deletions site/src/components/DeploySettingsLayout/Option.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -71,13 +71,17 @@ export const OptionConfig = ({
fontFamily: MONOSPACE_FONT_FAMILY,
fontWeight: 600,
backgroundColor: (theme) =>
source ? "green" : theme.palette.background.paperLight,
source
? theme.palette.success.dark
: theme.palette.background.paperLight,
display: "inline-flex",
alignItems: "center",
borderRadius: 0.25,
padding: (theme) => theme.spacing(0, 1),
border: (theme) =>
`1px solid ${source ? "lightgreen" : theme.palette.divider}`,
`1px solid ${
source ? theme.palette.success.light : theme.palette.divider
}`,
...boxProps.sx,
}}
/>
Expand Down