Skip to content

Commit 3c7bb71

Browse files
authored
scope styles to #content (#1217)
1 parent d66b552 commit 3c7bb71

File tree

1 file changed

+24
-17
lines changed

1 file changed

+24
-17
lines changed

packages/webawesome/docs/docs/resources/visual-tests.md

Lines changed: 24 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -6,27 +6,34 @@ wide: true
66
---
77

88
<style>
9-
p {
10-
max-width: 90ch;
11-
}
12-
tbody {
13-
& .wa-grid {
14-
--min-column-size: 5ch;
15-
}
16-
& tr th:first-of-type {
17-
width: 20ch;
9+
#content {
10+
p {
11+
max-width: 90ch;
1812
}
19-
& th {
20-
vertical-align: middle;
13+
14+
tbody {
15+
& .wa-grid {
16+
--min-column-size: 5ch;
17+
}
18+
19+
& tr th:first-of-type {
20+
width: 20ch;
21+
}
22+
23+
& th {
24+
vertical-align: middle;
25+
}
26+
27+
& tr:hover {
28+
background-color: color-mix(in oklch, var(--wa-color-fill-quiet), transparent 60%)
29+
}
2130
}
22-
& tr:hover {
23-
background-color: color-mix(in oklch, var(--wa-color-fill-quiet), transparent 60%)
31+
32+
wa-divider {
33+
--width: var(--wa-border-width-m);
34+
--spacing: var(--wa-space-3xl);
2435
}
2536
}
26-
wa-divider {
27-
--width: var(--wa-border-width-m);
28-
--spacing: var(--wa-space-3xl);
29-
}
3037
</style>
3138

3239
With so many ways to build with and use Web Awesome components, visual tests help ensure consistency and prevent broken styles from leaking into production.

0 commit comments

Comments
 (0)