Skip to content

Commit

Permalink
Fix logos (again)
Browse files Browse the repository at this point in the history
  • Loading branch information
tmcconechy committed Sep 21, 2023
1 parent 4af57fe commit 87afa91
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion scripts/node/build-icons.js
Original file line number Diff line number Diff line change
Expand Up @@ -141,7 +141,8 @@ function optimizeSVGs(src) {
svgFile = svgFile.replaceAll('#000', 'currentColor');
const hasStroke = svgFile.indexOf('stroke="currentColor"') > -1;
const isEmpty = filepath.indexOf(`icons${path.sep}empty`) > 1;
const isLogo = path.basename(filepath).indexOf(`logo-`) > 1 || path.basename(filepath) === 'logo';
const iconName = path.basename(filepath).replace('.svg', '');
const isLogo = iconName.indexOf(`logo-`) > -1 || iconName === 'logo';
const isClassic = filepath.indexOf(`theme-classic`) > 1;

if (hasStroke && !isEmpty && !isLogo) {
Expand Down

0 comments on commit 87afa91

Please sign in to comment.