Skip to content

Commit c4dacbc

Browse files
committed
Remove external link arrow from Spec link in Navbar
1 parent 87cd293 commit c4dacbc

File tree

1 file changed

+11
-3
lines changed

1 file changed

+11
-3
lines changed

src/pages/_meta.tsx

Lines changed: 11 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@ export default {
3535
},
3636
spec: {
3737
type: "page",
38-
title: <span className="after:font-sans after:content-['_↗']">Spec</span>,
38+
title: "Spec",
3939
href: "https://spec.graphql.org",
4040
newWindow: true,
4141
},
@@ -81,10 +81,10 @@ export default {
8181
conf: {
8282
type: "page",
8383
title: (
84-
<span className="[a:has(>&)]:[a:has(>&)]:border [a:has(>&)]:border [a:has(>&)]:border-current [a:has(>&)]:text-pri-base dark:[a:has(>&)]:text-pri-light [a:hover:has(>&)]:border-transparent">
84+
<Emphasis>
8585
GraphQLConf
8686
<span className="max-xl:hidden"> 2025</span>
87-
</span>
87+
</Emphasis>
8888
),
8989
route: "/conf/2025",
9090
},
@@ -93,3 +93,11 @@ export default {
9393
title: "GraphQL.JS Tutorial",
9494
},
9595
}
96+
97+
function Emphasis({ children }: { children: React.ReactNode }) {
98+
return (
99+
<span className="[a:has(>&)]:[a:has(>&)]:border [a:has(>&)]:border [a:has(>&)]:border-current [a:has(>&)]:text-pri-base dark:[a:has(>&)]:text-pri-light [a:hover:has(>&)]:border-transparent">
100+
{children}
101+
</span>
102+
)
103+
}

0 commit comments

Comments
 (0)