From c5be72e7320187f395687a5671cd5613e5325ea2 Mon Sep 17 00:00:00 2001 From: Dustin Speckhals Date: Thu, 5 Dec 2019 11:44:34 -0500 Subject: [PATCH 1/2] Move check mark SVG to static file The content security policy of the production website was set up to not allow data URL's. Moving the logo to a static SVG policy fixes this. --- app/styles/me.scss | 2 +- public/assets/check-mark.svg | 3 +++ 2 files changed, 4 insertions(+), 1 deletion(-) create mode 100644 public/assets/check-mark.svg diff --git a/app/styles/me.scss b/app/styles/me.scss index 0f055660741..7603dd57266 100644 --- a/app/styles/me.scss +++ b/app/styles/me.scss @@ -208,7 +208,7 @@ &:after { background-color: #cfc487; border-color: #cfc487; - background-image: url("data:image/svg+xml,%3Csvg width='32' height='32' viewBox='0 0 32 32' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M5.414 11L4 12.414l5.414 5.414L20.828 6.414 19.414 5l-10 10z' fill='%23383838' fill-rule='nonzero'/%3E%3C/svg%3E "); + background-image: url('assets/check-mark.svg'); background-repeat: no-repeat; background-position: 3px 4px; } diff --git a/public/assets/check-mark.svg b/public/assets/check-mark.svg new file mode 100644 index 00000000000..79a5942186f --- /dev/null +++ b/public/assets/check-mark.svg @@ -0,0 +1,3 @@ + + + \ No newline at end of file From f0c17e17d875121f4eb90a5936e7a7261b4f4cac Mon Sep 17 00:00:00 2001 From: "Carol (Nichols || Goulding)" Date: Thu, 5 Dec 2019 13:32:32 -0500 Subject: [PATCH 2/2] Adjust svg path to start with a slash --- app/styles/me.scss | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/styles/me.scss b/app/styles/me.scss index 7603dd57266..382f6a725e2 100644 --- a/app/styles/me.scss +++ b/app/styles/me.scss @@ -208,7 +208,7 @@ &:after { background-color: #cfc487; border-color: #cfc487; - background-image: url('assets/check-mark.svg'); + background-image: url('/assets/check-mark.svg'); background-repeat: no-repeat; background-position: 3px 4px; }