Skip to content

Commit

Permalink
feat: update Icon path for product icons (#532)
Browse files Browse the repository at this point in the history
* feat: unset filter for product icons

* feat: switch path for product icons
  • Loading branch information
twhite313 authored Feb 4, 2025
1 parent ed17641 commit 8850663
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 1 deletion.
6 changes: 5 additions & 1 deletion eds/scripts/scripts.js
Original file line number Diff line number Diff line change
Expand Up @@ -270,7 +270,11 @@ function decorateIcon(span, prefix = '', alt = '') {
.substring(5);
const img = document.createElement('img');
img.dataset.iconName = iconName;
img.src = `https://www.esri.com/content/dam/esrisites/en-us/common/icons/meridian-/${prefix}${iconName}.svg`;
if (iconName.startsWith('product-')) {
img.src = `https://www.esri.com/content/dam/esrisites/en-us/common/icons/product-logos/${prefix}${iconName.substring(8)}.svg`;
} else {
img.src = `https://www.esri.com/content/dam/esrisites/en-us/common/icons/meridian-/${prefix}${iconName}.svg`;
}
img.alt = alt;
img.loading = 'lazy';
span.append(img);
Expand Down
4 changes: 4 additions & 0 deletions eds/styles/styles.css
Original file line number Diff line number Diff line change
Expand Up @@ -312,6 +312,10 @@ main {
inline-size: 100%;
}

.icon img[src*="/product-logos/"] {
filter: none;
}

/* arrow right icon ->
This is the default icon we add for inside redirects
*/
Expand Down

0 comments on commit 8850663

Please sign in to comment.