Skip to content

Commit 69880aa

Browse files
committed
button style
1 parent 26d8b83 commit 69880aa

File tree

1 file changed

+9
-1
lines changed

1 file changed

+9
-1
lines changed

src/textual/widgets/_button.py

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -57,7 +57,7 @@ class Button(Widget, can_focus=True):
5757
5858
5959
&.-style-flat {
60-
60+
text-style: bold;
6161
color: auto 90%;
6262
background: $surface;
6363
border: block $surface;
@@ -80,31 +80,39 @@ class Button(Widget, can_focus=True):
8080
&.-primary {
8181
background: $primary-muted;
8282
border: block $primary-muted;
83+
color: $text-primary;
8384
&:hover {
85+
color: $text;
8486
background: $primary;
8587
border: block $primary;
8688
}
8789
}
8890
&.-success {
8991
background: $success-muted;
9092
border: block $success-muted;
93+
color: $text-success;
9194
&:hover {
95+
color: $text;
9296
background: $success;
9397
border: block $success;
9498
}
9599
}
96100
&.-warning {
97101
background: $warning-muted;
98102
border: block $warning-muted;
103+
color: $text-warning;
99104
&:hover {
105+
color: $text;
100106
background: $warning;
101107
border: block $warning;
102108
}
103109
}
104110
&.-error {
105111
background: $error-muted;
106112
border: block $error-muted;
113+
color: $text-error;
107114
&:hover {
115+
color: $text;
108116
background: $error;
109117
border: block $error;
110118
}

0 commit comments

Comments
 (0)