Skip to content

Commit

Permalink
Merge branch '3.2.0' into pbac-update-user-roles
Browse files Browse the repository at this point in the history
  • Loading branch information
amattu2 authored Jan 6, 2025
2 parents 9a68a63 + b5e35fb commit 88c8f56
Show file tree
Hide file tree
Showing 4 changed files with 5 additions and 3 deletions.
2 changes: 1 addition & 1 deletion src/components/Questionnaire/LabelCheckbox.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -69,7 +69,7 @@ const LabelCheckbox: FC<Props> = ({
data-type="boolean"
value={checked ? "true" : "false"}
onChange={() => {}}
aria-labelledby={`${idPrefix}-label`}
aria-label={rest?.inputProps?.["aria-label"]}
checked
hidden
/>
Expand Down
2 changes: 1 addition & 1 deletion src/components/Questionnaire/ReviewDataListing.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ const ReviewDataListing = ({ idPrefix, title, description, hideTitle, children }
{title || description ? (
<StyledGridHeader xs={12} item>
{title && (
<StyledTitle id={idPrefix.concat(`-section-title`)} variant="h5">
<StyledTitle id={idPrefix.concat(`-section-title`)} variant="h4">
{!hideTitle ? title : null}
</StyledTitle>
)}
Expand Down
2 changes: 1 addition & 1 deletion src/components/Questionnaire/ReviewSection.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ const ReviewSection: FC<Props> = ({ idPrefix, title, divider = true, children })
<Grid className="review-section-header" xs={12} item sx={{ padding: "0 !important" }}>
<Stack direction="row" alignItems="center">
{title && (
<StyledTitle id={idPrefix.concat("-section-header-title")} variant="h6">
<StyledTitle id={idPrefix.concat("-section-header-title")} variant="h3">
{title}
</StyledTitle>
)}
Expand Down
2 changes: 2 additions & 0 deletions src/content/questionnaire/sections/C.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -163,6 +163,7 @@ const FormSectionC: FC<FormSectionProps> = ({ SectionOption, refs }: FormSection
checked={otherCancerTypesEnabled}
onChange={handleOtherCancerTypesCheckboxChange}
readOnly={cancerTypes.includes(CUSTOM_CANCER_TYPES.NOT_APPLICABLE) || readOnlyInputs}
inputProps={{ "aria-label": "Toggle Other cancer type(s)" }}
/>
}
name="otherCancerTypes"
Expand Down Expand Up @@ -213,6 +214,7 @@ const FormSectionC: FC<FormSectionProps> = ({ SectionOption, refs }: FormSection
checked={otherSpeciesEnabled}
onChange={handleOtherSpeciesCheckboxChange}
readOnly={readOnlyInputs}
inputProps={{ "aria-label": "Toggle Other Specie(s) involved" }}
/>
}
name="otherSpeciesOfSubjects"
Expand Down

0 comments on commit 88c8f56

Please sign in to comment.