From 41fe07e658da2a5ae1a52a91fbe1dcdca30435b0 Mon Sep 17 00:00:00 2001 From: David Kasakaitis Date: Fri, 11 Jul 2025 08:37:35 +0100 Subject: [PATCH 1/3] docs(MaskedInput): use the correct class in docstring --- src/textual/widgets/_masked_input.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/textual/widgets/_masked_input.py b/src/textual/widgets/_masked_input.py index 47bf61e445..57f41094cf 100644 --- a/src/textual/widgets/_masked_input.py +++ b/src/textual/widgets/_masked_input.py @@ -462,7 +462,7 @@ def __init__( disabled: bool = False, tooltip: RenderableType | None = None, ) -> None: - """Initialise the `Input` widget. + """Initialise the `MaskedInput` widget. Args: template: Template string. From a0a200e1d4e347588b205de2476819699694a340 Mon Sep 17 00:00:00 2001 From: David Kasakaitis Date: Fri, 11 Jul 2025 08:39:15 +0100 Subject: [PATCH 2/3] feat(MaskedInput): add `compact` parameter to initialiser docs(MaskedInput): add `compact` parameter to docstring --- src/textual/widgets/_masked_input.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/textual/widgets/_masked_input.py b/src/textual/widgets/_masked_input.py index 57f41094cf..8f4c4931dd 100644 --- a/src/textual/widgets/_masked_input.py +++ b/src/textual/widgets/_masked_input.py @@ -461,6 +461,7 @@ def __init__( classes: str | None = None, disabled: bool = False, tooltip: RenderableType | None = None, + compact: bool = False, ) -> None: """Initialise the `MaskedInput` widget. @@ -478,6 +479,7 @@ def __init__( classes: Optional initial classes for the widget. disabled: Whether the input is disabled or not. tooltip: Optional tooltip. + compact: Enable compact style (without borders). """ self._template: _Template = None super().__init__( @@ -490,6 +492,7 @@ def __init__( id=id, classes=classes, disabled=disabled, + compact=compact, ) self._template = _Template(self, template) From b34a38b245e1999e6dbe780807e3d395e915ce8b Mon Sep 17 00:00:00 2001 From: David Kasakaitis Date: Fri, 11 Jul 2025 08:51:02 +0100 Subject: [PATCH 3/3] docs(changelog): add changelog entry --- CHANGELOG.md | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/CHANGELOG.md b/CHANGELOG.md index a76f222901..207df13c41 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -7,6 +7,10 @@ and this project adheres to [Semantic Versioning](http://semver.org/). ## Unreleased +### Added + +- Added `compact` parameter to `MaskedInput` https://github.com/Textualize/textual/pull/5952 + ### Fixed - Fixed issue with the "transparent" CSS value not being transparent when set using python https://github.com/Textualize/textual/pull/5890