Skip to content

Commit

Permalink
[PRMP-1240] Reduce width of NHS number input field
Browse files Browse the repository at this point in the history
  • Loading branch information
mark-start-nhs authored Jan 6, 2025
1 parent 90207ac commit 1267f3e
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 0 deletions.
12 changes: 12 additions & 0 deletions app/src/pages/patientSearchPage/PatientSearchPage.test.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -348,6 +348,18 @@ describe('PatientSearchPage', () => {
});
},
);

it('a defined width class is applied to the NHS number input field', async () => {

const definedWidthClass = 'nhsuk-input--width-10';

renderPatientSearchPage();

const input = screen.getByTestId('nhs-number-input');
expect(input).toHaveClass(definedWidthClass);

});

});
});

Expand Down
1 change: 1 addition & 0 deletions app/src/pages/patientSearchPage/PatientSearchPage.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -112,6 +112,7 @@ function PatientSearchPage() {
<Input
id="nhs-number-input"
data-testid="nhs-number-input"
className="nhsuk-input--width-10"
label="Enter NHS number"
hint="A 10-digit number, for example, 485 777 3456"
type="text"
Expand Down

0 comments on commit 1267f3e

Please sign in to comment.