Empty highlighted region returns whitespace which will always evaluate to TRUE when using twig IF

Created on 13 November 2015, about 9 years ago
Updated 14 September 2024, 3 months ago

Reproduce:

Fresh install of rc4 and inspect the highlighted region with Bartik as the default theme.

Expected:

No output from Classy's region.html.twig

Actual:

An empty region wrapper.

Classy's region.html.twig is checking for region content using twig if which will evaluate whitespace as TRUE and as the highlighted region returns whitespace even when empty an empty region wrapper is output.

Edit: removing the Status messages block from the highlighted region results results in no region wrapper being printed.

🐛 Bug report
Status

Postponed: needs info

Version

11.0 🔥

Component
Theme 

Last updated about 3 hours ago

Created by

🇬🇧United Kingdom rattusrattus

Live updates comments and jobs are added and updated live.
Sign in to follow issues

Comments & Activities

Not all content is available!

It's likely this issue predates Contrib.social: some issue and comment data are missing.

  • 🇳🇿New Zealand quietone

    There has been no activity here for about 10 years. This was reported almost 10 years ago D8-rc and on Bartik. A lot has happened since then and Bartik is no longer in core.

    So, is this still a problem?

    If we don't receive additional information to help with the issue, it may be closed after three months.

    Thanks!

Production build 0.71.5 2024