Replies: 1 comment
-
The import { style } from "@vanilla-extract/css";
export const sibling1 = style({
color: 'red',
get selectors() {
return {
[`&:has(+ ${sibling2}:hover)`]: {
color: "blue",
},
};
},
});
export const sibling2 = style({}); This leverages circular selectors so that you can reference |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
Hi,
Maybe this is a silly question but I couldn't find a solution in the docs.
How I can target a sibling when the other is focused? In normal CSS I used the "+" selector.
This is an example:
I'll provide some layout for context:
How I can achieve this? I mean, how can I target sibling1 from sibling2?
Thanks in advance.
Beta Was this translation helpful? Give feedback.
All reactions