Skip to content

Commit a1cbc12

Browse files
committed
Update workspace header
1 parent 5ae26fa commit a1cbc12

File tree

4 files changed

+22
-16
lines changed

4 files changed

+22
-16
lines changed

site/src/components/Stats/Stats.tsx

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -33,6 +33,7 @@ export const StatsItem: FC<
3333

3434
const useStyles = makeStyles((theme) => ({
3535
stats: {
36+
...theme.typography.body2,
3637
paddingLeft: theme.spacing(2),
3738
paddingRight: theme.spacing(2),
3839
borderRadius: theme.shape.borderRadius,

site/src/components/TemplateLayout/TemplatePageHeader.tsx

Lines changed: 7 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
import Button from "@mui/material/Button"
2-
import AddCircleOutline from "@mui/icons-material/AddCircleOutline"
2+
import AddIcon from "@mui/icons-material/AddOutlined"
33
import {
44
AuthorizationResponse,
55
Template,
@@ -25,6 +25,7 @@ import SettingsOutlined from "@mui/icons-material/SettingsOutlined"
2525
import DeleteOutlined from "@mui/icons-material/DeleteOutlined"
2626
import EditOutlined from "@mui/icons-material/EditOutlined"
2727
import FileCopyOutlined from "@mui/icons-material/FileCopyOutlined"
28+
import IconButton from "@mui/material/IconButton"
2829

2930
const TemplateMenu: FC<{
3031
templateName: string
@@ -44,14 +45,15 @@ const TemplateMenu: FC<{
4445

4546
return (
4647
<div>
47-
<Button
48+
<IconButton
4849
aria-controls="template-options"
4950
aria-haspopup="true"
5051
onClick={() => setIsMenuOpen(true)}
5152
ref={menuTriggerRef}
53+
arial-label="More options"
5254
>
5355
<MoreVertOutlined />
54-
</Button>
56+
</IconButton>
5557

5658
<Menu
5759
id="template-options"
@@ -99,7 +101,8 @@ const CreateWorkspaceButton: FC<{
99101
className?: string
100102
}> = ({ templateName }) => (
101103
<Button
102-
startIcon={<AddCircleOutline />}
104+
variant="contained"
105+
startIcon={<AddIcon />}
103106
component={RouterLink}
104107
to={`/templates/${templateName}/workspace`}
105108
>

site/src/pages/TemplatesPage/TemplatesPageView.tsx

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -153,7 +153,12 @@ export const TemplatesPageView: FC<
153153
<Button component={RouterLink} to="/starter-templates">
154154
Starter templates
155155
</Button>
156-
<Button startIcon={<AddIcon />} component={RouterLink} to="new">
156+
<Button
157+
startIcon={<AddIcon />}
158+
component={RouterLink}
159+
to="new"
160+
variant="contained"
161+
>
157162
Add template
158163
</Button>
159164
</Maybe>

site/src/theme/theme.ts

Lines changed: 8 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -136,6 +136,13 @@ dark = createTheme(dark, {
136136
outlinedNeutral: {
137137
borderColor: colors.gray[12],
138138
},
139+
containedNeutral: {
140+
borderColor: colors.gray[12],
141+
backgroundColor: colors.gray[13],
142+
"&:hover": {
143+
backgroundColor: colors.gray[12],
144+
},
145+
},
139146
iconSizeMedium: {
140147
"& > .MuiSvgIcon-root": {
141148
fontSize: 18,
@@ -148,16 +155,6 @@ dark = createTheme(dark, {
148155
},
149156
},
150157
},
151-
MuiIconButton: {
152-
styleOverrides: {
153-
sizeSmall: {
154-
"& .MuiSvgIcon-root": {
155-
width: 20,
156-
height: 20,
157-
},
158-
},
159-
},
160-
},
161158
MuiTableContainer: {
162159
styleOverrides: {
163160
root: {
@@ -270,7 +267,7 @@ dark = createTheme(dark, {
270267
marginTop: 8,
271268
borderRadius: 4,
272269
padding: "4px 0",
273-
minWidth: 120,
270+
minWidth: 160,
274271
},
275272
},
276273
},

0 commit comments

Comments
 (0)