Skip to content

Commit 666441a

Browse files
committed
set viewBox on svg element
1 parent 7ffb5ff commit 666441a

File tree

4 files changed

+2
-6
lines changed

4 files changed

+2
-6
lines changed

src/css/doc.css

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -711,8 +711,6 @@
711711

712712
.code-toolbox .copy-button svg {
713713
fill: currentColor;
714-
width: inherit;
715-
height: inherit;
716714
}
717715

718716
.code-toolbox .copy-toast {

src/css/header.css

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -190,8 +190,6 @@ body {
190190

191191
.navbar-item .icon svg {
192192
fill: currentColor;
193-
width: inherit;
194-
height: inherit;
195193
}
196194

197195
.navbar-link {

src/js/06-copy-to-clipboard.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@
2626
var svg = document.createElementNS('http://www.w3.org/2000/svg', 'svg')
2727
svg.setAttribute('aria-hidden', 'true')
2828
svg.setAttribute('class', 'copy-icon')
29-
svg.setAttribute('role', 'img')
29+
svg.setAttribute('viewBox', '0 0 16 16')
3030
var use = document.createElementNS('http://www.w3.org/2000/svg', 'use')
3131
use.setAttribute('href', window.uiRootPath + '/img/octicons.svg#clippy-16')
3232
svg.appendChild(use)

src/partials/header-content.hbs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -83,7 +83,7 @@
8383
--}}
8484
<a class="navbar-item" href="https://github.com/asciidoctor" target="_blank" rel="noopener">
8585
<span class="icon">
86-
<svg xmlns="http://www.w3.org/2000/svg"><use href="{{{uiRootPath}}}/img/octicons.svg#mark-github"></use></svg>
86+
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 16 16"><use href="{{{uiRootPath}}}/img/octicons.svg#mark-github"></use></svg>
8787
</span>
8888
</a>
8989
</div>

0 commit comments

Comments
 (0)