Skip to content

Commit 79e42fa

Browse files
committed
Use nested CSS in Underline
1 parent 11c2eaf commit 79e42fa

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

src/textual/widgets/_tabs.py

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -30,10 +30,10 @@ class Underline(Widget):
3030
Underline {
3131
width: 1fr;
3232
height: 1;
33-
}
34-
Underline > .underline--bar {
35-
background: $foreground 10%;
36-
color: $accent;
33+
& > .underline--bar {
34+
background: $foreground 10%;
35+
color: $accent;
36+
}
3737
}
3838
"""
3939

0 commit comments

Comments
 (0)