Skip to content

Commit

Permalink
style(popover-item): the whole item should be clickable when using wi…
Browse files Browse the repository at this point in the history
…th link
  • Loading branch information
firede authored and unix committed Jul 24, 2020
1 parent 2fbdf1c commit 377846f
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion components/popover/popover-item.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,6 @@ const PopoverItem: React.FC<React.PropsWithChildren<PopoverItemProps>> = ({
line-height: 1.25rem;
text-align: left;
transition: color 0.1s ease 0s, background-color 0.1s ease 0s;
width: max-content;
}
.item:hover {
Expand All @@ -50,6 +49,12 @@ const PopoverItem: React.FC<React.PropsWithChildren<PopoverItemProps>> = ({
margin: 0;
}
.item > :global(.link) {
width: 100%;
padding: 0.5rem ${theme.layout.gap};
margin: -0.5rem -${theme.layout.gap};
}
.item.line {
line-height: 0;
height: 0;
Expand Down

0 comments on commit 377846f

Please sign in to comment.