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

fix: use span instead of div for icon #22

Merged
merged 4 commits into from
Mar 25, 2020

Conversation

lex111
Copy link
Contributor

@lex111 lex111 commented Mar 24, 2020

Element “div” not allowed as child of element “h5” in this context. (Suppressing further errors from this subtree.)

From this audit facebook/docusaurus#2403

cc @elviswolcott

@lex111
Copy link
Contributor Author

lex111 commented Mar 25, 2020

@elviswolcott could you please help me with the tests? I can not figure out why they do not pass.

@@ -9,35 +9,31 @@
<h1>This is a test</h1>
<div class="admonition admonition-note alert alert--secondary">
<div class="admonition-heading">
<h5>
<div class="admonition-icon">ℹ️</div>note</h5>
<h5><span class="admonition-icon">ℹ️</span>note</h5>
Copy link
Owner

Choose a reason for hiding this comment

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

Because the tests are really flaky the difference in whitespace causes them to fail.

<h5>
<div class="admonition-icon">
<svg xmlns="http://www.w3.org/2000/svg" width="14" height="16" viewBox="0 0 14 16">
<h5><span class="admonition-icon"><svg xmlns="http://www.w3.org/2000/svg" width="14" height="16" viewBox="0 0 14 16">
Copy link
Owner

Choose a reason for hiding this comment

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

Same deal here with whitespace

@elviswolcott
Copy link
Owner

Travis is refusing to even boot a VM for the branch build, but the PR is passing so I'll merge and release.

@elviswolcott elviswolcott merged commit 9174273 into elviswolcott:master Mar 25, 2020
@elviswolcott
Copy link
Owner

1.2.1 is published 🎉

Thanks for the PR!

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.

None yet

2 participants