Skeleton for border property help

This commit is contained in:
Darren Burns
2022-04-22 16:52:12 +01:00
parent d0fbe6d1b9
commit 87f56d602c
3 changed files with 10 additions and 3 deletions

View File

@@ -10,6 +10,8 @@
height: 8;
min-width: 80;
background: dark_blu;
padding: 2x;
background: dark_blue;
padding: 2;
border-top: solid red ;
border-left: solid red ;
}

View File

@@ -88,6 +88,7 @@ class BasicApp(App):
# new_margin = old_margin + (1,1,1)
# self.focused.styles.padding = (1, 1, 1)
self.focused.styles.color = "banana"
self.focused.styles.border
BasicApp.run(css_file="uber.css", log="textual.log", log_verbosity=1)

View File

@@ -251,4 +251,8 @@ def color_property_help_text(
def border_property_help_text(
property_name: str, context: StylingContext | None
) -> HelpText:
pass
property_name = _contextualize_property_name(property_name, context)
return HelpText(
summary=f"Invalid value for [i]{property_name}[/] property",
bullets=[*ContextSpecificBullets(inline=[Bullet("")]).get_by_context(context)],
)