quarto-dev / quarto-dev/quarto-cli

Nested sub-menus in top navigation throws `this menu does not support sub-menus`

Open
#9,015 8 comments 1 reaction 0 assignees View on GitHub

Nobody has claimed this yet.

enhancement websites
Dominant language
JavaScript
Stars
6k
Forks
458
Avg merge
1d 9h
Merged PRs (30d)
41

Description

Bug description

Only one level of sub-menus is supported in top navbar.

Created this issue based on this discussion because it sounded like the current behavior is not the desired behavior, but I couldn't find a corresponding issue. I'm not sure "bug" is the appropriate classification here.

Steps to reproduce

Copied from discussion:

website:
  title: "Nested drop down menu"
  navbar:
    right:
      - text: "Menu Title"
        menu:
          - text: submenu
            menu:
              - text: "Submenu Title"
                href: whatever.qmd
          - text: "Item title"
            href: whatever.qmd
          - text: "Item title"
            href: whatever.qmd
Expected behavior

A nested sub-menu element is rendered

Actual behavior

this menu does not support sub-menus

Your environment

Vim

Pop!_OS 22

Quarto check output
$ quarto check
Quarto 1.4.550
[✓] Checking versions of quarto binary dependencies...
      Pandoc version 3.1.11: OK
      Dart Sass version 1.58.3: OK
      Deno version 1.37.2: OK
[✓] Checking versions of quarto dependencies......OK
[✓] Checking Quarto installation......OK
      Version: 1.4.550
      Path: /home/robatt/.local/share/miniconda3/envs/mfisher87.github.io/bin

[✓] Checking tools....................OK
      TinyTeX: v2023.11
      Chromium: (not installed)

[✓] Checking LaTeX....................OK
      Using: TinyTex
      Path: /home/robatt/.TinyTeX/bin/x86_64-linux
      Version: 2023

[✓] Checking basic markdown render....OK

[✓] Checking Python 3 installation....OK
      Version: 3.11.8 (Conda)
      Path: /home/robatt/.local/share/miniconda3/envs/mfisher87.github.io/bin/python
      Jupyter: 5.7.1
      Kernels: python3

[✓] Checking Jupyter engine render....OK

[✓] Checking R installation...........(None)

      Unable to locate an installed version of R.
      Install R from https://cloud.r-project.org/

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start by reproducing the nested-navbar YAML example from the issue with Quarto, then read discussion 6461 for the intended behavior and context. Trace the top-navigation rendering path to the source of this menu does not support sub-menus; done means nested sub-menu elements render without that error while existing menu items continue to work.

Written by the indexing model from the issue text.

Assessment

Tech stack
javascript
Domain
frontend
Issue type
Bug
Difficulty
4/5
Estimated time
3-5 days
Activity status
Quiet
Clarity
Mostly clear
Newbie friendliness
48/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.