mirror of
https://github.com/zhigang1992/react.git
synced 2026-02-03 22:43:21 +08:00
style(popover-item): the whole item should be clickable when using with link (#345)
This commit is contained in:
@@ -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 {
|
||||
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user