Skip to content

Commit

Permalink
fix: TS Toggle position (#267)
Browse files Browse the repository at this point in the history
  • Loading branch information
PuruVJ committed Dec 7, 2023
1 parent 2d455a4 commit 78138ab
Show file tree
Hide file tree
Showing 3 changed files with 12 additions and 2 deletions.
5 changes: 5 additions & 0 deletions .changeset/dry-pigs-press.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
'@sveltejs/site-kit': patch
---

fix: TS Toggle position
8 changes: 6 additions & 2 deletions packages/site-kit/src/lib/components/ToggleButton.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -55,8 +55,12 @@
left: 2px;
border-radius: 50%;
background: var(--fg);
box-shadow: 0 0px 1px rgba(0, 0, 0, 0.4), 0 4px 2px rgba(0, 0, 0, 0.1);
transition: background 0.2s ease-out, left 0.2s ease-out;
box-shadow:
0 0px 1px rgba(0, 0, 0, 0.4),
0 4px 2px rgba(0, 0, 0, 0.1);
transition:
background 0.2s ease-out,
left 0.2s ease-out;
}
button[aria-pressed='true']::after {
Expand Down
1 change: 1 addition & 0 deletions packages/site-kit/src/lib/docs/TSToggle.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,7 @@
@media (min-width: 832px) {
.input-output-toggle {
padding: 0rem;
transform: translateX(-1rem);
width: var(--sidebar-menu-width);
margin: 0 0 0 auto;
}
Expand Down

0 comments on commit 78138ab

Please sign in to comment.