From: Dan Allen Date: Wed, 30 Dec 2020 09:55:26 +0000 (-0700) Subject: rename octicons.svg to octicons-16.svg and remove size suffix from IDs X-Git-Url: https://old-git.evergreen-ils.org/?a=commitdiff_plain;h=731012b0b6ef1e47205953dd9601b609e93155da;p=working%2Feg-antora.git rename octicons.svg to octicons-16.svg and remove size suffix from IDs --- diff --git a/gulp.d/tasks/build.js b/gulp.d/tasks/build.js index 64642ad..6f213e2 100644 --- a/gulp.d/tasks/build.js +++ b/gulp.d/tasks/build.js @@ -110,7 +110,7 @@ module.exports = (src, dest, preview) => () => { imagemin.optipng(), imagemin.svgo({ plugins: [ - { cleanupIDs: { preservePrefixes: ['symbol-', 'view-'] } }, + { cleanupIDs: { preservePrefixes: ['icon-', 'view-'] } }, { removeViewBox: false }, { removeDesc: false }, ], diff --git a/src/img/octicons-16.svg b/src/img/octicons-16.svg new file mode 100644 index 0000000..d8415d0 --- /dev/null +++ b/src/img/octicons-16.svg @@ -0,0 +1,36 @@ + + Octicons (16px subset) + Octicons v11.2.0 by GitHub - https://primer.style/octicons/ - License: MIT + + + + @primer/octicons + 11.2.0 + A scalable set of icons handcrafted with <3 by GitHub + image/svg+xml + + + GitHub + + + + + Copyright (c) 2020 GitHub Inc. + + + + https://primer.style/octicons/ + + + + + + + + + diff --git a/src/img/octicons.svg b/src/img/octicons.svg deleted file mode 100644 index 3503b58..0000000 --- a/src/img/octicons.svg +++ /dev/null @@ -1,36 +0,0 @@ - - Octicons (subset) - Octicons v11.2.0 by GitHub - https://primer.style/octicons/ - License: MIT - - - - @primer/octicons - 11.2.0 - A scalable set of icons handcrafted with <3 by GitHub - image/svg+xml - - - GitHub - - - - - Copyright (c) 2020 GitHub Inc. - - - - https://primer.style/octicons/ - - - - - - - - - diff --git a/src/js/06-copy-to-clipboard.js b/src/js/06-copy-to-clipboard.js index 4749373..cc9a270 100644 --- a/src/js/06-copy-to-clipboard.js +++ b/src/js/06-copy-to-clipboard.js @@ -34,7 +34,7 @@ svg.setAttribute('aria-hidden', 'true') svg.setAttribute('class', 'copy-icon') var use = document.createElementNS('http://www.w3.org/2000/svg', 'use') - use.setAttribute('href', window.uiRootPath + '/img/octicons.svg#symbol-clippy-16') + use.setAttribute('href', window.uiRootPath + '/img/octicons-16.svg#icon-clippy') svg.appendChild(use) copy.appendChild(svg) ;(toast = document.createElement('span')).className = 'copy-toast'