Skip to content

Commit 74f0bc4

Browse files
authored
[polaris.shopify.com] Fix icons page (#8616)
Before | After ---|--- ![image](https://screenshot.click/09-35-0p5bo-100ot.png) | ![image](https://screenshot.click/09-35-2e423-i8eyz.png)
1 parent 4aacd19 commit 74f0bc4

File tree

2 files changed

+10
-4
lines changed

2 files changed

+10
-4
lines changed

.changeset/strong-cats-fry.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
---
2+
'polaris.shopify.com': patch
3+
---
4+
5+
Fixed icon page layout

polaris.shopify.com/src/components/IconGrid/IconGrid.tsx

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -47,6 +47,7 @@ function IconGridItem({
4747
<li key={id}>
4848
<Link
4949
legacyBehavior
50+
passHref
5051
href={{
5152
pathname: '/icons',
5253
query: {
@@ -55,14 +56,14 @@ function IconGridItem({
5556
},
5657
}}
5758
scroll={false}
58-
className={className(
59-
styles.Icon,
60-
activeIcon === id && styles.isSelected,
61-
)}
6259
id={icon.id}
6360
{...searchAttributes}
6461
>
6562
<a
63+
className={className(
64+
styles.Icon,
65+
activeIcon === id && styles.isSelected,
66+
)}
6667
onClick={() =>
6768
customOnClick &&
6869
customOnClick(searchTerm, rank, `/icons?icon=${id}`)

0 commit comments

Comments
 (0)