From 87274cb111f6c389f06300db054381f169045886 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Rodrigo=20Gir=C3=A3o=20Serr=C3=A3o?= <5621605+rodrigogiraoserrao@users.noreply.github.com> Date: Wed, 25 Oct 2023 10:15:28 +0100 Subject: [PATCH] Fix notifications CSS. This was merged more or less at the same time as 'initial' was added to CSS but the tests weren't ran with that change. Related PRs: #3566, #3531. --- CHANGELOG.md | 1 + src/textual/widgets/_toast.py | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 194d95ff65..4eed40fcd4 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -16,6 +16,7 @@ and this project adheres to [Semantic Versioning](http://semver.org/). - Fixed CSS errors being repeated https://github.com/Textualize/textual/pull/3566 - Fix issue with chunky highlights on buttons https://github.com/Textualize/textual/pull/3571 - Fixed `OptionList` event leakage from `CommandPalette` to `App`. +- Fixed `Toast` CSS that should use `initial` instead of empty value. ### Added diff --git a/src/textual/widgets/_toast.py b/src/textual/widgets/_toast.py index 6b62304838..b8faf6b180 100644 --- a/src/textual/widgets/_toast.py +++ b/src/textual/widgets/_toast.py @@ -45,7 +45,7 @@ class Toast(Static, inherit_css=False): padding: 1 1; background: $panel; tint: white 5%; - link-background:; + link-background: initial; link-color: $text; link-style: underline; link-hover-background: $accent;