github Textualize/textual v5.1.0
The empty inside release

latest releases: v6.1.0, v6.0.0, v5.3.0...
one month ago

This release adds an :empty pseudo-class which matches widgets with no children. You could use this to hide a container that doesn't have any children, for example:

.container:empty {
    display: none;
}

Also in this release, support for scrolling left and right via the trackpad or a mouse that supports it. This was a contribution from @fancidev

Full changes below:

[5.1.0] - 2025-07-31

Added

  • Added empty pseudo class, which applies when a widget has no displayed children #5999
  • Added Screen.action_focus #5999
  • Added support for left and right mouse scroll for terminals and input devices which support it #5995

Changed

  • last-child, last-of-type, first-child, and first-of-type apply to displayed children only #5999
  • textual.compose is now public #5999

Don't miss a new textual release

NewReleases is sending notifications on new releases.