Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 4 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
5 changes: 4 additions & 1 deletion src/textual/widgets/_masked_input.py
Original file line number Diff line number Diff line change
Expand Up @@ -461,8 +461,9 @@ def __init__(
classes: str | None = None,
disabled: bool = False,
tooltip: RenderableType | None = None,
compact: bool = False,
) -> None:
"""Initialise the `Input` widget.
"""Initialise the `MaskedInput` widget.

Args:
template: Template string.
Expand All @@ -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__(
Expand All @@ -490,6 +492,7 @@ def __init__(
id=id,
classes=classes,
disabled=disabled,
compact=compact,
)

self._template = _Template(self, template)
Expand Down
Loading