diff --git a/web/styles/portico/markdown.css b/web/styles/portico/markdown.css index ccf9950dab..ff9ba9202b 100644 --- a/web/styles/portico/markdown.css +++ b/web/styles/portico/markdown.css @@ -454,7 +454,7 @@ margin-bottom: 10px; border: 1px solid hsl(0deg 0% 87%); - & > div { + .tab-content { display: none; } } @@ -467,7 +467,7 @@ border-radius: 6px; } - &.no-tabs .blocks > div, + &.no-tabs .blocks > .tab-content, &.has-tabs .blocks > .active { display: block; } diff --git a/zerver/lib/markdown/tabbed_sections.py b/zerver/lib/markdown/tabbed_sections.py index 9a1bfb9225..87922d3e02 100644 --- a/zerver/lib/markdown/tabbed_sections.py +++ b/zerver/lib/markdown/tabbed_sections.py @@ -33,7 +33,7 @@ NAV_LIST_ITEM_TEMPLATE = """ """.strip() DIV_TAB_CONTENT_TEMPLATE = """ -
+
{content}
""".strip() diff --git a/zerver/tests/test_templates.py b/zerver/tests/test_templates.py index 65fe457ea6..e5305e3a7e 100644 --- a/zerver/tests/test_templates.py +++ b/zerver/tests/test_templates.py @@ -42,10 +42,10 @@ header
  • Desktop/Web
  • -

    +

    iOS instructions

    -

    +

    Desktop/browser instructions

    @@ -60,10 +60,10 @@ header
  • Android
  • -

    +

    Desktop/browser instructions

    -

    +

    Android instructions

    @@ -77,7 +77,7 @@ header
  • Instructions for all platforms
  • -

    +

    Instructions for all platforms