From b384da73a31d0b100976c4c7565c902370347eaf Mon Sep 17 00:00:00 2001 From: Colin Darie Date: Tue, 12 Dec 2023 17:33:40 +0100 Subject: [PATCH] style: fix download attestation button in dark mode --- app/assets/images/icons/download-white.svg | 1 - app/assets/stylesheets/icons.scss | 4 ---- app/assets/stylesheets/patron.scss | 5 ----- app/views/root/patron.html.haml | 1 - app/views/users/dossiers/show/_status_overview.html.haml | 3 +-- 5 files changed, 1 insertion(+), 13 deletions(-) delete mode 100644 app/assets/images/icons/download-white.svg diff --git a/app/assets/images/icons/download-white.svg b/app/assets/images/icons/download-white.svg deleted file mode 100644 index 9b3f106ad..000000000 --- a/app/assets/images/icons/download-white.svg +++ /dev/null @@ -1 +0,0 @@ - \ No newline at end of file diff --git a/app/assets/stylesheets/icons.scss b/app/assets/stylesheets/icons.scss index 44716a51f..e232ae657 100644 --- a/app/assets/stylesheets/icons.scss +++ b/app/assets/stylesheets/icons.scss @@ -51,10 +51,6 @@ background-image: image-url("icons/download.svg"); } - &.download-white { - background-image: image-url("icons/download-white.svg"); - } - &.lock { background-image: image-url("icons/lock.svg"); } diff --git a/app/assets/stylesheets/patron.scss b/app/assets/stylesheets/patron.scss index 1c0cbf68b..22f745a69 100644 --- a/app/assets/stylesheets/patron.scss +++ b/app/assets/stylesheets/patron.scss @@ -4,9 +4,4 @@ .patron-section { margin-bottom: 20px; } - - .icon.download-white { - background-color: $blue-france-500; - box-shadow: 0px 0px 1px 2px $blue-france-500; - } } diff --git a/app/views/root/patron.html.haml b/app/views/root/patron.html.haml index e8a94d3a7..858dca41c 100644 --- a/app/views/root/patron.html.haml +++ b/app/views/root/patron.html.haml @@ -25,7 +25,6 @@ %span.icon.preview %span.icon.retry %span.icon.download - %span.icon.download-white %span.icon.frown %span.icon.meh %span.icon.smile diff --git a/app/views/users/dossiers/show/_status_overview.html.haml b/app/views/users/dossiers/show/_status_overview.html.haml index 26592ca4a..557365963 100644 --- a/app/views/users/dossiers/show/_status_overview.html.haml +++ b/app/views/users/dossiers/show/_status_overview.html.haml @@ -68,8 +68,7 @@ - if dossier.attestation.present? .action - = link_to attestation_dossier_path(dossier), target: '_blank', rel: 'noopener', class: 'button primary' do - %span.icon.download-white + = link_to attestation_dossier_path(dossier), class: "fr-btn fr-icon-download-line fr-btn--icon-left", target: '_blank', rel: 'noopener' do = t('views.users.dossiers.show.status_overview.accepte_attestation')