-
Notifications
You must be signed in to change notification settings - Fork 58
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat(sidebar): Independently customize sidebar state on mobile and de…
…sktop screens (#943) * feat(sidebar_open_on): Customize sidebar state for `desktop` and `mobile` separately * feat(page_sidebar): Default to `desktop="open"`, `mobile="always"` * sidebar: Update JS and CSS * chore: yarn build * fix: Remove extra padding-top if not collapsible * tests: update snaps * chore: Event listeners are only needed if sidebar can collapse * chore: a few comment edits * refactor: relocate windowSize field * refactor: simplify reading of `data-open-` and `data-collapsible-` attributes * chore: yarn build * refactor: Use `as.tags.bslib_sidebar()` instead of `render_as_tags.sidebar()` * refactor: Don't export `sidebar_open_on()`, users give regular lists instead * refactor(sidebar.scss): sidebar content is flex * chore(sidebar.R): Apply suggestions from code review * chore(sidebar.ts): Apply suggestions from code review * chore: yarn build * docs: add news item * Apply suggestions from code review Co-authored-by: Carson Sievert <cpsievert1@gmail.com> * docs: tweak wording of news --------- Co-authored-by: gadenbuie <gadenbuie@users.noreply.github.com> Co-authored-by: Carson Sievert <cpsievert1@gmail.com>
- Loading branch information
1 parent
591d54d
commit 3140888
Showing
15 changed files
with
506 additions
and
162 deletions.
There are no files selected for viewing
This file contains 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 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 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.