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

fix(bs_theme_preview): Don't include dashboard tab for BS < 5 #670

Merged
merged 1 commit into from
Jul 12, 2023

Conversation

gadenbuie
Copy link
Member

Currently, if you use bs_theme_preview() with BS version < 5, the app fails to load due to layout_column_wrap() requiring Bootstrap 5 (that's just the first BS5 requirement).

bs_theme(4) |> bs_theme_preview()

image

This PR adds a version check and only includes the dashboard page if the theme is BS5+.

@gadenbuie gadenbuie requested a review from cpsievert July 12, 2023 14:16
@gadenbuie gadenbuie self-assigned this Jul 12, 2023
@gadenbuie gadenbuie mentioned this pull request Jul 12, 2023
@gadenbuie gadenbuie merged commit c5b409d into main Jul 12, 2023
12 checks passed
@gadenbuie gadenbuie deleted the preview/dashboard-legacy branch July 12, 2023 18:35
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