Skip to content

Commit 86c1e92

Browse files
committed
restructure, pointer events
1 parent 8e919e1 commit 86c1e92

File tree

2 files changed

+5
-5
lines changed

2 files changed

+5
-5
lines changed

packages/fern-docs/bundle/src/components/MaybeEnvironmentDropdown.tsx

+3-3
Original file line numberDiff line numberDiff line change
@@ -4,8 +4,7 @@ import { useAtom } from "jotai";
44
import { parse } from "url";
55

66
import type { APIV1Read } from "@fern-api/fdr-sdk/client/types";
7-
import { cn } from "@fern-docs/components";
8-
import { FernButton, FernDropdown, FernInput } from "@fern-docs/components";
7+
import { FernButton, FernDropdown, FernInput, cn } from "@fern-docs/components";
98
import { useBooleanState } from "@fern-ui/react-commons";
109

1110
import { SELECTED_ENVIRONMENT_ATOM } from "@/state/environment";
@@ -164,7 +163,7 @@ export function MaybeEnvironmentDropdown({
164163
</span>
165164
) : (
166165
<>
167-
<span className="max-sm:hidden">
166+
<span className="max-sm:hidden" style={{ pointerEvents: "auto" }}>
168167
{options && options.length > 1 ? (
169168
<FernDropdown
170169
key="selectedEnvironment-selector"
@@ -180,6 +179,7 @@ export function MaybeEnvironmentDropdown({
180179
value={selectedEnvironment?.id ?? environmentId}
181180
>
182181
<FernButton
182+
style={{ pointerEvents: "auto" }}
183183
className="h-auto px-1 py-0"
184184
text={
185185
<span

packages/fern-docs/bundle/src/components/api-reference/endpoints/EndpointUrl.tsx

+2-2
Original file line numberDiff line numberDiff line change
@@ -134,7 +134,7 @@ export const EndpointUrl = React.forwardRef<
134134
}
135135
>
136136
{(onClick) => (
137-
<button
137+
<span
138138
className="flex items-center"
139139
onClick={onClick}
140140
onPointerEnter={() => setIsHovered(true)}
@@ -168,7 +168,7 @@ export const EndpointUrl = React.forwardRef<
168168
)}
169169
{pathParts}
170170
</span>
171-
</button>
171+
</span>
172172
)}
173173
</CopyToClipboardButton>
174174
</span>

0 commit comments

Comments
 (0)