diff --git a/src/components/header/_macro.njk b/src/components/header/_macro.njk index f3fbc1cb56..815a7091d1 100644 --- a/src/components/header/_macro.njk +++ b/src/components/header/_macro.njk @@ -102,9 +102,9 @@ href="{{ item.url }}" class="ons-header-service-nav__link" {% if item.id %} id="{{ item.id }}"{% endif %} - >{{ item.title }} + >{% if item.title %}{{ item.title }}{% elif item.text %}{{ item.text }}{% endif %} {% else %} - {{ item.title }} + {% if item.title %}{{ item.title }}{% elif item.text %}{{ item.text }}{% endif %} {% endif %} {% endfor %} @@ -153,9 +153,9 @@ href="{{ item.url }}" class="ons-header-service-nav__link" {% if item.id %} id="{{ item.id }}"{% endif %} - >{{ item.text }} + >{% if item.title %}{{ item.title }}{% elif item.text %}{{ item.text }}{% endif %} {% else %} - {{ item.text }} + {% if item.title %}{{ item.title }}{% elif item.text %}{{ item.text }}{% endif %} {% endif %} {% endfor %} diff --git a/src/components/header/example-header-external-with-service-links.njk b/src/components/header/example-header-external-with-service-links.njk index 9fc8a468ff..67a787be99 100644 --- a/src/components/header/example-header-external-with-service-links.njk +++ b/src/components/header/example-header-external-with-service-links.njk @@ -18,15 +18,15 @@ }, "itemsList": [ { - "title": "Help", + "text": "Help", "url": "#0" }, { - "title": "My Account", + "text": "My Account", "url": "#0" }, { - "title": "Sign out", + "text": "Sign out", "url": "#0" } ] diff --git a/src/components/header/example-header-external-with-sub-navigation.njk b/src/components/header/example-header-external-with-sub-navigation.njk index f5eed1b4f4..464ddaea50 100644 --- a/src/components/header/example-header-external-with-sub-navigation.njk +++ b/src/components/header/example-header-external-with-sub-navigation.njk @@ -15,23 +15,23 @@ "currentPageTitle": 'Design system', "itemsList": [ { - "title": 'Service standard', + "text": 'Service standard', "url": '#0' }, { - "title": 'Design system', + "text": 'Design system', "url": '#design-system' }, { - "title": 'Accessibility', + "text": 'Accessibility', "url": '#0' }, { - "title": 'Brand guidelines', + "text": 'Brand guidelines', "url": '#0' }, { - "title": 'Content style guide', + "text": 'Content style guide', "url": '#0' } ], @@ -46,19 +46,19 @@ "ariaLabel": 'Section menu', "itemsList": [ { - "title": 'Guidance', + "text": 'Guidance', "url": '#0' }, { - "title": 'Foundations', + "text": 'Foundations', "url": '#0' }, { - "title": 'Components', + "text": 'Components', "url": '#0' }, { - "title": 'Patterns', + "text": 'Patterns', "url": '#patterns', "sections": [ { diff --git a/src/components/header/example-header-internal.njk b/src/components/header/example-header-internal.njk index 0c6b0a6450..e3794dbffe 100644 --- a/src/components/header/example-header-internal.njk +++ b/src/components/header/example-header-internal.njk @@ -19,11 +19,11 @@ }, "itemsList": [ { - "title": "Jacky Turner", + "text": "Jacky Turner", "iconType": 'person' }, { - "title": "Sign out", + "text": "Sign out", "url": "#0" } ] diff --git a/src/components/header/example-header-neutral-for-multicoloured-logo.njk b/src/components/header/example-header-neutral-for-multicoloured-logo.njk index 9ea6216aa4..ea3d7b6bde 100644 --- a/src/components/header/example-header-neutral-for-multicoloured-logo.njk +++ b/src/components/header/example-header-neutral-for-multicoloured-logo.njk @@ -18,15 +18,15 @@ }, "itemsList": [ { - "title": "Help", + "text": "Help", "url": "#0" }, { - "title": "My Account", + "text": "My Account", "url": "#0" }, { - "title": "Sign out", + "text": "Sign out", "url": "#0" } ] @@ -38,15 +38,15 @@ "currentPageTitle": 'Design system', "itemsList": [ { - "title": 'Menu item 1', + "text": 'Menu item 1', "url": '#0' }, { - "title": 'Menu item 2', + "text": 'Menu item 2', "url": '#menu-item-2' }, { - "title": 'Menu item 3', + "text": 'Menu item 3', "url": '#0' } ], diff --git a/src/components/navigation/_macro.njk b/src/components/navigation/_macro.njk index 821a3ea7eb..6435c8da2c 100644 --- a/src/components/navigation/_macro.njk +++ b/src/components/navigation/_macro.njk @@ -42,7 +42,7 @@
@@ -55,7 +55,7 @@ @@ -81,14 +81,14 @@ {% for item in params.navigation.subNavigation.itemsList %}