fix display of notification dot inside DSFR tabs

This commit is contained in:
Lisa Durand 2023-11-16 14:06:05 +01:00
parent 139e8f2059
commit 8ecc242586
2 changed files with 7 additions and 1 deletions

View file

@ -7,3 +7,9 @@ span.notifications {
border-radius: 4px;
background-color: $orange;
}
.fr-tabs__list span.notifications {
z-index: 2;
top: 5px;
right: 8px;
}

View file

@ -1,4 +1,4 @@
%li{ class: (active ? 'active' : nil), role: 'presentation' }
%li{ class: "relative #{(active ? 'active' : nil)}", role: 'presentation' }
- if notification
%span.notifications{ 'aria-label': 'notifications' }
= link_to(url, 'aria-selected': active ? true : nil, class: 'fr-tabs__tab', role: 'tab' ) do