Show tooltip when hovering over jump to diagnostic icon

This commit is contained in:
Antonio Scandurra
2022-06-01 09:55:45 +02:00
parent 982de971fa
commit b3242417b3
4 changed files with 41 additions and 0 deletions
+13
View File
@@ -0,0 +1,13 @@
import Theme from "../themes/common/theme";
import { backgroundColor, border, shadow, text } from "./components";
export default function tooltip(theme: Theme) {
return {
background: backgroundColor(theme, 500),
border: border(theme, "primary"),
padding: 6,
shadow: shadow(theme),
cornerRadius: 6,
...text(theme, "sans", "primary", { size: "xs" })
}
}