- Well done! -
, .c0 { @@ -509,7 +540,7 @@ exports[`OakLessonBottomNav matches snapshot 1`] = ` font-family: Lexend,sans-serif; } -.c10 { +.c11 { width: 100%; height: -webkit-fit-content; height: -moz-fit-content; @@ -517,14 +548,14 @@ exports[`OakLessonBottomNav matches snapshot 1`] = ` font-family: Lexend,sans-serif; } -.c6 { +.c7 { position: relative; width: 100%; height: 100%; font-family: Lexend,sans-serif; } -.c5 { +.c6 { width: 1.5rem; height: 1.5rem; padding: 0rem; @@ -544,7 +575,18 @@ exports[`OakLessonBottomNav matches snapshot 1`] = ` gap: 1.5rem; } -.c11 { +.c4 { + display: -webkit-box; + display: -webkit-flex; + display: -ms-flexbox; + display: flex; + -webkit-align-items: center; + -webkit-box-align: center; + -ms-flex-align: center; + align-items: center; +} + +.c12 { display: -webkit-box; display: -webkit-flex; display: -ms-flexbox; @@ -562,7 +604,7 @@ exports[`OakLessonBottomNav matches snapshot 1`] = ` flex-grow: 1; } -.c4 { +.c5 { display: -webkit-box; display: -webkit-flex; display: -ms-flexbox; @@ -570,7 +612,7 @@ exports[`OakLessonBottomNav matches snapshot 1`] = ` gap: 0.75rem; } -.c8 { +.c9 { color: #dd0035; font-family: Lexend,sans-serif; font-weight: 600; @@ -582,7 +624,7 @@ exports[`OakLessonBottomNav matches snapshot 1`] = ` letter-spacing: 0.0115rem; } -.c9 { +.c10 { margin-top: 0.75rem; font-family: Lexend,sans-serif; font-weight: 300; @@ -594,7 +636,7 @@ exports[`OakLessonBottomNav matches snapshot 1`] = ` letter-spacing: -0.005rem; } -.c7 { +.c8 { -webkit-filter: invert(98%) sepia(98%) saturate(0%) hue-rotate(328deg) brightness(102%) contrast(102%); filter: invert(98%) sepia(98%) saturate(0%) hue-rotate(328deg) brightness(102%) contrast(102%); object-fit: contain; @@ -605,7 +647,7 @@ exports[`OakLessonBottomNav matches snapshot 1`] = ` } @media (min-width:750px) { - .c10 { + .c11 { width: auto; } } @@ -619,7 +661,7 @@ exports[`OakLessonBottomNav matches snapshot 1`] = ` } @media (min-width:750px) { - .c11 { + .c12 { -webkit-box-pack: end; -webkit-justify-content: flex-end; -ms-flex-pack: end; @@ -631,57 +673,62 @@ exports[`OakLessonBottomNav matches snapshot 1`] = ` className="c0 c1 c2" >- Keep trying -
, .c0 { @@ -694,7 +741,7 @@ exports[`OakLessonBottomNav matches snapshot 1`] = ` font-family: Lexend,sans-serif; } -.c10 { +.c11 { width: 100%; height: -webkit-fit-content; height: -moz-fit-content; @@ -702,7 +749,7 @@ exports[`OakLessonBottomNav matches snapshot 1`] = ` font-family: Lexend,sans-serif; } -.c5 { +.c6 { width: 1.5rem; height: 1.5rem; padding: 0rem; @@ -711,7 +758,7 @@ exports[`OakLessonBottomNav matches snapshot 1`] = ` font-family: Lexend,sans-serif; } -.c6 { +.c7 { position: relative; width: 100%; height: 100%; @@ -729,7 +776,18 @@ exports[`OakLessonBottomNav matches snapshot 1`] = ` gap: 1.5rem; } -.c11 { +.c4 { + display: -webkit-box; + display: -webkit-flex; + display: -ms-flexbox; + display: flex; + -webkit-align-items: center; + -webkit-box-align: center; + -ms-flex-align: center; + align-items: center; +} + +.c12 { display: -webkit-box; display: -webkit-flex; display: -ms-flexbox; @@ -747,7 +805,7 @@ exports[`OakLessonBottomNav matches snapshot 1`] = ` flex-grow: 1; } -.c4 { +.c5 { display: -webkit-box; display: -webkit-flex; display: -ms-flexbox; @@ -755,7 +813,7 @@ exports[`OakLessonBottomNav matches snapshot 1`] = ` gap: 0.75rem; } -.c8 { +.c9 { color: #287c34; font-family: Lexend,sans-serif; font-weight: 600; @@ -767,7 +825,7 @@ exports[`OakLessonBottomNav matches snapshot 1`] = ` letter-spacing: 0.0115rem; } -.c9 { +.c10 { margin-top: 0.75rem; font-family: Lexend,sans-serif; font-weight: 700; @@ -779,7 +837,7 @@ exports[`OakLessonBottomNav matches snapshot 1`] = ` letter-spacing: -0.005rem; } -.c7 { +.c8 { -webkit-filter: invert(98%) sepia(98%) saturate(0%) hue-rotate(328deg) brightness(102%) contrast(102%); filter: invert(98%) sepia(98%) saturate(0%) hue-rotate(328deg) brightness(102%) contrast(102%); object-fit: contain; @@ -790,7 +848,7 @@ exports[`OakLessonBottomNav matches snapshot 1`] = ` } @media (min-width:750px) { - .c10 { + .c11 { width: auto; } } @@ -804,7 +862,7 @@ exports[`OakLessonBottomNav matches snapshot 1`] = ` } @media (min-width:750px) { - .c11 { + .c12 { -webkit-box-pack: end; -webkit-justify-content: flex-end; -ms-flex-pack: end; @@ -816,57 +874,62 @@ exports[`OakLessonBottomNav matches snapshot 1`] = ` className="c0 c1 c2" >- Nearly there -
, ] diff --git a/src/components/organisms/pupil/OakQuizFeedback/OakQuizFeedback.stories.tsx b/src/components/organisms/pupil/OakQuizFeedback/OakQuizFeedback.stories.tsx index 78d43d94..25d761df 100644 --- a/src/components/organisms/pupil/OakQuizFeedback/OakQuizFeedback.stories.tsx +++ b/src/components/organisms/pupil/OakQuizFeedback/OakQuizFeedback.stories.tsx @@ -60,3 +60,10 @@ export const AllFeedback: Story = { answerFeedback: "Good work!", }, }; + +export const WithNoAnswerFeedback: Story = { + args: { + feedback: "partially-correct", + answerFeedback: undefined, + }, +}; diff --git a/src/components/organisms/pupil/OakQuizFeedback/OakQuizFeedback.tsx b/src/components/organisms/pupil/OakQuizFeedback/OakQuizFeedback.tsx index c92a944d..028f9cde 100644 --- a/src/components/organisms/pupil/OakQuizFeedback/OakQuizFeedback.tsx +++ b/src/components/organisms/pupil/OakQuizFeedback/OakQuizFeedback.tsx @@ -41,10 +41,11 @@ export const OakQuizFeedback = ({ } return ( -