Default css

This commit is contained in:
Will McGugan
2022-09-02 09:56:04 +01:00
parent b6728a694f
commit e555b8512f
33 changed files with 64 additions and 50 deletions

View File

@@ -110,7 +110,7 @@ async def test_composition_of_vertical_container_with_children(
expected_placeholders_offset_x: int,
):
class VerticalContainer(Widget):
CSS = (
DEFAULT_CSS = (
"""
VerticalContainer {
layout: vertical;
@@ -304,7 +304,7 @@ async def test_scrollbar_size_impact_on_the_layout(
class LargeWidgetContainer(Widget):
# TODO: Once textual#581 ("Default versus User CSS") is solved the following CSS should just use the
# "LargeWidgetContainer" selector, without having to use a more specific one to be able to override Widget's CSS:
CSS = """
DEFAULT_CSS = """
#large-widget-container {
width: 20;
height: 20;