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:
Colin Darie 2024-11-25 13:23:35 +00:00 committed by GitHub
commit 602680a251
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
2 changed files with 14 additions and 5 deletions

View file

@ -17,8 +17,13 @@ span.notifications {
position: relative; position: relative;
} }
.notifications { .fr-nav__link + .notifications {
top: 1rem; top: 1rem;
right: 0.25rem; right: 0.25rem;
} }
.fr-nav__btn .notifications {
top: 0;
right: -0.25rem;
}
} }

View file

@ -44,13 +44,17 @@
%li.fr-nav__item.relative %li.fr-nav__item.relative
%button.fr-nav__btn{ 'aria-expanded': 'false', 'aria-controls': 'menu-downloads', 'aria-current': ('page' if current_nav_section == 'downloads') } %button.fr-nav__btn{ 'aria-expanded': 'false', 'aria-controls': 'menu-downloads', 'aria-current': ('page' if current_nav_section == 'downloads') }
= t('instructeurs.dossiers.header.banner.downloads') %span.relative{ class: class_names("fr-pr-1w" => @has_export_notification) }
- if @has_export_notification = t('instructeurs.dossiers.header.banner.downloads')
%span.notifications{ 'aria-label': t('instructeurs.dossiers.header.banner.exports_notification_label') } - if @has_export_notification
%span.notifications{ 'aria-label': t('instructeurs.dossiers.header.banner.exports_notification_label') }
#menu-downloads.fr-collapse.fr-menu #menu-downloads.fr-collapse.fr-menu
%ul.fr-menu__list %ul.fr-menu__list
%li %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 %li
= link_to t('instructeurs.dossiers.header.banner.archives'), instructeur_archives_path(procedure), class: 'fr-nav__link' = link_to t('instructeurs.dossiers.header.banner.archives'), instructeur_archives_path(procedure), class: 'fr-nav__link'
%li %li