Skip to content

Commit

Permalink
Added padding around error message and various UI Fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
lambeb committed Nov 1, 2024
1 parent 9c64f3f commit 59286c1
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ function ReissueNewDonorCase({ questionnaire }: Props): ReactElement {
<>
<div className="ons-summary ons-u-mb-m">
<div className="ons-summary__group">
<h2 className="ons-summary__group-title">Reissue New Donor Case for User</h2>
<h2 className="ons-summary__group-title">Reissue New Donor Case</h2>
<table className="ons-summary__items">
<tbody className="ons-summary__item">
<tr className="ons-summary__row ons-summary__row--has-values">
Expand All @@ -45,7 +45,6 @@ function ReissueNewDonorCase({ questionnaire }: Props): ReactElement {
</label>
<input type="text" id="user" className="ons-input ons-input--text ons-input-type__input" value={user} onChange={(e) => setUser(e.target.value)}/>
</div>
{error && <p className="ons-summary__item--error">{errorMessage}</p>}
</div>
</td>
<td className="ons-summary__values" colSpan={2} rowSpan={2}>
Expand All @@ -57,6 +56,7 @@ function ReissueNewDonorCase({ questionnaire }: Props): ReactElement {
/>
</td>
</tr>
{error && <p className="ons-summary__item--error">{errorMessage}</p>}
</tbody>
</table>
</div>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,6 @@ describe("ReissueNewDonorCaseSummary", () => {
expect(
getByText(/Error reissuing new donor case for testuser1/i)
).toBeInTheDocument();
expect(getByText(/When reporting this issue to the Service Desk, please provide the questionnaire name, user, yarn testtime and date of the failure./i)).toBeInTheDocument();
expect(getByText(/When reporting this issue to the Service Desk, please provide the questionnaire name, user, time and date of the failure./i)).toBeInTheDocument();
});
});

0 comments on commit 59286c1

Please sign in to comment.