Skip to content

Commit 1e4ab38

Browse files
committed
snapshot
1 parent de2b6d6 commit 1e4ab38

File tree

3 files changed

+177
-0
lines changed

3 files changed

+177
-0
lines changed

CHANGELOG.md

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,12 @@ All notable changes to this project will be documented in this file.
55
The format is based on [Keep a Changelog](http://keepachangelog.com/)
66
and this project adheres to [Semantic Versioning](http://semver.org/).
77

8+
## Unreleased
9+
10+
### Added
11+
12+
- Added scrollbar-visibility rule https://github.com/Textualize/textual/pull/6156
13+
814
## [6.2.1] - 2025-10-01
915

1016
- Fix inability to copy text outside of an input/textarea when it was focused https://github.com/Textualize/textual/pull/6148
Lines changed: 150 additions & 0 deletions
Loading

tests/snapshot_tests/test_snapshots.py

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4690,3 +4690,24 @@ def compose(self) -> ComposeResult:
46904690
yield Button("Hello")
46914691

46924692
assert snap_compare(CollapseApp(), press=["enter", "enter", "tab"])
4693+
4694+
4695+
def test_scrollbar_visibility(snap_compare) -> None:
4696+
"""Test scrollbar-visibility rule
4697+
4698+
You should see a screen of text that overflows, but there should be *no* scrollbar.
4699+
"""
4700+
4701+
class ScrollbarApp(App):
4702+
4703+
CSS = """
4704+
Screen {
4705+
overflow: auto;
4706+
scrollbar-visibility: hidden;
4707+
}
4708+
"""
4709+
4710+
def compose(self) -> ComposeResult:
4711+
yield Static("Hello, World! 293487 " * 200)
4712+
4713+
assert snap_compare(ScrollbarApp())

0 commit comments

Comments
 (0)