Skip to content

Commit

Permalink
fix(code-snippet): replace svg with inline-svg (#123)
Browse files Browse the repository at this point in the history
  • Loading branch information
tw15egan authored and hellobrian committed May 26, 2017
1 parent 004cdbe commit 285ced0
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 4 deletions.
5 changes: 3 additions & 2 deletions src/components/code-snippet/code-snippet--code.html
Original file line number Diff line number Diff line change
Expand Up @@ -23,8 +23,9 @@
</code>
</div>
<button data-copy-btn class="bx--snippet-button" aria-label="Copy code" tabindex="0">
<svg class="bx--snippet__icon">
<use xlink:href="/carbon-icons/bluemix-icons.svg#icon--copy"></use>
<svg class="bx--snippet__icon" width="18" height="24" viewBox="0 0 18 24" fill-rule="evenodd">
<path d="M13 5V0H0v19h5v5h13V5h-5zM2 17V2h9v3H5v12H2zm14 5H7V7h9v15z"></path>
<path d="M9 9h5v2H9zM9 12h5v2H9zM9 15h3v2H9z"></path>
</svg>
<div class="bx--btn--copy__feedback" data-feedback="Copied!"></div>
</button>
Expand Down
5 changes: 3 additions & 2 deletions src/components/code-snippet/code-snippet--terminal.html
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,9 @@
<pre><code>node -v Lorem ipsum dolor sit amet, consectetur adipisicing elit. Blanditiis, veritatis voluptate id incidunt molestiae officia possimus, quasi itaque alias, architecto hic, dicta fugit? Debitis delectus quidem explicabo vitae fuga laboriosam!</code></pre>
</div>
<button data-copy-btn class="bx--snippet-button" aria-label="Copy code" tabindex="0">
<svg class="bx--snippet__icon">
<use xlink:href="/carbon-icons/bluemix-icons.svg#icon--copy"></use>
<svg class="bx--snippet__icon" width="18" height="24" viewBox="0 0 18 24" fill-rule="evenodd">
<path d="M13 5V0H0v19h5v5h13V5h-5zM2 17V2h9v3H5v12H2zm14 5H7V7h9v15z"></path>
<path d="M9 9h5v2H9zM9 12h5v2H9zM9 15h3v2H9z"></path>
</svg>
<div class="bx--btn--copy__feedback" data-feedback="Copied!"></div>
</button>
Expand Down

0 comments on commit 285ced0

Please sign in to comment.