Skip to content

Commit

Permalink
fix: breadcrumb background colour
Browse files Browse the repository at this point in the history
  • Loading branch information
eleanorreem committed May 9, 2024
1 parent 4d7ff0c commit a76aadc
Show file tree
Hide file tree
Showing 2 changed files with 23 additions and 3 deletions.
9 changes: 8 additions & 1 deletion components/course/CourseHeader.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@ import { Button } from '@mui/material';
import { ISbRichtext } from '@storyblok/react';
import { useTranslations } from 'next-intl';
import { PROGRESS_STATUS } from '../../constants/enums';
import theme from '../../styles/theme';
import Link from '../common/Link';
import Header from '../layout/Header';

Expand All @@ -27,7 +28,13 @@ const CourseHeader = (props: CourseHeaderProps) => {

return (
<Header {...headerProps}>
<Button variant="outlined" href="/courses" size="small" component={Link}>
<Button
variant="outlined"
sx={{ background: theme.palette.background.default }}
href="/courses"
size="small"
component={Link}
>
{t('backToCourses')}
</Button>
</Header>
Expand Down
17 changes: 15 additions & 2 deletions components/storyblok/StoryblokSessionIbaPage.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,7 @@ import {
import { useTypedSelector } from '../../hooks/store';
import illustrationPerson4Peach from '../../public/illustration_person4_peach.svg';
import { columnStyle } from '../../styles/common';
import theme from '../../styles/theme';
import hasAccessToPage from '../../utils/hasAccessToPage';
import logEvent, { getEventUserData } from '../../utils/logEvent';
import { RichTextOptions } from '../../utils/richText';
Expand Down Expand Up @@ -257,13 +258,25 @@ const StoryblokSessionIbaPage = (props: StoryblokSessionIbaPageProps) => {
imageAlt={headerProps.imageAlt}
progressStatus={sessionProgress}
>
<Button variant="outlined" href="/courses" size="small" component={Link}>
<Button
variant="outlined"
href="/courses"
sx={{ background: theme.palette.background.default }}
size="small"
component={Link}
>
Courses
</Button>

<CircleIcon color="error" sx={{ ...dotStyle, marginX: 1 }} />

<Button variant="outlined" href={`/${course.full_slug}`} size="small" component={Link}>
<Button
variant="outlined"
sx={{ background: theme.palette.background.default }}
href={`/${course.full_slug}`}
size="small"
component={Link}
>
{course.name}
</Button>
<Typography sx={sessionSubtitleStyle} variant="body2">
Expand Down

0 comments on commit a76aadc

Please sign in to comment.