add empty link instead of span on last breadcrumb item to improve display

This commit is contained in:
Lisa Durand 2023-10-10 15:57:05 +02:00
parent ade95f5f5f
commit 7d7fbab5b2

View file

@ -10,8 +10,7 @@
- steps.each.with_index do |step, i|
- if i == steps.size - 1
%li{ aria: { current: "page" } }
%span.fr-breadcrumb__link= step[0]
%li= link_to step[0], '', { aria: { current: "page" } , class: 'fr-breadcrumb__link' }
- else
%li= link_to step[0], step[1], class: 'fr-breadcrumb__link'