From c0d7f7cebf4d51cb9324c3ad507bae61769d0083 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Rodrigo=20Gir=C3=A3o=20Serr=C3=A3o?= <5621605+rodrigogiraoserrao@users.noreply.github.com> Date: Sat, 7 Jan 2023 09:47:56 +0000 Subject: [PATCH] Add note about Textual limitation. --- docs/styles/border.md | 4 ++++ docs/styles/outline.md | 4 ++-- 2 files changed, 6 insertions(+), 2 deletions(-) diff --git a/docs/styles/border.md b/docs/styles/border.md index 5439b3ec7..c471f580d 100644 --- a/docs/styles/border.md +++ b/docs/styles/border.md @@ -2,6 +2,10 @@ The `border` rule enables the drawing of a box around a widget. +!!! note + + Due to a Textual limitation, [`border`](./border.md) and [`outline`](./outline.md) cannot coexist in the same edge of a widget. + ## Syntax --8<-- "docs/snippets/syntax_block_start.md" diff --git a/docs/styles/outline.md b/docs/styles/outline.md index 24ca78c7b..3b4c63764 100644 --- a/docs/styles/outline.md +++ b/docs/styles/outline.md @@ -2,9 +2,9 @@ The `outline` rule enables the drawing of a box around the content of a widget, which means the outline is drawn _over_ the content area. -!!! warning +!!! note - Not to be confused with [`border`](./border.md). + Due to a Textual limitation, [`border`](./border.md) and [`outline`](./outline.md) cannot coexist in the same edge of a widget. ## Syntax