-
Notifications
You must be signed in to change notification settings - Fork 21
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'main' into fix/2871/spinning-up-the-ds-locally-on-port-…
…3000-hangs
- Loading branch information
Showing
16 changed files
with
162 additions
and
148 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -82,7 +82,7 @@ | |
"text": "Areas (0)" | ||
}, | ||
"value": "areas" | ||
} | ||
} | ||
] | ||
}) | ||
}} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -80,7 +80,7 @@ | |
"text": "Areas (0)" | ||
}, | ||
"value": "areas" | ||
} | ||
} | ||
] | ||
}) | ||
}} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,36 +1,34 @@ | ||
{% macro onsRelatedContent(params) %} | ||
|
||
{% if params.classes %} | ||
{% set classes = ' ' + params.classes %} | ||
{% endif %} | ||
{% if params.classes %} | ||
{% set classes = ' ' + params.classes %} | ||
{% endif %} | ||
|
||
<aside class="ons-related-content{{ classes }}" aria-label="{{ params.ariaLabel | default("Related content") }}"> | ||
{% if params.rows %} | ||
{% for row in params.rows %} | ||
{% from "components/related-content/_section-macro.njk" import onsRelatedContentSection %} | ||
{% call onsRelatedContentSection( | ||
{ | ||
"title": row.title, | ||
"id": row.id | ||
} | ||
) %} | ||
<nav class="ons-related-content__navigation" aria-labelledby="{{ row.id }}"> | ||
<aside class="ons-related-content{{ classes }}" aria-label="{{ params.ariaLabel | default("Related content") }}"> | ||
{% if params.rows %} | ||
{% from "components/related-content/_section-macro.njk" import onsRelatedContentSection %} | ||
{% from "components/list/_macro.njk" import onsList %} | ||
{{ | ||
onsList({ | ||
"variants": 'bare', | ||
"iconType": row.iconType, | ||
"iconPosition": row.iconPosition, | ||
"iconSize": row.iconSize, | ||
"itemsList": row.itemsList | ||
}) | ||
}} | ||
</nav> | ||
{% endcall %} | ||
{% endfor %} | ||
{% else %} | ||
{{ caller() if caller }} | ||
{% endif %} | ||
</aside> | ||
{% for row in params.rows %} | ||
{% call onsRelatedContentSection({ | ||
"title": row.title, | ||
"id": row.id | ||
}) %} | ||
<nav class="ons-related-content__navigation" aria-labelledby="{{ row.id }}"> | ||
{{ | ||
onsList({ | ||
"variants": 'bare', | ||
"iconType": row.iconType, | ||
"iconPosition": row.iconPosition, | ||
"iconSize": row.iconSize, | ||
"itemsList": row.itemsList | ||
}) | ||
}} | ||
</nav> | ||
{% endcall %} | ||
{% endfor %} | ||
{% else %} | ||
{{ caller() if caller }} | ||
{% endif %} | ||
</aside> | ||
|
||
{% endmacro %} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,59 +1,60 @@ | ||
{% macro onsSectionNavigation(params) %} | ||
<nav class="ons-section-nav{% if params.variants == 'vertical' %} ons-section-nav--vertical{% endif %} {% if params.classes %} {{ params.classes }} {% endif %}"{% if params.id %} id="{{ params.id }}"{% endif %} aria-labelledby="{{ params.hiddenTitleId | default("section-menu-nav-title")}}"> | ||
<h2 class="ons-u-vh" id="{{ params.hiddenTitleId | default("section-menu-nav-title") }}">{{ params.hiddenTitle | default("Pages in this section") }}</h2> | ||
{% if params.sections %} | ||
{% for section in params.sections %} | ||
<div class="ons-section-nav__sub"> | ||
{% if section.title %} | ||
<h3 class="ons-u-fs-r--b ons-u-mb-s">{{ section.title }}</h3>{% endif %} | ||
<ul class="ons-section-nav__list"> | ||
{% for item in section.itemsList %} | ||
{% if (params.currentPath and item.url == params.currentPath) or (params.tabQuery and params.tabQuery == item.title|lower) %} | ||
{% set isCurrent = true %} | ||
{% else %} | ||
{% set isCurrent = false %} | ||
{% endif %} | ||
<li class="ons-section-nav__item{% if item.classes %} ' ' + {{ item.classes }}{% endif %}{% if isCurrent == true %} ons-section-nav__item--active{% endif %}"> | ||
<a class="ons-section-nav__link" href="{{ item.url }}"{% if isCurrent == true %} aria-current="location"{% endif %}>{{ item.title }}</a> | ||
{% if item.anchors and isCurrent == true %} | ||
<ul class="ons-section-nav__sub-items ons-list ons-list--dashed ons-u-mt-xs ons-u-mb-xs"> | ||
{% for anchor in item.anchors %} | ||
<li class="ons-section-nav__item ons-list__item"> | ||
<a href="{{ anchor.url }}" class="ons-section-nav__link ons-list__link">{{ anchor.title }}</a> | ||
</li> | ||
{% endfor %} | ||
</ul> | ||
{% endif %} | ||
</li> | ||
{% endfor %} | ||
</ul> | ||
</div> | ||
{% endfor %} | ||
{% else %} | ||
{% if params.title %} | ||
<h3 class="ons-u-fs-r--b ons-u-mb-s">{{ params.title }}</h3> | ||
{% endif %} | ||
<nav class="ons-section-nav{% if params.variants == 'vertical' %} ons-section-nav--vertical{% endif %} {% if params.classes %} {{ params.classes }} {% endif %}"{% if params.id %} id="{{ params.id }}"{% endif %} aria-labelledby="{{ params.hiddenTitleId | default("section-menu-nav-title")}}"> | ||
<h2 class="ons-u-vh" id="{{ params.hiddenTitleId | default("section-menu-nav-title") }}">{{ params.hiddenTitle | default("Pages in this section") }}</h2> | ||
{% if params.sections %} | ||
{% for section in params.sections %} | ||
<div class="ons-section-nav__sub"> | ||
{% if section.title %} | ||
<h3 class="ons-u-fs-r--b ons-u-mb-s">{{ section.title }}</h3> | ||
{% endif %} | ||
<ul class="ons-section-nav__list"> | ||
{% for item in section.itemsList %} | ||
{% if (params.currentPath and item.url == params.currentPath) or (params.tabQuery and params.tabQuery == item.title|lower) %} | ||
{% set isCurrent = true %} | ||
{% else %} | ||
{% set isCurrent = false %} | ||
{% endif %} | ||
<li class="ons-section-nav__item{% if item.classes %} ' ' + {{ item.classes }}{% endif %}{% if isCurrent == true %} ons-section-nav__item--active{% endif %}"> | ||
<a class="ons-section-nav__link" href="{{ item.url }}"{% if isCurrent == true %} aria-current="location"{% endif %}>{{ item.title }}</a> | ||
{% if item.anchors and isCurrent == true %} | ||
<ul class="ons-section-nav__sub-items ons-list ons-list--dashed ons-u-mt-xs ons-u-mb-xs"> | ||
{% for anchor in item.anchors %} | ||
<li class="ons-section-nav__item ons-list__item"> | ||
<a href="{{ anchor.url }}" class="ons-section-nav__link ons-list__link">{{ anchor.title }}</a> | ||
</li> | ||
{% endfor %} | ||
</ul> | ||
{% endif %} | ||
</li> | ||
{% endfor %} | ||
</ul> | ||
</div> | ||
{% endfor %} | ||
{% else %} | ||
{% if params.title %} | ||
<h3 class="ons-u-fs-r--b ons-u-mb-s">{{ params.title }}</h3> | ||
{% endif %} | ||
<ul class="ons-section-nav__list"> | ||
{% for item in params.itemsList %} | ||
{% if (params.currentPath and item.url == params.currentPath) or (params.tabQuery and params.tabQuery == item.title|lower) %} | ||
{% set isCurrent = true %} | ||
{% else %} | ||
{% set isCurrent = false %} | ||
{% endif %} | ||
<li class="ons-section-nav__item{% if item.classes %} ' ' + {{ item.classes }}{% endif %}{% if isCurrent == true %} ons-section-nav__item--active{% endif %}"> | ||
<a class="ons-section-nav__link" href="{{ item.url }}"{% if isCurrent == true %} aria-current="location"{% endif %}>{{ item.title }}</a> | ||
{% if item.anchors %} | ||
<ul class="ons-section-nav__sub-items ons-list ons-list--dashed ons-u-mt-xs ons-u-mb-xs"> | ||
{% for anchor in item.anchors %} | ||
<li class="ons-section-nav__item ons-list__item"> | ||
<a href="{{ anchor.url }}" class="ons-section-nav__link ons-list__link">{{ anchor.title }}</a> | ||
</li> | ||
{% endfor %} | ||
</ul> | ||
{% for item in params.itemsList %} | ||
{% if (params.currentPath and item.url == params.currentPath) or (params.tabQuery and params.tabQuery == item.title|lower) %} | ||
{% set isCurrent = true %} | ||
{% else %} | ||
{% set isCurrent = false %} | ||
{% endif %} | ||
</li> | ||
{% endfor %} | ||
</ul> | ||
{% endif %} | ||
</nav> | ||
<li class="ons-section-nav__item{% if item.classes %} ' ' + {{ item.classes }}{% endif %}{% if isCurrent == true %} ons-section-nav__item--active{% endif %}"> | ||
<a class="ons-section-nav__link" href="{{ item.url }}"{% if isCurrent == true %} aria-current="location"{% endif %}>{{ item.title }}</a> | ||
{% if item.anchors %} | ||
<ul class="ons-section-nav__sub-items ons-list ons-list--dashed ons-u-mt-xs ons-u-mb-xs"> | ||
{% for anchor in item.anchors %} | ||
<li class="ons-section-nav__item ons-list__item"> | ||
<a href="{{ anchor.url }}" class="ons-section-nav__link ons-list__link">{{ anchor.title }}</a> | ||
</li> | ||
{% endfor %} | ||
</ul> | ||
{% endif %} | ||
</li> | ||
{% endfor %} | ||
</ul> | ||
{% endif %} | ||
</nav> | ||
{% endmacro %} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.