Skip to content

Commit

Permalink
Update secondary nav docs and yaml
Browse files Browse the repository at this point in the history
  • Loading branch information
shyusu4 committed Feb 10, 2025
1 parent 70ba3dd commit aff5856
Show file tree
Hide file tree
Showing 10 changed files with 93 additions and 52 deletions.
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
# Subnav child menu at mobile

- Grandchildren of the primary nav.
- Grandchildren of the secondary nav.
- Styles depend on parent elements, and may be hidden by default, so will not display correctly in the pattern library/
- To view the navigation in the pattern library go to `organisms/header.html`.
Original file line number Diff line number Diff line change
@@ -1,5 +1,19 @@
context:
pages:
- nav_text: One
- nav_text: Two
- nav_text: Three
child:
block_type: 'menu'
value:
section_heading: '1'
section_link:
url: '#'
section_link_text: 'See all in section 1'
child_links:
- block_type: 'link'
value:
text: '1A'
url: '#'
description: '1A description'
- block_type: 'link'
value:
text: '1B'
url: '#'
description: '1B description'
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
# Subnav children menu

- Grandchildren of the primary nav.
- Grandchildren of the secondary nav.
- Styles depend on parent elements, and may be hidden by default, so will not display correctly in the pattern library/
- To view the navigation in the pattern library go to `organisms/header.html`.
Original file line number Diff line number Diff line change
@@ -1,5 +1,19 @@
context:
pages:
- nav_text: One
- nav_text: Two
- nav_text: Three
child:
block_type: 'menu'
value:
section_heading: '1'
section_link:
url: '#'
section_link_text: 'See all in section 1'
child_links:
- block_type: 'link'
value:
text: '1A'
url: '#'
description: '1A description'
- block_type: 'link'
value:
text: '1B'
url: '#'
description: '1B description'
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
# Subnav menu at mobile

- Children of the primary nav.
- Children of the secondary nav.
- Styles depend on parent elements, and may be hidden by default, so will not display correctly in the pattern library/
- To view the navigation in the pattern library go to `organims/header.html`.
- To view the navigation in the pattern library go to `organisms/header.html`.
Original file line number Diff line number Diff line change
@@ -1,34 +1,37 @@
context:
links:
- title: One
get_children:
live:
public:
in_menu:
specific:
- nav_text: 1 A
- nav_text: 1 B
- nav_text: 1 C
- title: Two
get_children:
live:
public:
in_menu:
specific:
- nav_text: 2 A
- nav_text: 2 B
- nav_text: 2 C
- title: Three
get_children:
live:
public:
in_menu:
specific:
- nav_text: 3 A
- nav_text: 3 B
- nav_text: 3 C
- block_type: 'menu'
value:
section_heading: '1'
section_link:
url: '#'
section_link_text: 'See all in section 1'
child_links:
- block_type: 'link'
value:
text: '1A'
url: '#'
description: '1A description'
- block_type: 'link'
value:
text: '1B'
url: '#'
description: '1B description'

tags:
pageurl:
link:
raw: '#'
- block_type: 'menu'
value:
section_heading: '2'
section_link:
url: '#'
section_link_text: 'See all in section 2'
child_links:
- block_type: 'link'
value:
text: '2A'
url: '#'
description: '2A description'
- block_type: 'link'
value:
text: '2B'
url: '#'
description: '2B description'
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
# Subnav menu

- Children of the primary nav.
- Children of the secondary nav.
- Styles depend on parent elements, and may be hidden by default, so will not display correctly in the pattern library/
- To view the navigation in the pattern library go to `organisms/header.html`.
Original file line number Diff line number Diff line change
@@ -1,8 +1,11 @@
context:
pages:
links:
- block_type: 'menu'
value:
section_heading: '1'
section_link:
url: '#'
section_link_text: 'See all in section 1'
child_links:
- block_type: 'link'
value:
Expand All @@ -14,13 +17,13 @@ context:
text: '1B'
url: '#'
description: '1B description'
section_link:
url: '#'
section_link_text: 'See all in section 1'


- block_type: 'menu'
value:
section_heading: '2'
section_link:
url: '#'
section_link_text: 'See all in section 2'
child_links:
- block_type: 'link'
value:
Expand All @@ -32,6 +35,3 @@ context:
text: '2B'
url: '#'
description: '2B description'
section_link:
url: '#'
section_link_text: 'See all in section 2'
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
# Secondary navigation menu mobile

- The top level of the secondary navigation at mobile
- Styles depend on parent elements, and may be hidden by default, so will not display correctly in the pattern library/
- To view the navigation in the pattern library go to `organisms/header.html`.
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
# Secondary navigation menu

- The top level of the secondary navigation
- Styles depend on parent elements, and may be hidden by default, so will not display correctly in the pattern library/
- To view the navigation in the pattern library go to `organisms/header.html`.

0 comments on commit aff5856

Please sign in to comment.