rstudio / rstudio/bslib

Add `position = "sticky-top"` to `navset_bar()` and `page_navbar()`

Open
#707 0 comments 1 reaction 0 assignees View on GitHub

Nobody has claimed this yet.

Dominant language
SCSS
Stars
569
Forks
72
Avg merge
1d 2h
Merged PRs (30d)
5

Description

As mentioned in https://github.com/rstudio/shiny/issues/3862, we should add "sticky-top" as an option in navset_bar(). Is there a use case for "sticky-bottom", too?

https://github.com/rstudio/bslib/blob/3ce06f063b52a6cde3b31a06a4c6b07849836687/R/navs-legacy.R#L83-L84

Contributor guide

No contributing guide indexed for this repository

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 in R/navs-legacy.R around lines 83-84, then trace the navset_bar() and page_navbar() entry points. Check how existing position options are exposed and determine whether the requested sticky-top option should also cover sticky-bottom; done means the supported option is available in both functions with the intended Bootstrap class.

Written by the indexing model from the issue text.

Assessment

Tech stack
bootstrap, r, sass
Domain
frontend, web-dev
Issue type
Feature
Difficulty
2/5
Estimated time
1-3 hours
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
45/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.