Skip to content

Navbar height shifts when search icon appears on scroll (layout shift) #13

@sm-28601

Description

@sm-28601

Current Behavior

On the Layer5 Community Forum (https://discuss.layer5.io/), when scrolling down the page, a search icon appears in the navbar. When this icon appears, the navbar height reduces, causing a noticeable layout shift.

This results in a slightly jarring visual effect while scrolling.


Expected Behavior

The navbar height should remain consistent during scroll. The appearance of the search icon should not cause any change in navbar height or layout shift.


video

m7.mp4

To Reproduce

  1. Go to https://discuss.layer5.io/
  2. Start scrolling down the page
  3. Observe the search icon appearing in the navbar
  4. Notice the navbar height reducing and causing a layout shift

I would be happy to work on this improvement if approved.

Contributor Guides and Resources

Metadata

Metadata

Assignees

Labels

kind/bugSomething isn't working

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions