From cff9b6cb693bb892792e52576af9dd89e2c30944 Mon Sep 17 00:00:00 2001 From: Victor Lin <13424970+victorlin@users.noreply.github.com> Date: Wed, 6 Sep 2023 12:39:01 -0700 Subject: [PATCH] Remove entropy font style injection MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit This reverts commit 08952cfb0383e0c1c6b4f14f1f5b8813b2f9ee19. The XML string replacement causes issues when the text element already has a class defined (multiple class attributes are not allowed). Remove the replacement entirely since similar styles are inherited from global.css¹. ¹ https://github.com/nextstrain/auspice/blob/8111de141aa3eba1e7b86638b7ae1b5b10ff6327/src/css/global.css#L3 --- src/components/download/helperFunctions.js | 2 -- 1 file changed, 2 deletions(-) diff --git a/src/components/download/helperFunctions.js b/src/components/download/helperFunctions.js index e18fff365..76e74426c 100644 --- a/src/components/download/helperFunctions.js +++ b/src/components/download/helperFunctions.js @@ -502,8 +502,6 @@ const writeSVGPossiblyIncludingMap = (dispatch, filePrefix, panelsInDOM, panelLa if (panelsInDOM.indexOf("entropy") !== -1) { try { panels.entropy = processXMLString((new XMLSerializer()).serializeToString(document.getElementById("d3entropyParent"))); - panels.entropy.inner = panels.entropy.inner.replace(/.txt { font-family: "Lato", "Helvetica Neue", "Helvetica", "sans-serif"; }${panels.entropy.inner}`; } catch (e) { panels.entropy = undefined; errors.push("entropy");