style(instructeurs): dossier number render as real link

This commit is contained in:
Colin Darie 2024-11-25 12:33:53 +01:00
parent 3f2c5da3ae
commit dc8cc2eba8
No known key found for this signature in database
GPG key ID: 4FB865FDBCA4BCC4
4 changed files with 8 additions and 4 deletions

View file

@ -2,10 +2,14 @@
@import 'constants'; @import 'constants';
.dossiers-table { .dossiers-table {
a { a:not(.fr-link) {
background-image: none; // remove DSFR underline background-image: none; // remove DSFR underline
} }
.fr-link {
font-size: inherit; // keep reduced size from .fr-table td, not 1rem from .fr-link
}
.fr-badge { .fr-badge {
white-space: nowrap; white-space: nowrap;
} }

View file

@ -43,7 +43,7 @@
- @avis.each do |avis| - @avis.each do |avis|
%tr %tr
%td.fr-cell--numeric %td.fr-cell--numeric
= link_to(expert_avis_path(avis.procedure, avis), class: 'cell-link') do = link_to(expert_avis_path(avis.procedure, avis), class: "fr-link") do
= avis.dossier.id = avis.dossier.id
%td= link_to(avis.dossier.user_email_for(:display), expert_avis_path(avis.procedure, avis), class: 'cell-link') %td= link_to(avis.dossier.user_email_for(:display), expert_avis_path(avis.procedure, avis), class: 'cell-link')
%td= link_to(avis.procedure.libelle, expert_avis_path(avis.procedure, avis), class: 'cell-link') %td= link_to(avis.procedure.libelle, expert_avis_path(avis.procedure, avis), class: 'cell-link')

View file

@ -131,7 +131,7 @@
- if p.hidden_by_administration_at.present? - if p.hidden_by_administration_at.present?
%span.cell-link= p.dossier_id %span.cell-link= p.dossier_id
- else - else
%a.cell-link.relative{ href: path } %a.fr-link.relative{ href: path }
= p.dossier_id = p.dossier_id
- if @not_archived_notifications_dossier_ids.include?(p.dossier_id) - if @not_archived_notifications_dossier_ids.include?(p.dossier_id)
%span.notifications{ 'aria-label': 'notifications' } %span.notifications{ 'aria-label': 'notifications' }

View file

@ -53,7 +53,7 @@
- else - else
%td.fr-cell--numeric %td.fr-cell--numeric
%a.cell-link.relative{ href: path } %a.fr-link.relative{ href: path }
= p.dossier_id = p.dossier_id
- if @notifications_dossier_ids.include?(p.dossier_id) - if @notifications_dossier_ids.include?(p.dossier_id)
%span.notifications{ 'aria-label': 'notifications' } %span.notifications{ 'aria-label': 'notifications' }