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

Set (overwrite) title #3

Open
econic opened this issue Aug 12, 2019 · 3 comments · Fixed by #18
Open

Set (overwrite) title #3

econic opened this issue Aug 12, 2019 · 3 comments · Fixed by #18

Comments

@econic
Copy link
Contributor

econic commented Aug 12, 2019

As SVGs don't support the title attribute, a nice api would be a component's title attribute that renders as a title tag inside the loaded svg.

This theoretically also applies to style but is not subject of this issue.
Any plans on supporting this?

@shrpne
Copy link
Owner

shrpne commented Nov 26, 2019

As a workaround, you can use transformSource with some helper function which will add title tag

@shrpne
Copy link
Owner

shrpne commented Jul 28, 2020

Released under v2.0.0

@shrpne
Copy link
Owner

shrpne commented Jul 28, 2020

Consider replacing title prop with slot accepting <title>, <desc>, <style>, etc.
homeday-de/homeday-blocks#481

@shrpne shrpne reopened this Jul 28, 2020
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 a pull request may close this issue.

2 participants