From bd4e39c847d490dcf8c6312f2e01321f53c9ac11 Mon Sep 17 00:00:00 2001 From: Lauren Hitchon Date: Sun, 7 Aug 2022 14:44:46 +1000 Subject: [PATCH 1/8] main-nav planning json to recreate bug --- src/components/main-nav/blank.hbs | 2 +- .../main-nav/json/main-nav-planning.json | 410 ++++++++++++++++++ 2 files changed, 411 insertions(+), 1 deletion(-) create mode 100644 src/components/main-nav/json/main-nav-planning.json diff --git a/src/components/main-nav/blank.hbs b/src/components/main-nav/blank.hbs index 51be63b27..0a4607966 100644 --- a/src/components/main-nav/blank.hbs +++ b/src/components/main-nav/blank.hbs @@ -3,7 +3,7 @@ title: Main navigation page: true model: basic: json/main-nav.json - mega: json/main-nav-mega.json + mega: json/main-nav-planning.json --- {{>_masthead content="#" nav="#main-nav"}} diff --git a/src/components/main-nav/json/main-nav-planning.json b/src/components/main-nav/json/main-nav-planning.json new file mode 100644 index 000000000..50a1b963e --- /dev/null +++ b/src/components/main-nav/json/main-nav-planning.json @@ -0,0 +1,410 @@ +{ + "items": [ + { + "text": "Plans for your area", + "url": "/index.html#plans-for-your-area", + "id": "914d7e2", + "description": "Filium morte multavit si sine causa? quae fuerit causa, nollem.", + "sub-nav": [ + { + "text": "A Metropolis of Three Cities", + "url": "/index.html#level-2" + }, + { + "text": "A new approach to precincts", + "url": "/index.html#level-2" + }, + { + "text": "Greater Newcastle metropolitan planning", + "url": "/index.html#level-2" + }, + { + "text": "Infrastructure funding", + "url": "/index.html#level-2" + }, + { + "text": "Regional plans", + "url": "/index.html#level-2", + "id": "1138", + "sub-nav": [ + { + "text": "Illawarra Shoalhaven", + "url": "/index.html#level-3" + }, + { + "text": "Central Coast Region", + "url": "/index.html#level-3" + }, + { + "text": "Central West and Orana", + "url": "/index.html#level-3" + }, + { + "text": "Far West", + "url": "/index.html#level-3" + }, + { + "text": "Hunter", + "url": "/index.html#level-3" + }, + { + "text": "New England North West", + "url": "/index.html#level-3" + }, + { + "text": "North Coast", + "url": "/index.html#level-3" + }, + { + "text": "Riverina Murray", + "url": "/index.html#level-3" + }, + { + "text": "South East and Tablelands", + "url": "/index.html#level-3" + } + ] + }, + { + "text": "Precincts map", + "url": "/index.html#level-2", + "id": "1149", + "sub-nav": [ + { + "text": "Meadowbank Education and Employment precinct", + "url": "/index.html#level-3" + } + ] + }, + { + "text": "Planning for local communities", + "url": "/index.html#level-2", + "id": "1250", + "sub-nav": [ + { + "text": "Northern Beaches Aboriginal Land", + "url": "/index.html#level-3" + }, + { + "text": "Bayside West Precincts", + "url": "/index.html#level-3" + }, + { + "text": "Burwood, Strathfield and Homebush", + "url": "/index.html#level-3" + }, + { + "text": "Camellia-Rosehill", + "url": "/index.html#level-3" + }, + { + "text": "Carter Street", + "url": "/index.html#level-3" + }, + { + "text": "Cherrybrook Station precinct", + "url": "/index.html#level-3" + }, + { + "text": "Circular Quay Renewal", + "url": "/index.html#level-3" + }, + { + "text": "Frenchs Forest", + "url": "/index.html#level-3" + }, + { + "text": "Glenfield", + "url": "/index.html#level-3" + }, + { + "text": "Greater Macarthur Growth Area", + "url": "/index.html#level-3" + }, + { + "text": "Greater Parramatta Growth Area", + "url": "/index.html#level-3" + }, + { + "text": "Ingleside", + "url": "/index.html#level-3" + }, + { + "text": "Leppington", + "url": "/index.html#level-3" + }, + { + "text": "Lowes Creek Maryland", + "url": "/index.html#level-3" + }, + { + "text": "Macquarie Park", + "url": "/index.html#level-3" + }, + { + "text": "Marsden Park North", + "url": "/index.html#level-3" + }, + { + "text": "North West Growth Area", + "url": "/index.html#level-3" + }, + { + "text": "Parramatta Road", + "url": "/index.html#level-3" + }, + { + "text": "Penrith Lakes", + "url": "/index.html#level-3" + }, + { + "text": "Pyrmont Peninsula", + "url": "/index.html#level-3" + }, + { + "text": "Rhodes", + "url": "/index.html#level-3" + }, + { + "text": "Riverwood", + "url": "/index.html#level-3" + }, + { + "text": "Seven Hills", + "url": "/index.html#level-3" + }, + { + "text": "Schofields Town Centre", + "url": "/index.html#level-3" + }, + { + "text": "South Creek West", + "url": "/index.html#level-3" + }, + { + "text": "South Eveleigh Train Workshop", + "url": "/index.html#level-3" + }, + { + "text": "South West Growth Area", + "url": "/index.html#level-3" + }, + { + "text": "St Leonards and Crows Nest", + "url": "/index.html#level-3" + }, + { + "text": "Sydenham to Bankstown Urban Renewal Corridor", + "url": "/index.html#level-3" + }, + { + "text": "Sydney Metro Northwest Urban Renewal Corridor", + "url": "/index.html#level-3" + }, + { + "text": "Telopea", + "url": "/index.html#level-3" + }, + { + "text": "Vineyard", + "url": "/index.html#level-3" + }, + { + "text": "Waterloo south", + "url": "/index.html#level-3" + }, + { + "text": "West Schofields", + "url": "/index.html#level-3" + }, + { + "text": "Western Sydney Employment Area", + "url": "/index.html#level-3" + }, + { + "text": "Western Sydney Aerotropolis", + "url": "/index.html#level-3" + }, + { + "text": "Westmead", + "url": "/index.html#level-3" + }, + { + "text": "Wianamatta South Creek", + "url": "/index.html#level-3" + }, + { + "text": "Wilton", + "url": "/index.html#level-3" + } + ] + }, + { + "text": "Local Housing Strategies", + "url": "/index.html#level-2" + }, + { + "text": "Technical Assurance Panel", + "url": "/index.html#level-2" + }, + { + "text": "Local Planning and zoning", + "url": "/index.html#level-2", + "id": "1158", + "sub-nav": [ + { + "text": "Strategic Planning Toolkit", + "url": "/index.html#level-3" + } + ] + }, + { + "text": "Special Activation Precincts", + "url": "/index.html#level-2" + }, + { + "text": "State Significant Precincts", + "url": "/index.html#level-2", + "id": "1158", + "sub-nav": [ + { + "text": "Central Precinct", + "url": "/index.html#level-3" + }, + { + "text": "The Bays", + "url": "/index.html#level-3" + }, + { + "text": "Redfern North Eveleigh", + "url": "/index.html#level-3" + } + ] + }, + { + "text": "Urban Design for Regional NSW", + "url": "/index.html#level-2" + } + ] + }, + { + "text": "Updates", + "url": "/index.html#updates", + "id": "3250fbee", + "sub-nav": [ + { + "text": "Level 2", + "url": "/index.html#level-2" + }, + { + "text": "Level 2", + "url": "/index.html#level-2" + }, + { + "text": "Level 2", + "url": "/index.html#level-2" + }, + { + "text": "Level 2", + "url": "/index.html#level-2" + }, + { + "text": "Level 2", + "url": "/index.html#level-2" + } + ] + }, + { + "text": "Publications", + "url": "/index.html#publications", + "id": "bd48c03b", + "sub-nav": [ + { + "text": "Level 2", + "url": "/index.html#level-2" + }, + { + "text": "Level 2", + "url": "/index.html#level-2" + }, + { + "text": "Level 2", + "url": "/index.html#level-2" + }, + { + "text": "Level 2", + "url": "/index.html#level-2" + }, + { + "text": "Level 2", + "url": "/index.html#level-2" + }, + { + "text": "Level 2", + "url": "/index.html#level-2" + }, + { + "text": "Level 2", + "url": "/index.html#level-2" + }, + { + "text": "Level 2", + "url": "/index.html#level-2" + }, + { + "text": "Level 2", + "url": "/index.html#level-2" + } + ] + }, + { + "text": "Tools & Resources", + "url": "/index.html#tools-resources", + "id": "c457a536", + "sub-nav": [ + { + "text": "Level 2", + "url": "/index.html#level-2" + }, + { + "text": "Level 2", + "url": "/index.html#level-2" + }, + { + "text": "Level 2", + "url": "/index.html#level-2" + }, + { + "text": "Level 2", + "url": "/index.html#level-2" + }, + { + "text": "Level 2", + "url": "/index.html#level-2" + }, + { + "text": "Level 2", + "url": "/index.html#level-2" + }, + { + "text": "Level 2", + "url": "/index.html#level-2" + }, + { + "text": "Level 2", + "url": "/index.html#level-2" + }, + { + "text": "Level 2", + "url": "/index.html#level-2" + } + ] + }, + { + "text": "Contact us", + "url": "/index.html#contact-us", + "id": "017200ca" + } + ], + "mega-menu": true +} From 66cce29f5a4336cbd71b2e9e3270ab39c61357f9 Mon Sep 17 00:00:00 2001 From: Anna Yeshtukova <> Date: Wed, 10 Aug 2022 13:30:11 +1000 Subject: [PATCH 2/8] Main nav temporary fix --- src/components/main-nav/main-nav.js | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/components/main-nav/main-nav.js b/src/components/main-nav/main-nav.js index e481b8fac..8d5d132da 100644 --- a/src/components/main-nav/main-nav.js +++ b/src/components/main-nav/main-nav.js @@ -198,6 +198,7 @@ class Navigation { submenu.removeEventListener('keydown', this.mobileSubNavTrapTabKeyEvent, false) } submenu.classList.remove('active') + submenu.parentElement.parentElement.parentElement.style.overflowY = 'auto' this.openSubNavElements.pop() } @@ -213,6 +214,7 @@ class Navigation { submenu.addEventListener('keydown', this.mobileSubNavTrapTabKeyEvent, false) submenu.addEventListener(this.transitionEvent, this.showSubNavTransitionEndEvent, false) } + submenu.parentElement.parentElement.parentElement.style.overflowY = 'hidden' submenu.classList.add('active') } From bb6f71830d840f677f3c46d5695cd784d4221c06 Mon Sep 17 00:00:00 2001 From: Lauren Hitchon Date: Wed, 10 Aug 2022 18:02:57 +1000 Subject: [PATCH 3/8] Main nav overflow fix Added class toggle and scrollTop and .closest instead of chaining parentElement --- src/components/main-nav/_main-nav.scss | 16 ++++++++++++++++ src/components/main-nav/main-nav.js | 6 ++++-- 2 files changed, 20 insertions(+), 2 deletions(-) diff --git a/src/components/main-nav/_main-nav.scss b/src/components/main-nav/_main-nav.scss index 7fff872f4..764c95ae9 100644 --- a/src/components/main-nav/_main-nav.scss +++ b/src/components/main-nav/_main-nav.scss @@ -21,6 +21,14 @@ visibility: visible; } + &.no-scroll { + overflow-y: hidden; + + @include breakpoint($nsw-desktop-breakpoint) { + overflow-y: visible; + } + } + &.closing { transform: translateX(-100%); } @@ -200,6 +208,14 @@ visibility: visible; } + &.no-scroll { + overflow-y: hidden; + + @include breakpoint($nsw-desktop-breakpoint) { + overflow-y: visible; + } + } + @include breakpoint($nsw-desktop-breakpoint) { @include container; padding: rem(48) rem(40); diff --git a/src/components/main-nav/main-nav.js b/src/components/main-nav/main-nav.js index 8d5d132da..c728a0fc7 100644 --- a/src/components/main-nav/main-nav.js +++ b/src/components/main-nav/main-nav.js @@ -198,7 +198,7 @@ class Navigation { submenu.removeEventListener('keydown', this.mobileSubNavTrapTabKeyEvent, false) } submenu.classList.remove('active') - submenu.parentElement.parentElement.parentElement.style.overflowY = 'auto' + submenu.closest('.active').classList.remove('no-scroll') this.openSubNavElements.pop() } @@ -214,7 +214,9 @@ class Navigation { submenu.addEventListener('keydown', this.mobileSubNavTrapTabKeyEvent, false) submenu.addEventListener(this.transitionEvent, this.showSubNavTransitionEndEvent, false) } - submenu.parentElement.parentElement.parentElement.style.overflowY = 'hidden' + submenu.closest('.active').scrollTop = 0 + submenu.closest('.active').classList.add('no-scroll') + submenu.classList.add('active') } From 0984e31751b62a178718a93d911b633f52e7728e Mon Sep 17 00:00:00 2001 From: Lauren Hitchon Date: Wed, 10 Aug 2022 19:12:00 +1000 Subject: [PATCH 4/8] fix multiple ID error --- src/components/main-nav/json/main-nav-planning.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/components/main-nav/json/main-nav-planning.json b/src/components/main-nav/json/main-nav-planning.json index 50a1b963e..8b87bdd59 100644 --- a/src/components/main-nav/json/main-nav-planning.json +++ b/src/components/main-nav/json/main-nav-planning.json @@ -250,7 +250,7 @@ { "text": "Local Planning and zoning", "url": "/index.html#level-2", - "id": "1158", + "id": "1188", "sub-nav": [ { "text": "Strategic Planning Toolkit", From 7a84da1ff02a0ff5fd78da39b01dcdc8e124823b Mon Sep 17 00:00:00 2001 From: Lauren Hitchon Date: Wed, 10 Aug 2022 19:22:03 +1000 Subject: [PATCH 5/8] Update main-nav-planning.json --- src/components/main-nav/json/main-nav-planning.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/components/main-nav/json/main-nav-planning.json b/src/components/main-nav/json/main-nav-planning.json index 8b87bdd59..da5952e72 100644 --- a/src/components/main-nav/json/main-nav-planning.json +++ b/src/components/main-nav/json/main-nav-planning.json @@ -265,7 +265,7 @@ { "text": "State Significant Precincts", "url": "/index.html#level-2", - "id": "1158", + "id": "1178", "sub-nav": [ { "text": "Central Precinct", From 52f1c0f294cc7dcbdd1a6d8d885cd0164f4b2e48 Mon Sep 17 00:00:00 2001 From: Lauren Hitchon Date: Thu, 11 Aug 2022 13:27:22 +1000 Subject: [PATCH 6/8] fix .closest .active throwing error on desktop --- src/components/main-nav/main-nav.js | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/src/components/main-nav/main-nav.js b/src/components/main-nav/main-nav.js index c728a0fc7..ef6a712c5 100644 --- a/src/components/main-nav/main-nav.js +++ b/src/components/main-nav/main-nav.js @@ -198,7 +198,7 @@ class Navigation { submenu.removeEventListener('keydown', this.mobileSubNavTrapTabKeyEvent, false) } submenu.classList.remove('active') - submenu.closest('.active').classList.remove('no-scroll') + submenu.closest('ul').parentElement.classList.remove('no-scroll') this.openSubNavElements.pop() } @@ -214,9 +214,8 @@ class Navigation { submenu.addEventListener('keydown', this.mobileSubNavTrapTabKeyEvent, false) submenu.addEventListener(this.transitionEvent, this.showSubNavTransitionEndEvent, false) } - submenu.closest('.active').scrollTop = 0 - submenu.closest('.active').classList.add('no-scroll') - + submenu.closest('ul').parentElement.scrollTop = 0 + submenu.closest('ul').parentElement.classList.add('no-scroll') submenu.classList.add('active') } From 67356a8d0cdcb61c90427c44764d71fa0f53e562 Mon Sep 17 00:00:00 2001 From: Lauren Hitchon Date: Thu, 11 Aug 2022 15:07:30 +1000 Subject: [PATCH 7/8] Clean up test case --- src/components/main-nav/blank.hbs | 2 +- .../main-nav/json/main-nav-planning.json | 410 ------------------ 2 files changed, 1 insertion(+), 411 deletions(-) delete mode 100644 src/components/main-nav/json/main-nav-planning.json diff --git a/src/components/main-nav/blank.hbs b/src/components/main-nav/blank.hbs index 0a4607966..51be63b27 100644 --- a/src/components/main-nav/blank.hbs +++ b/src/components/main-nav/blank.hbs @@ -3,7 +3,7 @@ title: Main navigation page: true model: basic: json/main-nav.json - mega: json/main-nav-planning.json + mega: json/main-nav-mega.json --- {{>_masthead content="#" nav="#main-nav"}} diff --git a/src/components/main-nav/json/main-nav-planning.json b/src/components/main-nav/json/main-nav-planning.json deleted file mode 100644 index da5952e72..000000000 --- a/src/components/main-nav/json/main-nav-planning.json +++ /dev/null @@ -1,410 +0,0 @@ -{ - "items": [ - { - "text": "Plans for your area", - "url": "/index.html#plans-for-your-area", - "id": "914d7e2", - "description": "Filium morte multavit si sine causa? quae fuerit causa, nollem.", - "sub-nav": [ - { - "text": "A Metropolis of Three Cities", - "url": "/index.html#level-2" - }, - { - "text": "A new approach to precincts", - "url": "/index.html#level-2" - }, - { - "text": "Greater Newcastle metropolitan planning", - "url": "/index.html#level-2" - }, - { - "text": "Infrastructure funding", - "url": "/index.html#level-2" - }, - { - "text": "Regional plans", - "url": "/index.html#level-2", - "id": "1138", - "sub-nav": [ - { - "text": "Illawarra Shoalhaven", - "url": "/index.html#level-3" - }, - { - "text": "Central Coast Region", - "url": "/index.html#level-3" - }, - { - "text": "Central West and Orana", - "url": "/index.html#level-3" - }, - { - "text": "Far West", - "url": "/index.html#level-3" - }, - { - "text": "Hunter", - "url": "/index.html#level-3" - }, - { - "text": "New England North West", - "url": "/index.html#level-3" - }, - { - "text": "North Coast", - "url": "/index.html#level-3" - }, - { - "text": "Riverina Murray", - "url": "/index.html#level-3" - }, - { - "text": "South East and Tablelands", - "url": "/index.html#level-3" - } - ] - }, - { - "text": "Precincts map", - "url": "/index.html#level-2", - "id": "1149", - "sub-nav": [ - { - "text": "Meadowbank Education and Employment precinct", - "url": "/index.html#level-3" - } - ] - }, - { - "text": "Planning for local communities", - "url": "/index.html#level-2", - "id": "1250", - "sub-nav": [ - { - "text": "Northern Beaches Aboriginal Land", - "url": "/index.html#level-3" - }, - { - "text": "Bayside West Precincts", - "url": "/index.html#level-3" - }, - { - "text": "Burwood, Strathfield and Homebush", - "url": "/index.html#level-3" - }, - { - "text": "Camellia-Rosehill", - "url": "/index.html#level-3" - }, - { - "text": "Carter Street", - "url": "/index.html#level-3" - }, - { - "text": "Cherrybrook Station precinct", - "url": "/index.html#level-3" - }, - { - "text": "Circular Quay Renewal", - "url": "/index.html#level-3" - }, - { - "text": "Frenchs Forest", - "url": "/index.html#level-3" - }, - { - "text": "Glenfield", - "url": "/index.html#level-3" - }, - { - "text": "Greater Macarthur Growth Area", - "url": "/index.html#level-3" - }, - { - "text": "Greater Parramatta Growth Area", - "url": "/index.html#level-3" - }, - { - "text": "Ingleside", - "url": "/index.html#level-3" - }, - { - "text": "Leppington", - "url": "/index.html#level-3" - }, - { - "text": "Lowes Creek Maryland", - "url": "/index.html#level-3" - }, - { - "text": "Macquarie Park", - "url": "/index.html#level-3" - }, - { - "text": "Marsden Park North", - "url": "/index.html#level-3" - }, - { - "text": "North West Growth Area", - "url": "/index.html#level-3" - }, - { - "text": "Parramatta Road", - "url": "/index.html#level-3" - }, - { - "text": "Penrith Lakes", - "url": "/index.html#level-3" - }, - { - "text": "Pyrmont Peninsula", - "url": "/index.html#level-3" - }, - { - "text": "Rhodes", - "url": "/index.html#level-3" - }, - { - "text": "Riverwood", - "url": "/index.html#level-3" - }, - { - "text": "Seven Hills", - "url": "/index.html#level-3" - }, - { - "text": "Schofields Town Centre", - "url": "/index.html#level-3" - }, - { - "text": "South Creek West", - "url": "/index.html#level-3" - }, - { - "text": "South Eveleigh Train Workshop", - "url": "/index.html#level-3" - }, - { - "text": "South West Growth Area", - "url": "/index.html#level-3" - }, - { - "text": "St Leonards and Crows Nest", - "url": "/index.html#level-3" - }, - { - "text": "Sydenham to Bankstown Urban Renewal Corridor", - "url": "/index.html#level-3" - }, - { - "text": "Sydney Metro Northwest Urban Renewal Corridor", - "url": "/index.html#level-3" - }, - { - "text": "Telopea", - "url": "/index.html#level-3" - }, - { - "text": "Vineyard", - "url": "/index.html#level-3" - }, - { - "text": "Waterloo south", - "url": "/index.html#level-3" - }, - { - "text": "West Schofields", - "url": "/index.html#level-3" - }, - { - "text": "Western Sydney Employment Area", - "url": "/index.html#level-3" - }, - { - "text": "Western Sydney Aerotropolis", - "url": "/index.html#level-3" - }, - { - "text": "Westmead", - "url": "/index.html#level-3" - }, - { - "text": "Wianamatta South Creek", - "url": "/index.html#level-3" - }, - { - "text": "Wilton", - "url": "/index.html#level-3" - } - ] - }, - { - "text": "Local Housing Strategies", - "url": "/index.html#level-2" - }, - { - "text": "Technical Assurance Panel", - "url": "/index.html#level-2" - }, - { - "text": "Local Planning and zoning", - "url": "/index.html#level-2", - "id": "1188", - "sub-nav": [ - { - "text": "Strategic Planning Toolkit", - "url": "/index.html#level-3" - } - ] - }, - { - "text": "Special Activation Precincts", - "url": "/index.html#level-2" - }, - { - "text": "State Significant Precincts", - "url": "/index.html#level-2", - "id": "1178", - "sub-nav": [ - { - "text": "Central Precinct", - "url": "/index.html#level-3" - }, - { - "text": "The Bays", - "url": "/index.html#level-3" - }, - { - "text": "Redfern North Eveleigh", - "url": "/index.html#level-3" - } - ] - }, - { - "text": "Urban Design for Regional NSW", - "url": "/index.html#level-2" - } - ] - }, - { - "text": "Updates", - "url": "/index.html#updates", - "id": "3250fbee", - "sub-nav": [ - { - "text": "Level 2", - "url": "/index.html#level-2" - }, - { - "text": "Level 2", - "url": "/index.html#level-2" - }, - { - "text": "Level 2", - "url": "/index.html#level-2" - }, - { - "text": "Level 2", - "url": "/index.html#level-2" - }, - { - "text": "Level 2", - "url": "/index.html#level-2" - } - ] - }, - { - "text": "Publications", - "url": "/index.html#publications", - "id": "bd48c03b", - "sub-nav": [ - { - "text": "Level 2", - "url": "/index.html#level-2" - }, - { - "text": "Level 2", - "url": "/index.html#level-2" - }, - { - "text": "Level 2", - "url": "/index.html#level-2" - }, - { - "text": "Level 2", - "url": "/index.html#level-2" - }, - { - "text": "Level 2", - "url": "/index.html#level-2" - }, - { - "text": "Level 2", - "url": "/index.html#level-2" - }, - { - "text": "Level 2", - "url": "/index.html#level-2" - }, - { - "text": "Level 2", - "url": "/index.html#level-2" - }, - { - "text": "Level 2", - "url": "/index.html#level-2" - } - ] - }, - { - "text": "Tools & Resources", - "url": "/index.html#tools-resources", - "id": "c457a536", - "sub-nav": [ - { - "text": "Level 2", - "url": "/index.html#level-2" - }, - { - "text": "Level 2", - "url": "/index.html#level-2" - }, - { - "text": "Level 2", - "url": "/index.html#level-2" - }, - { - "text": "Level 2", - "url": "/index.html#level-2" - }, - { - "text": "Level 2", - "url": "/index.html#level-2" - }, - { - "text": "Level 2", - "url": "/index.html#level-2" - }, - { - "text": "Level 2", - "url": "/index.html#level-2" - }, - { - "text": "Level 2", - "url": "/index.html#level-2" - }, - { - "text": "Level 2", - "url": "/index.html#level-2" - } - ] - }, - { - "text": "Contact us", - "url": "/index.html#contact-us", - "id": "017200ca" - } - ], - "mega-menu": true -} From c559230b78486346e5a5df62faedb52131c0ce66 Mon Sep 17 00:00:00 2001 From: Anna Yeshtukova <> Date: Fri, 12 Aug 2022 10:10:35 +1000 Subject: [PATCH 8/8] Main nav example update --- .../main-nav/json/main-nav-mega.json | 32 +++++++++++++++++++ 1 file changed, 32 insertions(+) diff --git a/src/components/main-nav/json/main-nav-mega.json b/src/components/main-nav/json/main-nav-mega.json index 30803f18f..1088d7598 100644 --- a/src/components/main-nav/json/main-nav-mega.json +++ b/src/components/main-nav/json/main-nav-mega.json @@ -53,6 +53,38 @@ "text": "Level 2", "url": "/index.html#level-2" }, + { + "text": "Level 2", + "url": "/index.html#level-2" + }, + { + "text": "Level 2", + "url": "/index.html#level-2" + }, + { + "text": "Level 2", + "url": "/index.html#level-2" + }, + { + "text": "Level 2", + "url": "/index.html#level-2" + }, + { + "text": "Level 2", + "url": "/index.html#level-2" + }, + { + "text": "Level 2", + "url": "/index.html#level-2" + }, + { + "text": "Level 2", + "url": "/index.html#level-2" + }, + { + "text": "Level 2", + "url": "/index.html#level-2" + }, { "text": "Level 2", "url": "/index.html#level-2"