quarto-dev / quarto-dev/quarto-cli

Add `collapse-below` option to side navigation (website)

Open
#6,457 1 comment 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

Discussed in https://github.com/quarto-dev/quarto-cli/discussions/6443

Originally posted by declann August 6, 2023

Description

From Quarto docs (and from experimentation), navbars have a handy collapse-below but sidebars don't.

https://quarto.org/docs/websites/website-navigation.html

On some of my pages I want a sidebar but it isn't critical; I tried to collapse it by default on most screensizes by increasing the responsive breakpoint via collapse-below but this is only possible for navbars, not sidebars.

I think would be useful (and more consistent) if sidebars also supported collapse-below? (especially if it happens to be easy?!)

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 with the website navigation documentation linked in the issue and review discussion #6443 to understand the intended behavior. Locate the existing sidebar and navbar handling for responsive collapse, then verify that a sidebar collapse-below option behaves consistently with the documented navbar option.

Written by the indexing model from the issue text.

Assessment

Tech stack
javascript
Domain
frontend
Issue type
Feature
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
45/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.