Skip to content
Snippets Groups Projects
Commit b4b2d143 authored by Sam Summy's avatar Sam Summy
Browse files

Issue #3425352: Remove Breadcrumb extra classes

parent 54dd222a
No related branches found
No related tags found
No related merge requests found
...@@ -9,15 +9,15 @@ ...@@ -9,15 +9,15 @@
#} #}
{% set breadcrumb_utility_classes = breadcrumb_utility_classes ? breadcrumb_utility_classes : [] %} {% set breadcrumb_utility_classes = breadcrumb_utility_classes ? breadcrumb_utility_classes : [] %}
{% set classes = [ {% set breadcrumb_classes = [
'breadcrumb', 'breadcrumb',
]|merge(breadcrumb_utility_classes) %} ]|merge(breadcrumb_utility_classes) %}
{% set breadcrumb_attributes = breadcrumb_attributes ?: create_attribute() %} {% set breadcrumb_attributes = breadcrumb_attributes ?: create_attribute() %}
{% block breadcrumb %} {% block breadcrumb %}
{% if breadcrumb %} {% if breadcrumb %}
<nav {{ breadcrumb_attributes.addClass(classes) }}> <nav aria-label="breadcrumb">
<ol class="breadcrumb bg-light py-2 px-3 my-2"> <ol {{ breadcrumb_attributes.addClass(breadcrumb_classes) }}>
{% for item in breadcrumb %} {% for item in breadcrumb %}
<li class="breadcrumb-item {{ not item.url ? 'active' }}"> <li class="breadcrumb-item {{ not item.url ? 'active' }}">
{% if item.url %} {% if item.url %}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment