Skip to content

Commit

Permalink
fix some tag semantics in the admin course page
Browse files Browse the repository at this point in the history
  • Loading branch information
mipyykko committed Aug 30, 2023
1 parent ad66e7a commit f1d6c8a
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 12 deletions.
2 changes: 1 addition & 1 deletion frontend/components/CourseImage.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ const CourseImage = React.memo((props: CourseImageProps) => {
/>
) : (
<PlaceholderComponent>
<Typography variant="h3">no image</Typography>
<Typography variant="caption">no image</Typography>
</PlaceholderComponent>
)}
</>
Expand Down
12 changes: 4 additions & 8 deletions frontend/components/Dashboard/CourseCard.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -135,10 +135,10 @@ const CourseTitleBadgeContainer = styled("div")`
align-items: center;
`

const CourseInfoValue = styled("div")`
const CourseInfoValue = styled(Typography)`
display: flex;
justify-content: flex-end;
`
` as typeof Typography

const CreateCourseIconContainer = styled("div")`
display: flex;
Expand All @@ -160,12 +160,8 @@ const CourseInfo = ({
}: React.HTMLAttributes<HTMLLIElement> &
PropsWithChildren<CourseInfoProps>) => (
<CourseInfoLine {...props}>
{field && (
<CourseInfoField variant="h4" component="h3">
{field}
</CourseInfoField>
)}
{value && <CourseInfoValue>{value}</CourseInfoValue>}
{field && <CourseInfoField variant="subtitle2">{field}</CourseInfoField>}
{value && <CourseInfoValue variant="body2">{value}</CourseInfoValue>}
{children}
</CourseInfoLine>
)
Expand Down
6 changes: 3 additions & 3 deletions frontend/src/newTheme/components.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -192,7 +192,7 @@ export const withComponents = (theme: Theme) =>
},
textPrimary: {
backgroundColor: theme.palette.common.brand.main,
color: theme.palette.common.grayscale.white,
color: `${theme.palette.common.grayscale.white} !important`,
".MuiButton-startIcon": {
padding: "8px 13px",
fill: theme.palette.common.grayscale.white,
Expand Down Expand Up @@ -231,7 +231,7 @@ export const withComponents = (theme: Theme) =>
textSecondary: {
backgroundColor: "transparent",
border: `solid 2px ${theme.palette.common.brand.main}`,
color: theme.palette.common.brand.main,
color: `${theme.palette.common.brand.main} !important`,
boxShadow: "none",
".MuiButton-startIcon": {
fill: theme.palette.common.brand.main,
Expand All @@ -244,7 +244,7 @@ export const withComponents = (theme: Theme) =>
},
"&:hover": {
border: `solid 2px ${theme.palette.common.brand.active}`,
color: theme.palette.common.brand.active,
color: `${theme.palette.common.brand.active} !important`,
svg: {
fill: theme.palette.common.brand.active,
},
Expand Down

0 comments on commit f1d6c8a

Please sign in to comment.