Skip to content

Edge case for page/site-nav display of additional content and heading #2606

Description

@gerteck

Please confirm that you have searched existing issues in the repo

Yes, I have searched the existing issues

Any related issues?

No response

Tell us about your environment

Win 11

MarkBind version

5.5.3

Describe the bug and the steps to reproduce it

Header with name 'Page Nav' or 'Site Nav' both get compiled to html with id='page-nav' or id='site-nav'. Specifically, `` gets compiled into <h2 id="page-nav">... </h2>. This causes it to get "pulled-in" to the navigation menus.

However, this is probably unwanted behavior. This causes some styling issues, and also results in these specific headers disppearing when we are using a mobile view.

Image

Also want to ask about the usability of this particular feature

  • any content or picture etc. that gets pulled in, not placed in a very intuitive way out of box.
  • Only gets pulled in when in mobile view
  • Hard to style, can include custom <style/>, but not very user friendly.

Image

Just for discussion, is there any strong use case for this feature?

It seems like it was the result of the implementation of <site-nav-button> and <page-nav-button> as per #1445

Expected behavior

No response

Anything else?

No response

Metadata

Metadata

Assignees

No one assigned

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions