Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

docs: Discuss BS5 with Bootswatch in ?navbar_options. #1177

Merged
merged 3 commits into from
Jan 30, 2025

Conversation

gadenbuie
Copy link
Member

@gadenbuie gadenbuie commented Jan 30, 2025

In setting up rstudio/shinycoreci#283 – where we'll have test coverage for the default page_navbar() appearance with all Bootswatch themes – I realized that we need better instructions specifically for anyone using BS5 with a Bootswatch preset.

I added a new section to ?navbar_options that walks through the process for getting the same navbar appearance as can be found in the Bootswatch docs for a theme. I also touched on the Sass variables we introduce.

rstudio/shinycoreci#283 reveals that the changes in the default appearance are sub-optimal, but open the door for better customization that more closely follows upstream best practices – i.e. you could follow the Bootswatch or Bootstrap docs because they easily translate to navbar_options().

I've considered a few other options for improving the default experience, but it's difficult to do without adding more undesirable complexity.

@gadenbuie gadenbuie requested a review from cpsievert January 30, 2025 16:18
R/navbar_options.R Outdated Show resolved Hide resolved
@gadenbuie gadenbuie merged commit 0dd6812 into main Jan 30, 2025
13 checks passed
@gadenbuie gadenbuie deleted the docs/navbar-options branch January 30, 2025 18:07
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants