Skip to content

Commit 94cec4f

Browse files
authored
Fix double click select of titles in documentation (purescript#4579)
Full explanation: https://stackoverflow.com/questions/69291860
1 parent 377bdbd commit 94cec4f

1 file changed

Lines changed: 1 addition & 2 deletions

File tree

src/Language/PureScript/Docs/AsHtml.hs

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -133,8 +133,7 @@ declAsHtml r d@Declaration{..} = do
133133
h3 ! A.class_ "decl__title clearfix" $ do
134134
a ! A.class_ "decl__anchor" ! A.href (v declFragment) $ "#"
135135
H.span $ text declTitle
136-
text " " -- prevent browser from treating
137-
-- declTitle + linkToSource as one word
136+
text "\x200b" -- Zero-width space to allow double-click selection of title
138137
for_ declSourceSpan (linkToSource r)
139138

140139
H.div ! A.class_ "decl__body" $ do

0 commit comments

Comments
 (0)