Skip to content

Commit

Permalink
fix theme picker again
Browse files Browse the repository at this point in the history
  • Loading branch information
claviska committed Aug 17, 2021
1 parent 185bc30 commit 5f33bd3
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
1 change: 1 addition & 0 deletions docs/assets/plugins/theme-picker/theme-picker.css
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@
position: fixed;
top: 1rem;
right: 1rem;
z-index: 30;
}

.theme-picker:not(:defined) {
Expand Down
2 changes: 1 addition & 1 deletion docs/assets/plugins/theme-picker/theme-picker.js
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,7 @@
<sl-menu-item value="auto">Auto</sl-menu-item>
</sl-menu>
`;
document.querySelector('.content').prepend(dropdown);
document.querySelector('.sidebar-toggle').insertAdjacentElement('afterend', dropdown);

// Listen for selections
const menu = dropdown.querySelector('sl-menu');
Expand Down

0 comments on commit 5f33bd3

Please sign in to comment.