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

Presentation attributes support #20

Merged
merged 10 commits into from
Jul 1, 2022
Merged

Conversation

skjalgepalg
Copy link
Contributor

Why?

  • Presently any attributes on the <svg>-tag are lost as part of how @nrk/svg-to-js generates new <svg> or <symbol> tags.
  • Reducing the size of an svg by consolidating multiple identical presentation attributes from child-nodes to the <svg>-tag, is not possible with present version of @nrk/svg-to-js.

What's new?

  • Add support for presentation attributes on <svg>-tags to be kept by default.
  • Updated tests with some new cases to reflect the support of attributes in <svg>-tags
  • Updated readme examples to reflect updated icons and functionality

Copy link
Contributor

@AndersCan AndersCan left a comment

Choose a reason for hiding this comment

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

🔔 ❌ ⬇️

lib/index.js Outdated Show resolved Hide resolved
lib/utils.js Outdated Show resolved Hide resolved
lib/utils.js Show resolved Hide resolved
README.md Show resolved Hide resolved
@skjalgepalg skjalgepalg requested a review from AndersCan June 30, 2022 13:24
Copy link
Contributor

@AndersCan AndersCan left a comment

Choose a reason for hiding this comment

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

fikse null return så er dette 👌

lib/utils.js Outdated Show resolved Hide resolved
lib/index.js Show resolved Hide resolved
@skjalgepalg skjalgepalg merged commit 6e577e1 into master Jul 1, 2022
@skjalgepalg skjalgepalg deleted the presentation-attributes-support branch July 1, 2022 06:34
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants