Skip to content

Use class to hide SVG symbols#16832

Open
mikelkew wants to merge 2 commits intoFortAwesome:masterfrom
mikelkew:svg-symbols
Open

Use class to hide SVG symbols#16832
mikelkew wants to merge 2 commits intoFortAwesome:masterfrom
mikelkew:svg-symbols

Conversation

@mikelkew
Copy link

An example of using a class instead of inline-CSS to hide the SVG symbols, as discussed in #16827.

Obviously this would need to apply to all the JS/CSS distributions within the repo, am just using svg-core as an example.

In my testing locally (FF/Chrome latest), this works as expected and does not require style-src: unsafe-inline in the Content Security Policy as the existing implementation does.

I understand that:

  • I'm submitting this PR for reference only. It shows an example of what I'd like to see changed but
    I understand that it will not be merged and I will not be listed as a contributor on this project.

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