mirror of
https://github.com/GSA/notifications-admin.git
synced 2026-07-10 03:14:58 -04:00
Migrate GOV.UK components to USWDS
- Convert previous/next navigation to USWDS pagination component - Update radio buttons and checkboxes to use USWDS classes - Migrate guest list inputs with proper USWDS styling - Replace GOV.UK button patterns with USWDS button variants - Update form field spacing to use USWDS utilities - Scope fieldset legend styles to specific form contexts - Update visual regression test references for new components
This commit is contained in:
@@ -50,10 +50,10 @@ describe("List entry", () => {
|
||||
result += `
|
||||
<div class="list-entry">
|
||||
<div class="usa-form-group">
|
||||
<label for="domains-${idx + 1}" class="usa-radio__label govuk-input--numbered__label">
|
||||
<label for="domains-${idx + 1}" class="usa-label">
|
||||
<span class="usa-sr-only">domain number </span>${idx + 1}.
|
||||
</label>
|
||||
<input type="text" name="domains-${idx + 1}" id="domains-${idx + 1}" class="govuk-input govuk-input--numbered " autocomplete="off">
|
||||
<input type="text" name="domains-${idx + 1}" id="domains-${idx + 1}" class="usa-input" autocomplete="off">
|
||||
</div>
|
||||
</div>`;
|
||||
}
|
||||
@@ -249,7 +249,7 @@ describe("List entry", () => {
|
||||
triggerEvent(inputList.querySelectorAll('.input-list__button--remove')[0], 'click');
|
||||
|
||||
const newNums = Array.from(
|
||||
inputList.querySelectorAll('.govuk-input--numbered__label')
|
||||
inputList.querySelectorAll('.usa-label')
|
||||
)
|
||||
.map((itemNum, idx) => {
|
||||
return parseInt(itemNum.lastChild.nodeValue, 10);
|
||||
|
||||
Reference in New Issue
Block a user