Skip to content

Commit

Permalink
🛟 Lift author popover to z-10 (#345)
Browse files Browse the repository at this point in the history
Co-authored-by: Rowan Cockett <[email protected]>
  • Loading branch information
stevejpurves and rowanc1 authored Apr 2, 2024
1 parent e549832 commit ef36c69
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 1 deletion.
5 changes: 5 additions & 0 deletions .changeset/poor-flies-notice.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
'@myst-theme/frontmatter': patch
---

Shift author popover to a z-index of 10 to bring it into same order at other content components
5 changes: 4 additions & 1 deletion packages/frontmatter/src/AuthorPopover.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,10 @@ export const AuthorPopover = ({
</button>
</Popover.Trigger>
<Popover.Portal>
<Popover.Content className="rounded p-5 w-[400px] bg-white shadow" sideOffset={5}>
<Popover.Content
className="hover-card-content rounded p-5 w-[400px] bg-white shadow"
sideOffset={5}
>
<div className="flex flex-col gap-2.5">
<p className="text-mauve12 text-[15px] leading-[19px] font-medium mb-2.5">
{author.name}
Expand Down

0 comments on commit ef36c69

Please sign in to comment.