Skip to content

Respect bslib.precompiled option when considering whether compile Sass for components #677

New issue

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

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

Already on GitHub? # to your account

Merged
merged 3 commits into from
Jul 14, 2023
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Binary file modified R/sysdata.rda
Binary file not shown.
4 changes: 3 additions & 1 deletion R/utils-deps.R
Original file line number Diff line number Diff line change
@@ -24,7 +24,9 @@ component_dependency_css <- function(name) {

# Run-time (Sass) component styles
component_dependency_sass <- function(theme, name) {
if (!is_bs_theme(theme) || identical(theme, bs_theme())) {
precompiled <- isTRUE(get_precompiled_option())
default_theme <- !is_bs_theme(theme) || identical(theme, bs_theme())
if (precompiled && default_theme) {
component_dependency_css(name)
} else {
component_dependency_sass_(theme, name)
173 changes: 173 additions & 0 deletions man/navset.Rd

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.