From ab1928dc338d4d0d2d94a95544a8648791675e01 Mon Sep 17 00:00:00 2001 From: Colin Darie Date: Mon, 24 Oct 2022 20:18:48 +0200 Subject: [PATCH] style(attachment): enable underlined link on refresh link --- app/assets/stylesheets/attachment.scss | 6 --- .../show_component/show_component.html.haml | 37 ++++++++++--------- 2 files changed, 19 insertions(+), 24 deletions(-) diff --git a/app/assets/stylesheets/attachment.scss b/app/assets/stylesheets/attachment.scss index d29e6667e..5a7243ffa 100644 --- a/app/assets/stylesheets/attachment.scss +++ b/app/assets/stylesheets/attachment.scss @@ -16,12 +16,6 @@ } -.attachment-link { - a:not(:hover) { - background-image: none; // remove DSFR underline - } -} - .attachment-error { display: flex; width: max-content; diff --git a/app/components/attachment/show_component/show_component.html.haml b/app/components/attachment/show_component/show_component.html.haml index 39925adab..c95a6cf99 100644 --- a/app/components/attachment/show_component/show_component.html.haml +++ b/app/components/attachment/show_component/show_component.html.haml @@ -9,22 +9,23 @@ - else %span{ data: poll_controller_options } = attachment.filename.to_s - - if attachment.virus_scanner.pending? - (analyse antivirus en cours - = link_to "rafraichir", attachment_path, data: { action: 'turbo-poll#refresh' } - ) - - elsif attachment.watermark_pending? - (traitement de la pièce en cours - = link_to "rafraichir", attachment_path, data: { action: 'turbo-poll#refresh' } - ) - - elsif attachment.virus_scanner.infected? - - if user_can_upload? - (virus détecté, merci d’envoyer un autre fichier) - - else - (virus détecté, le téléchargement de ce fichier est bloqué) - - elsif attachment.virus_scanner.corrupt? - - if user_can_upload? - (le fichier est corrompu, merci d’envoyer un autre fichier) - - else - (le fichier est corrompu, le téléchargement est bloqué) + %span.fr-text-mention--grey + - if attachment.virus_scanner.pending? + (analyse antivirus en cours + = link_to "rafraichir", attachment_path, data: { action: 'turbo-poll#refresh' } + ) + - elsif attachment.watermark_pending? + (traitement de la pièce en cours + = link_to "rafraichir", attachment_path, data: { action: 'turbo-poll#refresh' } + ) + - elsif attachment.virus_scanner.infected? + - if user_can_upload? + (virus détecté, merci d’envoyer un autre fichier) + - else + (virus détecté, le téléchargement de ce fichier est bloqué) + - elsif attachment.virus_scanner.corrupt? + - if user_can_upload? + (le fichier est corrompu, merci d’envoyer un autre fichier) + - else + (le fichier est corrompu, le téléchargement est bloqué)