From 5d59a4e0ad35fa0001edc34b7d24f58f2ad0e748 Mon Sep 17 00:00:00 2001 From: Roy Johnson Date: Wed, 11 Dec 2024 16:30:38 -0600 Subject: [PATCH] Make question-info a heading (#79) [CORE-418] --- src/components/Card.tsx | 2 +- src/components/__snapshots__/Card.spec.tsx.snap | 10 ++++++++++ src/components/__snapshots__/Exercise.spec.tsx.snap | 10 ++++++++++ 3 files changed, 21 insertions(+), 1 deletion(-) diff --git a/src/components/Card.tsx b/src/components/Card.tsx index 5fff851..2559642 100644 --- a/src/components/Card.tsx +++ b/src/components/Card.tsx @@ -243,7 +243,7 @@ const StepCard = ({
{leftHeaderChildren} -
+
{headerTitleChildren} {formattedQuestionNumber} {showTotalQuestions ?  / {numberOfQuestions} : null} diff --git a/src/components/__snapshots__/Card.spec.tsx.snap b/src/components/__snapshots__/Card.spec.tsx.snap index 6f9a8b9..6c640be 100644 --- a/src/components/__snapshots__/Card.spec.tsx.snap +++ b/src/components/__snapshots__/Card.spec.tsx.snap @@ -12,7 +12,9 @@ exports[`StepCard matches snapshot 1`] = ` >
Question 1 @@ -59,7 +61,9 @@ exports[`StepCard matches snapshot with more than one question 1`] = ` >
Questions 1 - 3 @@ -113,7 +117,9 @@ exports[`TaskStepCard can optionally provide task 1`] = ` >
Question 1 @@ -152,7 +158,9 @@ exports[`TaskStepCard can optionally provide type 1`] = ` >
Question 1 @@ -191,7 +199,9 @@ exports[`TaskStepCard matches snapshot 1`] = ` >
Question 1 diff --git a/src/components/__snapshots__/Exercise.spec.tsx.snap b/src/components/__snapshots__/Exercise.spec.tsx.snap index 80a7310..9f85931 100644 --- a/src/components/__snapshots__/Exercise.spec.tsx.snap +++ b/src/components/__snapshots__/Exercise.spec.tsx.snap @@ -16,7 +16,9 @@ exports[`Exercise using step data matches snapshot 1`] = ` >
Question 1 @@ -207,7 +209,9 @@ exports[`Exercise with question state data matches snapshot 1`] = ` >
Question 1 @@ -446,7 +450,9 @@ exports[`Exercise with question state data renders header icons with multiple ch >
Question 1 @@ -771,7 +777,9 @@ exports[`Exercise with question state data renders header icons with two-step ex >
Question 1 @@ -1082,7 +1090,9 @@ exports[`Exercise with question state data shows a detailed solution 1`] = ` >
Question 1