-
Notifications
You must be signed in to change notification settings - Fork 52
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
Multiple cards expand together in navs_tab_card()
and navs_pill_card()
#558
Comments
Thanks for the examples and issue report! It's likely that #557 will fix this. I'll investigate tomorrow but you're welcome to try installing from that branch to see if it works for you. |
#557 didn't quite fix this by itself, but it will now! You can try it by using remotes::install_github("rstudio/bslib#557") A very minimal reprex for the issue is to include more than one card with card(
card(full_screen = TRUE, "some text"),
card(full_screen = TRUE, "more text")
) I've adjusted our selectors to ensure we add event listeners to the correct elements. Here's another slightly more complicated example with nested full screen cards: my_nav <- nav(
"cards",
card(full_screen = TRUE, "some text"),
card(full_screen = TRUE, "more text")
)
navs_pill_card(my_nav, full_screen = TRUE) Kapture.2023-05-02.at.12.07.32.mp4 |
This issue has been automatically locked. If you believe you have found a related problem, please open a new issue (with a reproducible example or feature request) and link to this issue. |
Some
nav
functions cause cards to expand/full-screen together rather than independently.In the first set, the
full_screen
feature is fine and each card expands independently.navs_tab()
✔️and after selecting Expand...
More good examples
_Didn't bother to show all of them working with full screen_navs_pill()
✔️navs_pill_list()
✔️page_navbar()
✔️In these two, the cards both open and try to
full_screen
together.navs_tab_card()
❌and after selecting Expand...
navs_pill_card()
❌and after selecting Expand...
Session Info
The text was updated successfully, but these errors were encountered: