Merge pull request #11079 from colinux/really-fix-instructeurs-exports-notification-position
ETQ instructeur, meilleur positionnement de la pastille de notif au sujet des exports
This commit is contained in:
commit
602680a251
2 changed files with 14 additions and 5 deletions
|
@ -17,8 +17,13 @@ span.notifications {
|
|||
position: relative;
|
||||
}
|
||||
|
||||
.notifications {
|
||||
.fr-nav__link + .notifications {
|
||||
top: 1rem;
|
||||
right: 0.25rem;
|
||||
}
|
||||
|
||||
.fr-nav__btn .notifications {
|
||||
top: 0;
|
||||
right: -0.25rem;
|
||||
}
|
||||
}
|
||||
|
|
|
@ -44,13 +44,17 @@
|
|||
|
||||
%li.fr-nav__item.relative
|
||||
%button.fr-nav__btn{ 'aria-expanded': 'false', 'aria-controls': 'menu-downloads', 'aria-current': ('page' if current_nav_section == 'downloads') }
|
||||
%span.relative{ class: class_names("fr-pr-1w" => @has_export_notification) }
|
||||
= t('instructeurs.dossiers.header.banner.downloads')
|
||||
- if @has_export_notification
|
||||
%span.notifications{ 'aria-label': t('instructeurs.dossiers.header.banner.exports_notification_label') }
|
||||
#menu-downloads.fr-collapse.fr-menu
|
||||
%ul.fr-menu__list
|
||||
%li
|
||||
= link_to t('instructeurs.dossiers.header.banner.exports_list'), exports_instructeur_procedure_path(procedure), class: 'fr-nav__link'
|
||||
= link_to exports_instructeur_procedure_path(procedure), class: 'fr-nav__link' do
|
||||
= t('instructeurs.dossiers.header.banner.exports_list')
|
||||
- if @has_export_notification
|
||||
%span.fr-ml-1v.notifications{ 'aria-label': t('instructeurs.dossiers.header.banner.exports_notification_label') }
|
||||
%li
|
||||
= link_to t('instructeurs.dossiers.header.banner.archives'), instructeur_archives_path(procedure), class: 'fr-nav__link'
|
||||
%li
|
||||
|
|
Loading…
Reference in a new issue