Skip to content

Commit c1940d6

Browse files
[PRMP-1519] WCAG 1.4.10 reflow - long names do not reflow correctly on view records screen (#591)
* [PRMP-1519] - Fix long name overflow on small screen sizes * [PRMP-1519] - Fix spacing between givenName and familyName
1 parent bfd2267 commit c1940d6

File tree

2 files changed

+7
-1
lines changed

2 files changed

+7
-1
lines changed

app/src/components/generic/patientSimpleSummary/PatientSimpleSummary.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@ const PatientSimpleSummary = ({ separator = false, showDeceasedTag = false }: Pr
3838
data-testid="patient-name"
3939
className="nhsuk-u-padding-right-9 nhsuk-u-font-weight-bold"
4040
>
41-
{`${patientDetails?.givenName}, ${patientDetails?.familyName}`}
41+
{`${givenName}, ${familyName}`}
4242
</span>
4343

4444
{longname && <br />}

app/src/styles/App.scss

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -270,6 +270,12 @@ $hunit: '%';
270270
&_patient-info {
271271
p {
272272
font-size: 1.2rem;
273+
word-break: break-word;
274+
overflow-wrap: break-word;
275+
}
276+
span {
277+
overflow-wrap: break-word;
278+
word-break: break-word;
273279
}
274280
}
275281

0 commit comments

Comments
 (0)