Skip to content

Commit 0848ce3

Browse files
committed
shorten symbol- ID prefix in SVG to icon-
1 parent 8cbd9ba commit 0848ce3

File tree

4 files changed

+25
-25
lines changed

4 files changed

+25
-25
lines changed

gulp.d/tasks/build.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -115,7 +115,7 @@ module.exports = (src, dest, preview) => () => {
115115
imagemin.optipng(),
116116
imagemin.svgo({
117117
plugins: [
118-
{ cleanupIDs: { preservePrefixes: ['symbol-', 'view-'] } },
118+
{ cleanupIDs: { preservePrefixes: ['icon-', 'view-'] } },
119119
{ removeViewBox: false },
120120
{ removeDesc: false },
121121
],

src/img/octicons.svg

Lines changed: 22 additions & 22 deletions
Loading

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@
3535
svg.setAttribute('aria-hidden', 'true')
3636
svg.setAttribute('class', 'copy-icon')
3737
var use = document.createElementNS('http://www.w3.org/2000/svg', 'use')
38-
use.setAttribute('href', window.uiRootPath + '/img/octicons.svg#symbol-clippy-16')
38+
use.setAttribute('href', window.uiRootPath + '/img/octicons.svg#icon-clippy-16')
3939
svg.appendChild(use)
4040
copy.appendChild(svg)
4141
;(toast = document.createElement('span')).className = 'copy-toast'

src/partials/header-content.hbs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -93,7 +93,7 @@
9393
--}}
9494
<a class="navbar-item" href="https://github.com/asciidoctor" target="_blank" rel="noopener">
9595
<span class="icon">
96-
<svg xmlns="http://www.w3.org/2000/svg"><use href="{{{uiRootPath}}}/img/octicons.svg#symbol-mark-github-16"></use></svg>
96+
<svg xmlns="http://www.w3.org/2000/svg"><use href="{{{uiRootPath}}}/img/octicons.svg#icon-mark-github-16"></use></svg>
9797
</span>
9898
</a>
9999
</div>

0 commit comments

Comments
 (0)