Steps to replicate the issue (include links if applicable):
- Navigate to https://en.wikipedia.org/wiki/Main_Page
What happens?:
A [hide] button appears even if there's no sitenotice shown.
What should have happened instead?:
There should be no [hide] button when there's no sitenotice.
Software version (skip for WMF-hosted wikis like Wikipedia):
Other information (browser name/version, screenshots, etc.):
I've been able to see the issue on en, pl, de and fr wikis so that it's likely not wiki-specific and doesn't depend on pages in MediaWiki namespace.