diff --git a/client/src/assets/icons/green-not-completed.tsx b/client/src/assets/icons/green-not-completed.tsx index ae4fbb59bcb..50cc88e0781 100644 --- a/client/src/assets/icons/green-not-completed.tsx +++ b/client/src/assets/icons/green-not-completed.tsx @@ -17,9 +17,9 @@ function GreenNotCompleted(props: GreenNotCompletedProps): JSX.Element { )}

{children}

- {isCompleted ? ( - - ) : null} + {isCompleted && }
diff --git a/client/src/templates/Introduction/components/block.tsx b/client/src/templates/Introduction/components/block.tsx index 3926bde7406..30e4501ceb1 100644 --- a/client/src/templates/Introduction/components/block.tsx +++ b/client/src/templates/Introduction/components/block.tsx @@ -58,8 +58,6 @@ interface BlockProps { toggleBlock: typeof toggleBlock; } -const mapIconStyle = { height: '15px', marginRight: '10px', width: '15px' }; - export class Block extends Component { static displayName: string; constructor(props: BlockProps) { @@ -83,9 +81,9 @@ export class Block extends Component { renderCheckMark(isCompleted: boolean): JSX.Element { return isCompleted ? ( - + ) : ( - + ); } diff --git a/client/src/templates/Introduction/components/challenges.tsx b/client/src/templates/Introduction/components/challenges.tsx index 3aae6aa3da2..6686cf863f7 100644 --- a/client/src/templates/Introduction/components/challenges.tsx +++ b/client/src/templates/Introduction/components/challenges.tsx @@ -24,8 +24,6 @@ interface Challenges { blockTitle?: string | null; } -const mapIconStyle = { height: '15px', marginRight: '10px', width: '15px' }; - function Challenges({ challengesWithCompleted, executeGA, @@ -44,11 +42,7 @@ function Challenges({ }); const renderCheckMark = (isCompleted: boolean) => - isCompleted ? ( - - ) : ( - - ); + isCompleted ? : ; const isGridMap = isNewRespCert(superBlock) || isNewJsCert(superBlock); diff --git a/client/src/templates/Introduction/intro.css b/client/src/templates/Introduction/intro.css index f61d1618db5..016f5349566 100644 --- a/client/src/templates/Introduction/intro.css +++ b/client/src/templates/Introduction/intro.css @@ -89,6 +89,8 @@ a.cert-tag:active { } .course-title { + display: flex; + align-items: center; font-size: 1.13rem; overflow-wrap: break-word; } @@ -137,6 +139,7 @@ button.map-title { .map-challenge-wrap > a, .map-project-wrap > a { display: flex; + gap: 7px; } .map-project-wrap > a { @@ -144,7 +147,6 @@ button.map-title { } .map-project-checkmark { - margin-right: 7px; padding-left: 15px; } @@ -212,7 +214,6 @@ button.map-title { .map-title svg { width: 14px; - margin-right: 10px; flex-shrink: 0; fill: var(--color-quaternary) !important; stroke: var(--color-quaternary); @@ -426,8 +427,10 @@ button.map-title { padding: 25px; } +/* this margin is used to center the element. +ToDo: find out why, and remove the need for it */ .block-grid .map-title > svg { - margin: 10px; + margin-bottom: 4px; } .title-wrapper { @@ -436,6 +439,12 @@ button.map-title { align-items: center; width: 100%; } +.course-title, +.map-title, +.block-header-button-text, +.title-wrapper { + gap: 10px; +} .block-grid .progress-wrapper { width: 100%;