Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Allowing none in some CSS rules #4982

Merged
merged 10 commits into from
Sep 12, 2024
Merged

Allowing none in some CSS rules #4982

merged 10 commits into from
Sep 12, 2024

Conversation

darrenburns
Copy link
Member

@darrenburns darrenburns commented Sep 10, 2024

  • Closes Add support for dock: none in Textual CSS #4977
  • Adds support for split: none to CSS and inline Python.
  • Adds support for hatch: none to CSS and inline Python.
  • Adding docstrings to many of the attributes on widget.styles (helpful popups appear in VS Code now when you hover)
  • Adds support for widget.styles.border = "none", widget.style.border_{edge} = "none", widget.style.outline = "none", widget.style.outline_{edge} = "none", which worked when using CSS but crashed with an IndexError when done inline. (Previously you could make it work by doing something like ("", "red").
  • Default scrollbar_size_vertical value was wrong in StylesBase - which was surprisngly affecting the location that notifications are rendered in. There was a subsequent workaround (margin-right: 1) in ToastRack which I've now removed.

Any others?

@darrenburns darrenburns marked this pull request as ready for review September 11, 2024 11:56
src/textual/_arrange.py Outdated Show resolved Hide resolved
@darrenburns darrenburns merged commit 05fe60d into main Sep 12, 2024
20 checks passed
@darrenburns darrenburns deleted the css-none-rules branch September 12, 2024 09:15
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Add support for dock: none in Textual CSS
2 participants