Skip to content

Commit

Permalink
Merge pull request #168 from DFE-Digital/xxx-use-service-navigation-c…
Browse files Browse the repository at this point in the history
…omponent

Use GOV.UK Design System's service navigation component
  • Loading branch information
simonwhatley authored Dec 19, 2024
2 parents d4f69e5 + 300a48e commit 2242062
Show file tree
Hide file tree
Showing 5 changed files with 7 additions and 19 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@
padding-left: govuk-spacing(3);
text-decoration: none;
position: relative;
font-weight: bold;
// font-weight: bold;

@include govuk-media-query($from: tablet) {
padding-left: 0;
Expand Down
5 changes: 2 additions & 3 deletions app/views/layouts/main.njk
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,6 @@

{% from "_components/footer/macro.njk" import appFooter %}
{% from "_components/organisation-actions/macro.njk" import appOrganisationActions %}
{% from "_components/primary-navigation/macro.njk" import appPrimaryNavigation %}

{% block pageTitle %}
{{ title + " - " if title }}{{ caption + " - " if caption }}{{ serviceName }} - GOV.UK
Expand Down Expand Up @@ -60,8 +59,8 @@
{% endif %}

{% if not hidePrimaryNavigation %}
{{ appPrimaryNavigation({
items: [
{{ govukServiceNavigation({
navigation: [
{
href: baseUrl + "/claims",
text: "Claims",
Expand Down
5 changes: 2 additions & 3 deletions app/views/layouts/support.njk
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,6 @@
{% from "_components/checkbox-filter/macro.njk" import appCheckboxFilter %}
{% from "_components/footer/macro.njk" import appFooter %}
{% from "_components/organisation-actions/macro.njk" import appOrganisationActions %}
{% from "_components/primary-navigation/macro.njk" import appPrimaryNavigation %}
{% from "_components/search/macro.njk" import appSearch %}
{% from "_components/secondary-navigation/macro.njk" import appSecondaryNavigation %}
{% from "_components/timeline/macro.njk" import appTimeline %}
Expand Down Expand Up @@ -44,8 +43,8 @@
}) }}

{% if not hidePrimaryNavigation %}
{{ appPrimaryNavigation({
items: [
{{ govukServiceNavigation({
navigation: [
{
href: "/support/organisations",
text: "Organisations",
Expand Down
2 changes: 1 addition & 1 deletion app/views/support/claims/_secondary-navigation.njk
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
{{ appSecondaryNavigation({
label: "Sub navigation",
label: "Claims navigation",
items: [
{
href: "/support/claims",
Expand Down
12 changes: 1 addition & 11 deletions app/views/support/organisations/_secondary-navigation.njk
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
{{ appSecondaryNavigation({
label: "Sub navigation",
label: "Organisation navigation",
items: [
{
href: baseUrl,
Expand All @@ -16,16 +16,6 @@
text: "Mentors",
active: secondaryNavId == "mentors"
} if organisation.type == "school",
{
href: "#",
text: "Providers",
active: secondaryNavId == "providers"
} if organisation.type == "school" and 1==0,
{
href: "#",
text: "Schools",
active: secondaryNavId == "schools"
} if organisation.type != "school" and 1==0,
{
href: baseUrl + "/claims",
text: "Claims",
Expand Down

0 comments on commit 2242062

Please sign in to comment.