Skip to content

chore: add alpha badges to workspace cleanup fields #9802

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 3 commits into from
Sep 22, 2023
Merged
Show file tree
Hide file tree
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
fix css
  • Loading branch information
sreya committed Sep 20, 2023
commit e5176c54cc85b3eff72e07a2d6bf90bb62ea3f0f
2 changes: 0 additions & 2 deletions site/src/components/DeploySettingsLayout/Badges.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -135,8 +135,6 @@ const useStyles = makeStyles((theme) => ({
alphaBadge: {
border: `1px solid ${theme.palette.error.light}`,
backgroundColor: theme.palette.error.dark,
display: "inline",
marginLeft: "10px",
},

versionBadge: {
Expand Down
10 changes: 9 additions & 1 deletion site/src/components/Form/Form.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -85,11 +85,12 @@ export const FormSection: FC<
<h2
className={combineClasses([
styles.formSectionInfoTitle,
alpha && styles.formSectionInfoTitleAlpha,
classes.infoTitle,
])}
>
{title}
{alpha ? <AlphaBadge /> : null}
{alpha && <AlphaBadge />}
</h2>
<div className={styles.formSectionInfoDescription}>{description}</div>
</div>
Expand Down Expand Up @@ -174,6 +175,13 @@ const useStyles = makeStyles((theme) => ({
marginBottom: theme.spacing(1),
},

formSectionInfoTitleAlpha: {
display: "flex",
flexDirection: "row",
alignItems: "center",
gap: theme.spacing(1.5),
},

formSectionInfoDescription: {
fontSize: 14,
color: theme.palette.text.secondary,
Expand Down