Skip to content

Commit a217520

Browse files
Update scope link icon
1 parent 6a1090f commit a217520

File tree

2 files changed

+7
-8
lines changed

2 files changed

+7
-8
lines changed

packages/cursorless-org-docs/src/docs/user/languages/components/ScopeSupport.css

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -2,10 +2,11 @@
22
font-weight: 600;
33
}
44

5-
.link-icon {
6-
margin-left: 0.25rem;
5+
.scope-header a {
6+
display: none;
7+
margin-left: 0.5rem;
78
}
89

9-
.link-icon:hover {
10-
text-decoration: none;
10+
.scope-header:hover a {
11+
display: inline;
1112
}

packages/cursorless-org-docs/src/docs/user/languages/components/ScopeSupport.tsx

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -88,11 +88,9 @@ function renderScope(
8888
const href = scope.scope.toLowerCase().replaceAll(" ", "-");
8989
return (
9090
<div key={scope.scope}>
91-
<h3 id={href}>
91+
<h3 id={href} className="scope-header">
9292
{scope.scope}
93-
<a href={`#${href}`} className="link-icon">
94-
🔗
95-
</a>
93+
<a href={`#${href}`}>#</a>
9694
</h3>
9795
{scope.facets.map((f) =>
9896
renderFacet(languageId, rangeType, renderWhitespace, f),

0 commit comments

Comments
 (0)