X: outline data-testid elements
A style-author aid that outlines every element carrying a data-testid attribute to help write selectors.
Code to copy
/* Developer aid: outline every element that carries a data-testid */
[data-testid] {
outline: 1px solid rgba(29, 155, 240, 0.4) !important;
}
[data-testid]:hover {
outline: 2px solid rgba(29, 155, 240, 0.9) !important;
}
How to use this example
- Copy the code with the button above.
- Install JustZix (2 minutes) and open the extension on the target page.
- Add a new rule matching that page.
- Paste the code into the rule's CSS panel and save — the effect appears instantly.
Rate this example
No ratings yet — be the first.