bs_theme()
now defaults to preset="shiny"
. This provides an additional set of theming defaults and rules that make it easier to create Shiny apps (in particular, dashboards) that look good out of the box. To revert to the previous behavior, set bs_theme(preset="bootstrap")
. (#711)
目前看到了两个明确影响:
- 之前所有设定了 bslib theme version 5 的 Shiny app 会全部有一个新外观,对原生主题的针对性调整可能会 break,给开发者造成了不必要的麻烦。
- 所有设定了使用 Bootstrap 5 的 pkgdown 站点也被迫取得了新的外观,除非显式设定
preset
,见 r-lib/pkgdown#2376。