File tree Expand file tree Collapse file tree 2 files changed +2
-1
lines changed Expand file tree Collapse file tree 2 files changed +2
-1
lines changed Original file line number Diff line number Diff line change @@ -31,6 +31,7 @@ and this project adheres to [Semantic Versioning](http://semver.org/).
3131
3232- Watchers are now called immediately when setting the attribute if they are synchronous. https://github.com/Textualize/textual/pull/1145
3333- Widget.call_later has been renamed to Widget.call_after_refresh.
34+ - Button variant values are now checked at runtime. https://github.com/Textualize/textual/issues/1189
3435
3536### Fixed
3637
Original file line number Diff line number Diff line change @@ -186,7 +186,7 @@ def __init__(
186186 if disabled :
187187 self .add_class ("-disabled" )
188188
189- self .variant = variant
189+ self .variant = self . validate_variant ( variant )
190190
191191 label : Reactive [RenderableType ] = Reactive ("" )
192192 variant = Reactive .init ("default" )
You can’t perform that action at this time.
0 commit comments