Skip to content

Commit

Permalink
Update sub-table link text in nunjucks macros
Browse files Browse the repository at this point in the history
Co-Authored-By: Calvin Lau <[email protected]>
  • Loading branch information
owenatgov and calvin-lau-sig7 committed Nov 18, 2024
1 parent ab525f6 commit b29aa47
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions views/partials/_example.njk
Original file line number Diff line number Diff line change
Expand Up @@ -117,14 +117,14 @@
{% if (option.params) or (option.isComponent and ["hint", "label"].includes(option.id)) %}
{% if option.isComponent and not ["hint", "label"].includes(option.id) %}
{# Link to subset of Nunjucks macro options table and Design System component page -#}
See supported <a href="#options-{{ exampleId }}--{{ option.slug }}">{{ option.name | safe }}</a> options for <a href="/components/{{ option.slug }}/#options-{{ option.slug }}-example">{{ optionName | safe }}</a>.
<a href="#options-{{ exampleId }}--{{ option.slug }}">See supported {{ option.name | safe }} macro options</a> for <a href="/components/{{ option.slug }}/#options-{{ option.slug }}-example">{{ optionName | safe }} component macro</a>.
{% else %}
{# Link to Nunjucks macro options table only -#}
See <a href="#options-{{ exampleId }}--{{ option.slug }}">{{ option.name | safe }}</a>.
<a href="#options-{{ exampleId }}--{{ option.slug }}"> See macro options for {{ option.name | safe }}</a>.
{% endif %}
{% elif option.isComponent %}
{# Link to Design System component page for nested components -#}
See <a href="/components/{{ option.slug }}/#options-{{ option.slug }}-example">{{ optionName | safe }}</a>.
<a href="/components/{{ option.slug }}/#options-{{ option.slug }}-example">See macro options for {{ optionName | safe }}</a>.
{% endif %}
</td>
</tr>
Expand Down

0 comments on commit b29aa47

Please sign in to comment.