Skip to content

Commit

Permalink
fix: use inline element in heading (#5164)
Browse files Browse the repository at this point in the history
* fix: use inline element in heading

div is not allowed as a child for heading, changed it to span.

* Create clean-spiders-sin.md

Co-authored-by: Rich Harris <hello@rich-harris.dev>
  • Loading branch information
devCrossNet and Rich-Harris committed Jun 6, 2022
1 parent 83819ef commit 588ea0f
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 2 deletions.
5 changes: 5 additions & 0 deletions .changeset/clean-spiders-sin.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
"create-svelte": patch
---

[fix] use inline element in heading
Original file line number Diff line number Diff line change
Expand Up @@ -13,12 +13,12 @@

<section>
<h1>
<div class="welcome">
<span class="welcome">
<picture>
<source srcset="svelte-welcome.webp" type="image/webp" />
<img src="svelte-welcome.png" alt="Welcome" />
</picture>
</div>
</span>

to your new<br />SvelteKit app
</h1>
Expand All @@ -44,6 +44,7 @@
}
.welcome {
display: block;
position: relative;
width: 100%;
height: 0;
Expand Down

0 comments on commit 588ea0f

Please sign in to comment.