demarches-normaliennes/app/views/shared/_tab_item.html.haml
Lisa Durand 963264fbe7
refactor: tab naming, remove number and add icons on the last tabs
Co-Authored-By: Colin Darie <colin@darie.eu>
2024-12-20 13:41:42 +01:00

7 lines
367 B
Text

%li{ class: "relative #{(active ? 'active' : nil)}", role: 'presentation' }
- if notification
%span.notifications{ 'aria-label': 'notifications' }
= link_to(url, 'aria-selected': active ? true : nil, class: class_names("fr-tabs__tab", html_class), role: 'tab' ) do
- if badge.present?
%span.fr-badge.fr-badge--blue-ecume.fr-mr-1w= badge
= label