Horizon theme header border weird behaviour

Hi!

This is the scenario:

  • Header set set to dark color

  • Border thickness set to 0

Still the line border between the header and hero is visible

Also i found this weird behaviour on desktop:

  • Drag the browser window to activate the portrait view (to the point that menu labels are replaced by icons)

  • The line border disappears

  • Refresh the page

  • Drag the browser window back to landscape view

Now the line border reappears with an height of around 20px

  • With a refresh the line is back to it’s normal height

Question:
Is there a way to remove this weird bug?
Also on mobile the line border is visible no matter what.

Just want to get rid of this line on desktop and mobile!

Share a link to your store and a preview password if one is set.

There are several possible reasons you see this, so need to see the store to diagnose. Apps, custom code can affect this as well.
Theme version matters too.

Hey @miscast.it

Welcome to Shopify Community! Can you share your Store URL so I can have a look on it? Also, if you have password enabled then please share the password as well. Your cooperation would be greatly appreciated.

Best Regards,
Moeed

loudadv

pass:
loudadv

Horizon 3.5.1

Huh, this does look like a theme bug to me.

for … bug reports for Horizon, the best option is to either contact support directly or leave feedback as a review on the theme store listing page for the specific Horizon variant.

For your configuration you can fix it with the following code added to Theme Settings-> Custom CSS

#header-group {
  --top-row-height: var(--header-height);
}

Some explanation:

This --top-row-height CSS variable is set only once – here:

It should be updated when window is resized and
there is a function which should update this variable, but it’s never called :frowning:


if my post is helpful, please like it ♡ and mark as a solution -- this will help others find it