-
Notifications
You must be signed in to change notification settings - Fork 63
feat(navbar_options): Match Bootstrap 5 semantics #1146
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
Merged
Merged
Changes from all commits
Commits
Show all changes
29 commits
Select commit
Hold shift + click to select a range
7e45649
fix: apply `data-bs-theme="dark"` to `<nav>` when `inverse = TRUE`
gadenbuie 86b4f77
feat(navbar): Set `data-bs-theme` from `inverse`
gadenbuie 4d789d4
chore: explicitly cast to character
gadenbuie a540bb1
feat: introduce `type` and `attrs` (via `...`) in `navbar_options()`
gadenbuie 176c9b8
refactor: Move `navbar_options()` to its own R file
gadenbuie 92cd8fd
tests: Update `navbar_options()` tests
gadenbuie 1046eb7
fixup: small details in `navbar_options()`
gadenbuie 31a9456
tests: Add another inverse -> type test
gadenbuie 81390eb
refactor: Use faster color contrast getter
gadenbuie 6dd4c29
feat: Apply `...` from `navbar_options()` as attributes on the navbar…
gadenbuie 50500ea
feat: Warn if users try `navbar_options(inverse=)` instead of using `…
gadenbuie 840604c
chore: Add note about what to do if precompiled theme output fails
gadenbuie f27fc0a
fix(navbar_options): Require all named arguments in `...` and use `at…
gadenbuie 151093c
docs(navbar_options): Add note about `inverse` -> `type` to docs
gadenbuie 45f2fdf
chore: revert moving `navbar_options()` for better diff
gadenbuie 2a51b70
chore: Apply suggestions from code review
gadenbuie f18214b
`devtools::document()` (GitHub Actions)
gadenbuie 0395d7b
chore: code style
gadenbuie 5190d24
refactor: Use `navbar_options` inside `navs_bar_()`
gadenbuie 3a95d0a
tests(navs_bar_): Add snapshots to track navbar markup
gadenbuie c106d4a
rename: `theme` instead of `type`
gadenbuie facc73c
Merge 'origin/main' into branch feat/navbar-options-bs5
gadenbuie fca14a5
`devtools::document()` (GitHub Actions)
gadenbuie f77a966
fix: update `type` -> `theme`
gadenbuie e0ce81d
feat: Improve navbar compatiblity for Bootstrap 5 and light/dark mode…
gadenbuie 6c78b1a
Resave distributed files (GitHub Action)
gadenbuie eb0f482
Merge 'origin/main' into branch feat/navbar-options-bs5
gadenbuie 0c0f15c
Resave distributed files (GitHub Action)
gadenbuie 0aca8f6
docs: Add NEWS item
gadenbuie File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@gadenbuie couldn't we just change
inverse
totheme
in the 1st bullet point (sincenavbar_options()
is a new addition in this release) instead of adding another bullet?There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I didn't change it because that sentence is talking about the direct arguments, which is still
inverse
. I could move this sentence, but I don't mind calling out the change on its own line.