Skip to content
This repository has been archived by the owner on Nov 25, 2024. It is now read-only.

Commit

Permalink
explicit closing tags (#288)
Browse files Browse the repository at this point in the history
  • Loading branch information
Rich-Harris authored May 11, 2024
1 parent 6aad025 commit 63e5575
Show file tree
Hide file tree
Showing 5 changed files with 9 additions and 4 deletions.
5 changes: 5 additions & 0 deletions .changeset/pink-terms-sit.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
'@sveltejs/site-kit': patch
---

fix: add explicit closing tags
2 changes: 1 addition & 1 deletion packages/site-kit/src/lib/components/Shell.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,7 @@ The main shell of the application. It provides a slot for the top navigation, th
<slot name="top-nav" />
{/if}

<div class="modal-overlay" class:visible={$overlay_open} aria-hidden="true" />
<div class="modal-overlay" class:visible={$overlay_open} aria-hidden="true"></div>

<main id="main" bind:this={main_el}>
<slot />
Expand Down
2 changes: 1 addition & 1 deletion packages/site-kit/src/lib/components/ToggleButton.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
export let label;
</script>

<button aria-pressed={pressed} aria-label={label} on:click={() => (pressed = !pressed)} />
<button aria-pressed={pressed} aria-label={label} on:click={() => (pressed = !pressed)}></button>

<style>
button {
Expand Down
2 changes: 1 addition & 1 deletion packages/site-kit/src/lib/nav/PreloadingIndicator.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@
{/if}

{#if $p >= 0.4}
<div class="fade" />
<div class="fade"></div>
{/if}

<style>
Expand Down
2 changes: 1 addition & 1 deletion packages/site-kit/src/lib/search/SearchBox.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -128,7 +128,7 @@ It appears when the user clicks on the `Search` component or presses the corresp
/>

{#if $searching && ready}
<div class="pseudo-overlay" aria-hidden="true" on:click={close} />
<div class="pseudo-overlay" aria-hidden="true" on:click={close}></div>

<!-- svelte-ignore a11y-no-static-element-interactions -->
<div
Expand Down

0 comments on commit 63e5575

Please sign in to comment.