From 17543ed26eaf61dbcb11869801c2ed45110a56f5 Mon Sep 17 00:00:00 2001 From: Dave Pearson Date: Thu, 8 Jun 2023 14:13:05 +0100 Subject: [PATCH] Pull `Tooltip` out of the main DOM Fixes #2723 --- CHANGELOG.md | 1 + src/textual/widgets/_tooltip.py | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 23739959d7..ce7c782824 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -16,6 +16,7 @@ and this project adheres to [Semantic Versioning](http://semver.org/). - Fixed setting `TreeNode.label` on an existing `Tree` node not immediately https://github.com/Textualize/textual/pull/2713 - Correctly implement `__eq__` protocol in DataTable https://github.com/Textualize/textual/pull/2705 +- Fixed `Tooltip` causing a `query_one` on a lone `Static` to fail https://github.com/Textualize/textual/issues/2723 ### Changed diff --git a/src/textual/widgets/_tooltip.py b/src/textual/widgets/_tooltip.py index c00b57be62..94664edb47 100644 --- a/src/textual/widgets/_tooltip.py +++ b/src/textual/widgets/_tooltip.py @@ -3,7 +3,7 @@ from textual.widgets import Static -class Tooltip(Static): +class Tooltip(Static, inherit_css=False): DEFAULT_CSS = """ Tooltip { layer: _tooltips;