Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Remove entropy font style injection #1694

Merged
merged 1 commit into from
Sep 6, 2023
Merged

Conversation

victorlin
Copy link
Member

@victorlin victorlin commented Sep 6, 2023

Description of proposed changes

This reverts commit 08952cf.

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:

font-family: "Lato", "Helvetica Neue", "Helvetica", "sans-serif";

Related issue(s)

Fixes #1695

Testing

This reverts commit 08952cf.

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
@victorlin victorlin self-assigned this Sep 6, 2023
@nextstrain-bot nextstrain-bot temporarily deployed to auspice-victorlin-fix-e-zwceq8 September 6, 2023 19:46 Inactive
Copy link
Member

@jameshadfield jameshadfield left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Ha! That's some quality parsing right there. Thanks @victorlin

@victorlin victorlin merged commit 07c77f4 into master Sep 6, 2023
20 checks passed
@victorlin victorlin deleted the victorlin/fix-entropy-svg branch September 6, 2023 21:15
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

SVG export with entropy panel is corrupted
3 participants