diff --git a/app/assets/sass/application.scss b/app/assets/sass/application.scss index 0a480798a..90cacccb9 100755 --- a/app/assets/sass/application.scss +++ b/app/assets/sass/application.scss @@ -58,7 +58,6 @@ $govuk-assets-path: "/dist/govuk/assets/"; @import "overrides/govuk-tag"; @import "overrides/moj-button-menu"; @import "overrides/moj-filter"; -@import "overrides/moj-primary-navigation"; @import "overrides/status-grid"; @import "overrides/tabs"; diff --git a/app/assets/sass/overrides/_moj-primary-navigation.scss b/app/assets/sass/overrides/_moj-primary-navigation.scss deleted file mode 100644 index b5f045007..000000000 --- a/app/assets/sass/overrides/_moj-primary-navigation.scss +++ /dev/null @@ -1,23 +0,0 @@ -//// -/// @group helpers/moj-primary-navigation -//// - -.moj-primary-navigation.app-primary-navigation--support-ui { - background: govuk-tint(govuk-colour("purple"), 90); - - & *:link, *:visited { - color: govuk-colour("purple"); - } - - & *:hover { - color: govuk-tint(govuk-colour("purple"), 15); - } - - .moj-primary-navigation__link[aria-current]:before { - background-color: govuk-colour("purple"); - } - - .moj-primary-navigation { - background: govuk-tint(govuk-colour("purple"), 90); - } -} diff --git a/app/views/funding/index.njk b/app/views/funding/index.njk index dbbb1090a..a4f36e096 100644 --- a/app/views/funding/index.njk +++ b/app/views/funding/index.njk @@ -1,5 +1,5 @@ {% extends "_templates/_page.njk" %} -{% set navActive = "Funding" %} +{% set navActive = "funding" %} {% set pageHeading = "Select an academic year to view its funding" %} {% set backLink = "/" %} diff --git a/app/views/funding/payment-schedule.njk b/app/views/funding/payment-schedule.njk index efb7ccc9b..35cba4050 100644 --- a/app/views/funding/payment-schedule.njk +++ b/app/views/funding/payment-schedule.njk @@ -1,5 +1,5 @@ {% extends "_templates/_page.njk" %} -{% set navActive = "Funding" %} +{% set navActive = "funding" %} {% set pageHeading = navActive %} {% set tabName = "Payment schedule " + fundingYear %} diff --git a/app/views/funding/trainee-summary.njk b/app/views/funding/trainee-summary.njk index 930988f99..04148bc15 100644 --- a/app/views/funding/trainee-summary.njk +++ b/app/views/funding/trainee-summary.njk @@ -1,5 +1,5 @@ {% extends "_templates/_page.njk" %} -{% set navActive = "Funding" %} +{% set navActive = "funding" %} {% set pageHeading = navActive %} {% set tabName = "Trainee summary " + fundingYear %} diff --git a/app/views/layout.njk b/app/views/layout.njk index 6f12a82eb..5f0214677 100755 --- a/app/views/layout.njk +++ b/app/views/layout.njk @@ -23,6 +23,7 @@ {% from "govuk/components/phase-banner/macro.njk" import govukPhaseBanner %} {% from "govuk/components/radios/macro.njk" import govukRadios %} {% from "govuk/components/select/macro.njk" import govukSelect %} +{% from "govuk/components/service-navigation/macro.njk" import govukServiceNavigation %} {% from "govuk/components/skip-link/macro.njk" import govukSkipLink %} {% from "govuk/components/summary-list/macro.njk" import govukSummaryList %} {% from "govuk/components/table/macro.njk" import govukTable %} @@ -52,7 +53,6 @@ {# moj components #} {%- from "moj/components/filter/macro.njk" import mojFilter -%} {%- from "moj/components/button-menu/macro.njk" import mojButtonMenu -%} -{%- from "moj/components/primary-navigation/macro.njk" import mojPrimaryNavigation -%} {% block head %} {% include "_includes/head.njk" %} @@ -83,13 +83,9 @@ containerClasses: "govuk-width-container", navigation: [ { - href: "#1", + href: "#", text: "Your account" - } if false, - { - href: "/select-organisation", - text: "Change organisation" - } if shouldShowOrganisationSwitchLink and false, + }, { href: "/start-page", text: "Sign out" @@ -101,27 +97,6 @@ {% include "_includes/organisation-switcher.njk" %} {% endif %} - {% set rightHandSideNavHtml %} - - {% if not data.isAdmin and not data.isImpersonating | falsify and not isSupportUi %} - {% set providerName = data.settings.userActiveProvider %} - - - {% endif %} - - {% endset %} - {% set navItemsUser = [ { text: 'Home', @@ -166,8 +141,13 @@ { text: 'Funding', href: '/funding/' + data.years.currentAcademicYearSimple + '/payment-schedule', - active: true if navActive == 'Funding' - } if data.settings.showFundingInPrimaryNav + active: true if navActive == 'funding' + } if data.settings.showFundingInPrimaryNav, + { + text: 'Organisation details', + href: '/organisations/' + activeProvider.id, + active: true if navActive == 'provider' + } if not data.isAdmin and not data.isImpersonating | falsify and not isSupportUi ] | removeEmpty %} {% set navItemsSupport = [ @@ -232,17 +212,13 @@ {% if not hidePrimaryNav %} - {{ mojPrimaryNavigation({ - label: 'Primary navigation', - items: navItems, - containerClasses: "app-primary-navigation--support-ui" if isSupportUi, - searchHtml: rightHandSideNavHtml + {{ govukServiceNavigation({ + ariaLabel: "Primary navigation", + navigation: navItems }) }} {% endif %} - - {% endblock %} {% block beforeContent %} @@ -252,7 +228,7 @@ "role": "status" }, tag: { - text: "prototype" + text: "Prototype" }, classes: 'govuk-!-margin-top-1', html: 'This is a prototype of a new service – your feedback will help us improve it' @@ -285,9 +261,7 @@