Skip to content

Commit 0ce84c4

Browse files
authored
consistent cursors on guide cards on the home page (#11779)
closes #9990
1 parent 344a0c2 commit 0ce84c4

File tree

2 files changed

+11
-12
lines changed

2 files changed

+11
-12
lines changed

src/components/platformFilter/index.tsx

Lines changed: 10 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -116,17 +116,15 @@ function PlatformWithGuides({
116116
>
117117
<Collapsible.Trigger asChild className={classNames(styles.CollapsibleTrigger)}>
118118
<div>
119-
<Link href={platform.url} key={platform.key}>
120-
<div className={styles.PlatformTitle}>
121-
<PlatformIcon
122-
size={20}
123-
platform={platform.icon ?? platform.key}
124-
format="lg"
125-
className={styles.PlatformIcon}
126-
/>
127-
{platform.title}
128-
</div>
129-
</Link>
119+
<div className={styles.PlatformTitle} key={platform.key}>
120+
<PlatformIcon
121+
size={20}
122+
platform={platform.icon ?? platform.key}
123+
format="lg"
124+
className={styles.PlatformIcon}
125+
/>
126+
{platform.title}
127+
</div>
130128
<button className={styles.ChevronButton}>
131129
<TriangleRightIcon
132130
className={styles.CollapsibleChevron}
@@ -142,7 +140,7 @@ function PlatformWithGuides({
142140
// scrollable if there are more than 8 (arbitrary limit) guides
143141
data-scrollable={platform.guides.length >= 8 || platform.integrations.length >= 8}
144142
>
145-
{platform.guides.map((guide, i) => (
143+
{[platform, ...platform.guides].map((guide, i) => (
146144
<Link href={guide.url} key={guide.key}>
147145
<div
148146
className={styles.Guide}

src/components/platformFilter/style.module.scss

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -44,6 +44,7 @@
4444
}
4545

4646
.CollapsibleTrigger {
47+
cursor: pointer;
4748
padding-right: 0.5rem;
4849
padding-left: 0.5rem;
4950
flex: 1;

0 commit comments

Comments
 (0)