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

allow svg tag <use> #23

Open
wants to merge 2 commits into
base: master
Choose a base branch
from
Open

Conversation

grepsuzette
Copy link
Contributor

@grepsuzette grepsuzette commented Jul 21, 2020

define <use> tag (usable inside <svg> tags).
There is a join PR in tink_svgspec (haxetink/tink_svgspec#1) that defines its attributes.

This enables syntax for using bootstrap svg icons (the variant using css sprites @ https://icons.getbootstrap.com/#usage) to be recognized when compiling views e.g.:

<svg width="32" height="32" fill="currentColor">
  <use href="bootstrap-icons.svg#heart-fill"/>
</svg>

grepsuzette added 2 commits July 21, 2020 17:07
May be controversial, but in needs of "fill" here and doc mentions:
"[Presentation attributes are allowed and]
Most notably: clip-path, clip-rule, color, color-interpolation,
color-rendering, cursor, display, fill, fill-opacity, fill-rule, filter,
mask, opacity, pointer-events, shape-rendering, stroke,
stroke-dasharray, stroke-dashoffset, stroke-linecap, stroke-linejoin,
stroke-miterlimit, stroke-opacity, stroke-width, transform,
vector-effect, visibility"
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.

1 participant