version bump

This commit is contained in:
Will McGugan
2025-04-22 09:11:19 +01:00
parent 0787f0036b
commit 57e1e0d1d2
3 changed files with 21 additions and 1 deletions

View File

@@ -2852,6 +2852,7 @@ https://textual.textualize.io/blog/2022/11/08/version-040/#version-040
- New handler system for messages that doesn't require inheritance
- Improved traceback handling
[3.1.1]: https://github.com/Textualize/textual/compare/v3.1.0...v3.1.1
[3.1.0]: https://github.com/Textualize/textual/compare/v3.0.1...v3.1.0
[3.0.1]: https://github.com/Textualize/textual/compare/v3.0.0...v3.0.1
[3.0.0]: https://github.com/Textualize/textual/compare/v2.1.2...v3.0.0

View File

@@ -1,6 +1,6 @@
[tool.poetry]
name = "textual"
version = "3.1.0"
version = "3.1.1"
homepage = "https://github.com/Textualize/textual"
repository = "https://github.com/Textualize/textual"
documentation = "https://textual.textualize.io/"

View File

@@ -4002,3 +4002,22 @@ def test_allow_focus(snap_compare):
yield NonFocusable("NON FOCUSABLE")
assert snap_compare(FocusApp())
def test_tint(snap_compare):
"""Test that tint applied to dim text doesn't break.
You should see the text Hello, World with a 50% green tint."""
class TintApp(App):
CSS = """
Label {
tint: green 50%;
text-style: dim;
}
"""
def compose(self) -> ComposeResult:
yield Label("Hello, World")
assert snap_compare(TintApp())