Skip to content
This repository has been archived by the owner on Feb 28, 2023. It is now read-only.

Commit

Permalink
Merge pull request #16 from micahgodbolt/button-classname
Browse files Browse the repository at this point in the history
added classname to code sandbox button for easier styling
  • Loading branch information
ling1726 authored May 19, 2022
2 parents 929b3f0 + 31426ba commit 2b793cb
Showing 1 changed file with 1 addition and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,7 @@ const getDependencies = (fileContent: string, requiredDependencies: PackageDepen

const displayToolState = (selector: string, context: StoryContext) => {
let exportLink = document.createElement('a');
exportLink.className = 'with-code-sandbox-button';
exportLink.style.setProperty('position', 'absolute');
exportLink.style.setProperty('bottom', '0');
exportLink.style.setProperty('right', '90px');
Expand Down

0 comments on commit 2b793cb

Please sign in to comment.