Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -96,7 +96,7 @@ const HandbookTemplate: React.FC<Props> = (props) => {
<section id="doc-layout" >
<SidebarToggleButton />

<div className="page-popup" id="page-helpful-popup" style={{ opacity: 0 }}>
<div className="page-popup" id="page-helpful-popup" style={{ opacity: 0, visibility: 'hidden' }}>
<p>Was this page helpful?</p>
<div>
<button className="first" id="like-button-popup" title="Like this page"><LikeUnfilledSVG /></button>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -57,11 +57,13 @@ export const setupLikeDislikeButtons = (slug: string, i: any) => {
if (popup.style.opacity != popupOpacity) {
// popup.style.display = bottomOfWindow ? "block" : "none"
popup.style.opacity = popupOpacity
popup.style.visibility = bottomOfWindow ? "visible" : "hidden"
}

const navOpacity = bottomOfWindow ? "0" : "1"
if (nav.style.opacity != navOpacity) {
nav.style.opacity = navOpacity
nav.style.visibility = bottomOfWindow ? "hidden" : "visible"
}
},
{ passive: true, capture: true }
Expand Down