From 4b6d6ae710685dae625f85aa546bc26b0bd9e286 Mon Sep 17 00:00:00 2001 From: Fred Marecesche Date: Thu, 19 Dec 2024 15:36:02 +0000 Subject: [PATCH] Swap bolded columns on availability summary list --- assets/sass/components/_summary-list.scss | 9 +++++++++ integration_tests/tests/match/match.cy.ts | 6 +++--- .../match/placementRequests/occupancyView/viewDay.njk | 1 + 3 files changed, 13 insertions(+), 3 deletions(-) diff --git a/assets/sass/components/_summary-list.scss b/assets/sass/components/_summary-list.scss index b3eb77480..547f6a610 100644 --- a/assets/sass/components/_summary-list.scss +++ b/assets/sass/components/_summary-list.scss @@ -25,3 +25,12 @@ color: govuk-colour("dark-grey"); } +.govuk-summary-list--swap-bolding { + .govuk-summary-list__key { + font-weight: normal; + } + + .govuk-summary-list__value { + font-weight: 700; + } +} diff --git a/integration_tests/tests/match/match.cy.ts b/integration_tests/tests/match/match.cy.ts index f618b7300..5012bc981 100644 --- a/integration_tests/tests/match/match.cy.ts +++ b/integration_tests/tests/match/match.cy.ts @@ -239,12 +239,12 @@ context('Placement Requests', () => { // And I should see an occupancy calendar occupancyViewPage.shouldShowOccupancyCalendar(premiseCapacity) - // Then I should see the calendar again - occupancyViewPage.shouldShowOccupancyCalendar(premiseCapacity) - // And I should be able to see the day's availability details shouldShowDayDetailsAndReturn(occupancyViewPage, addDays(startDate, 10), premises, premiseCapacity) + // Then I should see the calendar again + occupancyViewPage.shouldShowOccupancyCalendar(premiseCapacity) + // When I filter with an invalid date occupancyViewPage.filterAvailability('2025-02-35') diff --git a/server/views/match/placementRequests/occupancyView/viewDay.njk b/server/views/match/placementRequests/occupancyView/viewDay.njk index 8a125b21c..021eaa9d8 100644 --- a/server/views/match/placementRequests/occupancyView/viewDay.njk +++ b/server/views/match/placementRequests/occupancyView/viewDay.njk @@ -31,6 +31,7 @@ {% endif %} {{ govukSummaryList({ + classes: 'govuk-summary-list--swap-bolding', rows: availabilitySummaryListItems }) }}