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

Don't use a stylesheet in SVGs #341

Merged
merged 2 commits into from
Oct 5, 2023
Merged

Conversation

dahbar
Copy link
Contributor

@dahbar dahbar commented Sep 27, 2023

  • Remove SVG Stylesheet
  • Add test coverage

@dahbar dahbar marked this pull request as ready for review September 28, 2023 09:25
Copy link
Member

@Wuestengecko Wuestengecko left a comment

Choose a reason for hiding this comment

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

Looks quite good already, only some minor issues.

After these, we'll also need to deprecate the jupyter_untrusted argument (i.e. emit a DeprecationWarning if it was passed in explicitly – both True and False values), and remove the related code. And then, of course, update the notebooks again. :)

capellambse/svg/drawing.py Outdated Show resolved Hide resolved
tests/test_svg.py Outdated Show resolved Hide resolved
tests/test_svg.py Show resolved Hide resolved
capellambse/svg/drawing.py Show resolved Hide resolved
capellambse/svg/style.py Outdated Show resolved Hide resolved
dahbar and others added 2 commits October 5, 2023 13:48
This fixes most of the issues that came from using CSS in SVG files.
Most notably, the notebook preview on Github can now properly render our
SVG files, and we no longer have to resort to a crude hack to replace
them with PNG images.
@Wuestengecko Wuestengecko force-pushed the fix-remove-svgstylesheet branch from e8ab3bf to 2a7db43 Compare October 5, 2023 11:54
@Wuestengecko Wuestengecko changed the title fix(svg): Remove SVG Stylesheet Don't use a stylesheet in SVGs Oct 5, 2023
@Wuestengecko Wuestengecko merged commit ce0c7cc into master Oct 5, 2023
6 checks passed
@Wuestengecko Wuestengecko deleted the fix-remove-svgstylesheet branch October 5, 2023 11:58
Wuestengecko added a commit that referenced this pull request Feb 6, 2024
Since the merge of #341, this note no longer applies, because we don't
use a stylesheet anymore. (PNG is still supported though.)
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.

2 participants