Skip to content

Commit 494a617

Browse files
committed
snapshot tests
1 parent 1bdf38a commit 494a617

File tree

5 files changed

+14
-7
lines changed

5 files changed

+14
-7
lines changed

CHANGELOG.md

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,13 +12,17 @@ and this project adheres to [Semantic Versioning](http://semver.org/).
1212
- Eager tasks are now enabled On Python3.12 and above https://github.com/Textualize/textual/pull/6102
1313
- `Widget._arrange` is now public (as `Widget.arrange`) https://github.com/Textualize/textual/pull/6108
1414
- Reduced number of layout operations required to update the screen https://github.com/Textualize/textual/pull/6108
15+
- The :hover pseudo-class no applies to the first widget under the mouse with a hover style set https://github.com/Textualize/textual/pull/6132
16+
- The footer key hover background is more visible https://github.com/Textualize/textual/pull/6132
1517

1618
### Added
1719

18-
- Added `DOMNode.displayed_and_visible_children` https://github.com/Textualize/textual/pull/6102
20+
- Added `DOMNode.displayed_and_visible_children` https://github.com/Textualize/textual/pull/6102z
1921
- Added `Widget.process_layout` https://github.com/Textualize/textual/pull/6105
2022
- Added `App.viewport_size` https://github.com/Textualize/textual/pull/6105
2123
- Added `Screen.size` https://github.com/Textualize/textual/pull/6105
24+
- Added `compact` to Binding.Group https://github.com/Textualize/textual/pull/6132
25+
- Added `Screen.get_hover_widgets_at` https://github.com/Textualize/textual/pull/6132
2226

2327
### Fixed
2428

src/textual/design.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -251,7 +251,7 @@ def luminosity_range(spread: float) -> Iterable[tuple[str, float]]:
251251
"block-cursor-blurred-text-style", "none"
252252
)
253253
colors["block-hover-background"] = get(
254-
"block-hover-background", boost.with_alpha(0.2).hex
254+
"block-hover-background", boost.with_alpha(0.1).hex
255255
)
256256

257257
# The border color for focused widgets which have a border.

src/textual/widgets/_footer.py

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -160,11 +160,14 @@ class Footer(ScrollableContainer, can_focus=False, can_focus_children=False):
160160
margin: 0;
161161
}
162162
FooterKey {
163-
margin-left: 1;
163+
margin-right: 1;
164164
}
165165
FooterKey.-grouped {
166166
margin: 0 1;
167167
}
168+
FooterKey.-command-palette {
169+
padding-right: 0;
170+
}
168171
}
169172
FooterKey.-command-palette {
170173
dock: right;
@@ -293,7 +296,7 @@ def compose(self) -> ComposeResult:
293296
disabled=not enabled,
294297
tooltip=tooltip or binding.description,
295298
classes="-grouped",
296-
).data_bind(Footer.compact)
299+
).data_bind(compact=Footer.compact)
297300
yield FooterLabel(group.description)
298301
else:
299302
for multi_bindings in multi_bindings:
@@ -305,7 +308,7 @@ def compose(self) -> ComposeResult:
305308
binding.action,
306309
disabled=not enabled,
307310
tooltip=tooltip,
308-
).data_bind(Footer.compact)
311+
).data_bind(compact=Footer.compact)
309312
if self.show_command_palette and self.app.ENABLE_COMMAND_PALETTE:
310313
try:
311314
_node, binding, enabled, tooltip = active_bindings[

tests/snapshot_tests/__snapshots__/test_snapshots/test_footer_compact_with_hover.svg

Lines changed: 1 addition & 1 deletion
Loading

tests/snapshot_tests/__snapshots__/test_snapshots/test_footer_standard_with_hover.svg

Lines changed: 1 addition & 1 deletion
Loading

0 commit comments

Comments
 (0)