Add fover support (either hover or focus)

This commit is contained in:
Zoe Roux
2023-01-13 01:09:39 +09:00
parent 6025f6191f
commit d1da3af5ba
7 changed files with 43 additions and 18 deletions
+5
View File
@@ -54,6 +54,11 @@ const BoxWithoutProps = (props: Stylable) => {
color: "green",
},
},
fover: {
text: {
textDecorationLine: "underline",
}
}
},
md({
shadowOpacity: 0.5,
+6 -3
View File
@@ -100,13 +100,16 @@ export default function Home(props: Stylable) {
</a>
</div>
<div
tabIndex={0}
{...css({
hover: {
self: { background: { xs: "red", sm: "blue", md: "green" } },
fover: {
link: {
color: { xs: "blue", md: "black" },
},
},
})}
>
<a href="https://github.com/vercel/next.js/tree/canary/examples">
<a href="https://github.com/vercel/next.js/tree/canary/examples" {...css("link")}>
<h2>Examples &rarr;</h2>
<p>Discover and deploy boilerplate example Next.js projects.</p>
</a>