From 68a3e2bee5b6eb24012037fd6351e2ac1512f638 Mon Sep 17 00:00:00 2001 From: Mark Bouslog Date: Thu, 11 Jul 2024 16:37:02 -0500 Subject: [PATCH] lib-user: Certificate, change link label, center name, fix font color on dark mode print (#6145) * Replace SVG with css pseudo element * Center name * Change link label to Save Certificate * Set font color on print * Revert decorative line back to svg --- .../src/components/Certificate/Certificate.js | 19 +++++++++++++------ 1 file changed, 13 insertions(+), 6 deletions(-) diff --git a/packages/lib-user/src/components/Certificate/Certificate.js b/packages/lib-user/src/components/Certificate/Certificate.js index b749f297b0..539e6efef2 100644 --- a/packages/lib-user/src/components/Certificate/Certificate.js +++ b/packages/lib-user/src/components/Certificate/Certificate.js @@ -25,6 +25,7 @@ const PrintableBox = styled(Box)` #certificate, #certificate * { visibility: visible; + color: #5c5c5c; } #certificate { @@ -35,6 +36,11 @@ const PrintableBox = styled(Box)` width: 100%; height: 100%; } + + #certificate svg, + #certificate svg g { + fill: #00979d; + } } @page { @@ -79,7 +85,7 @@ function Certificate({ } > {creditedName || displayName} @@ -223,14 +230,14 @@ function Certificate({ alt='Signature of Dr. Laura Trouille' /> - - - - - + + + + +