Skip to content

Commit

Permalink
Docs(web-twig): Add Breadcrumbs demo #DS-981
Browse files Browse the repository at this point in the history
Breadcrumbs demo in web-twig is now same as demo in web
  • Loading branch information
pavelklibani committed Sep 1, 2023
1 parent 1dfaa07 commit c7ae091
Show file tree
Hide file tree
Showing 3 changed files with 27 additions and 25 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -2,10 +2,12 @@

{% block content %}

{# Breadcrumbs Basic #}
{% include '@components/Breadcrumbs/stories/BreadcrumbsBasic.twig' %}
<DocsSection title="Default">
{% include '@components/Breadcrumbs/stories/BreadcrumbsDefault.twig' %}
</DocsSection>

{# Breadcrumbs Custom #}
{% include '@components/Breadcrumbs/stories/BreadcrumbsCustom.twig' %}
<DocsSection title="Custom">
{% include '@components/Breadcrumbs/stories/BreadcrumbsCustom.twig' %}
</DocsSection>

{% endblock %}
Original file line number Diff line number Diff line change
@@ -1,23 +1,23 @@
<Breadcrumbs>
<ol>
<li class="d-none d-tablet-flex">
<Link href="#rootUrl" color="primary" isUnderlined>Root</Link>
</li>
<li class="d-none d-tablet-flex">
<Icon name="chevron-right" />
<Link href="#categoryUrl" color="primary" isUnderlined>Category</Link>
</li>
<li class="d-tablet-none">
<Icon name="chevron-right" />
<Link href="#subcategoryUrl" color="primary" isUnderlined>Custom go back link</Link>
</li>
<li class="d-none d-tablet-flex">
<Icon name="chevron-right" />
<Link href="#subcategoryUrl" color="primary" isUnderlined>Subcategory</Link>
</li>
<li class="d-none d-tablet-flex">
<Icon name="chevron-right" />
<Link href="#currentUrl" color="secondary" aria-current="page">Current page</Link>
</li>
</ol>
<ol>
<li class="d-none d-tablet-flex">
<Link href="#rootUrl" color="primary" isUnderlined>Root</Link>
</li>
<li class="d-none d-tablet-flex">
<Icon name="chevron-right" />
<Link href="#categoryUrl" color="primary" isUnderlined>Category</Link>
</li>
<li class="d-tablet-none">
<Icon name="chevron-right" />
<Link href="#subcategoryUrl" color="primary" isUnderlined>Custom go back link</Link>
</li>
<li class="d-none d-tablet-flex">
<Icon name="chevron-right" />
<Link href="#subcategoryUrl" color="primary" isUnderlined>Subcategory</Link>
</li>
<li class="d-none d-tablet-flex">
<Icon name="chevron-right" />
<Link href="#currentUrl" color="secondary" aria-current="page">Current page</Link>
</li>
</ol>
</Breadcrumbs>

0 comments on commit c7ae091

Please sign in to comment.