Add basic debounce, fix flickering

This commit is contained in:
Isaac Clayton
2022-06-07 11:54:31 -07:00
committed by Keith Simmons
parent 560dff7329
commit d529a1deb4
4 changed files with 142 additions and 57 deletions
+2 -2
View File
@@ -3,7 +3,7 @@ import { backgroundColor, border, popoverShadow } from "./components";
export default function HoverPopover(theme: Theme) {
return {
background: backgroundColor(theme, 500),
background: backgroundColor(theme, "on500"),
cornerRadius: 8,
padding: {
left: 8,
@@ -14,7 +14,7 @@ export default function HoverPopover(theme: Theme) {
shadow: popoverShadow(theme),
border: border(theme, "primary"),
margin: {
left: -14,
left: -8,
},
}
}