Skip to content

Commit

Permalink
BUGFIX: Fix Breadcrumb Style (#3487)
Browse files Browse the repository at this point in the history
* BUGFIX: Add breadcrumb-item class to Breadcrumb Template.

This fixes the bug, described in the issue #3474

* TASK: Add .idea to .gitignore file

This commit adds the .idea folder to the .gitignore file. So in the feature, the .idea folder will be ignored from git.

* TASK: Adjust template

* TASK: Fix if statement
  • Loading branch information
crydotsnake committed Jan 8, 2022
1 parent d939f08 commit 1b38e33
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
1 change: 1 addition & 0 deletions .gitignore
Expand Up @@ -22,6 +22,7 @@
/css/*.css
/js/*.js
.vscode
.idea

# Docker
var/docker/db/data/*
Expand Down
2 changes: 1 addition & 1 deletion src/Frontend/Core/Layout/Templates/Breadcrumb.html.twig
@@ -1,7 +1,7 @@
<span class="sr-only">{{ 'lbl.YouAreHere'|trans }}</span>
<ul class="breadcrumb" itemscope itemtype="https://schema.org/BreadcrumbList" role="navigation">
{% for breadcrumb in breadcrumb %}
<li{% if loop.last %} class="active"{% endif %} itemprop="itemListElement" itemscope
<li class="breadcrumb-item{% if loop.last %} active{% endif %}" itemprop="itemListElement" itemscope
itemtype="https://schema.org/ListItem">
{% if breadcrumb.url and not loop.last %}
{# set the full url or the item link will not validate #}
Expand Down

0 comments on commit 1b38e33

Please sign in to comment.