Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
35 commits
Select commit Hold shift + click to select a range
83c260d
Bump Bootstrap & Bootswatch to 5.3.1
cpsievert Aug 15, 2023
913bda9
Update vendor prefix whitelist; only keep Bootswatch source; reduce n…
cpsievert Aug 15, 2023
039e0d8
Temporarily remove problematic patches
cpsievert Aug 15, 2023
5693783
Add in missing variables-dark import
cpsievert Aug 15, 2023
9f11f8f
Check-in initial changes to Bootstrap/Bootswatch
cpsievert Aug 15, 2023
b9dabb1
Reflect changes to Bootstrap's color-contrast() in bslib's version
cpsievert Aug 15, 2023
d4b5bc3
Render 033-accordion-defaults.patch obsolete by reflecting the change…
cpsievert Aug 15, 2023
3f6e9de
Update 023-shiny-forms patch
cpsievert Aug 15, 2023
f1bd73f
Change well-bg's default to a value we can compute on (card-cap-bg is…
cpsievert Aug 16, 2023
a88f45f
Update 011-component-color-contrast-bs5 patch
cpsievert Aug 16, 2023
41ba17e
Update 021-add-navbar-bg-vars-bs5 patch
cpsievert Aug 16, 2023
be7b882
Update 006-bootswatch-materia-bs5 patch
cpsievert Aug 16, 2023
5f388d2
Update 006-bootswatch-superhero-bs5 patch
cpsievert Aug 16, 2023
e28ab0f
Update 006-bootswatch-spacelab-bs5 patch
cpsievert Aug 16, 2023
1bd5ce5
Update 006-bootswatch-slate-bs5 patch
cpsievert Aug 17, 2023
d39d6bf
Update 006-bootswatch-darkly-bs5 patch
cpsievert Aug 17, 2023
4e11d45
Update 006-bootswatch-cyborg-bs5 patch
cpsievert Aug 17, 2023
df6e1fe
Update 028-bsw-leverage-navbar-light-dark-bg patch
cpsievert Aug 17, 2023
828c40f
Resave distributed files (GitHub Action)
cpsievert Aug 17, 2023
4594843
Fix bad patch update to 006-bootswatch-cyborg-bs5
cpsievert Aug 17, 2023
eb66d73
Update test snapshots
cpsievert Aug 17, 2023
525da1a
Use body-bg instead of input-bg to test contrasting since the latter …
cpsievert Aug 17, 2023
7981f8c
`devtools::document()` (GitHub Actions)
cpsievert Aug 17, 2023
1c3dd0d
Replace 027-navbar-active-color-bs5-legacy with more bs3compat rules
cpsievert Aug 17, 2023
133b36b
Replace 027-navbar-active-color-bs5-legacy with more bs3compat rules
cpsievert Aug 17, 2023
5d604e8
Resave distributed files (GitHub Action)
cpsievert Aug 17, 2023
cd04924
Fix according styling (null can't be used to set a new default value …
cpsievert Aug 17, 2023
fc67d8e
`devtools::document()` (GitHub Actions)
cpsievert Aug 17, 2023
4e00d92
Fix subtle bug in 023-shiny-forms-bs5 patch
cpsievert Aug 18, 2023
925a35c
Resave distributed files (GitHub Action)
cpsievert Aug 18, 2023
90adbee
Resave data (GitHub Action)
cpsievert Aug 18, 2023
4b8f520
Compatibility shim for selectize.js 0.12.4
cpsievert Aug 21, 2023
df2f596
Resave distributed files (GitHub Action)
cpsievert Aug 21, 2023
725260b
Just always set the more careful selectize variable defaults
cpsievert Aug 21, 2023
2969855
Update inst/bslib-scss/functions.scss
cpsievert Aug 22, 2023
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
22 changes: 12 additions & 10 deletions R/bs-theme.R
Original file line number Diff line number Diff line change
Expand Up @@ -277,7 +277,7 @@ bootstrap_bundle <- function(version) {
# Don't name this "core" bundle so it can't easily be removed
sass_layer(
functions = bs5_sass_files("functions"),
defaults = bs5_sass_files("variables"),
defaults = list(bs5_sass_files("variables"), bs5_sass_files("variables-dark")),
mixins = list(bs5_sass_files("maps"), bs5_sass_files("mixins")),
rules = list(bs5_sass_files("mixins/banner"), "@include bsBanner('')")
),
Expand Down Expand Up @@ -352,15 +352,7 @@ bootstrap_bundle <- function(version) {

sass_bundle(
main_bundle,
# color-contrast() was introduced in Bootstrap 5.
# We include our own version for a few reasons:
# 1. Easily turn off warnings options(bslib.color_contrast_warnings=F)
# 2. Allow Bootstrap 3 & 4 to use color-contrast() in variable definitions
# 3. Allow Bootstrap 3 & 4 to use bs_get_contrast()
sass_layer(
functions = sass_file(path_inst("sass-utils/color-contrast.scss")),
rules = sass_file(path_inst("bslib-scss", "bslib.scss"))
)
bslib_bundle()
)
}

Expand All @@ -380,6 +372,16 @@ bootstrap_javascript <- function(version) {
)
}

# -----------------------------------------------------------------
# bslib specific Sass that gets bundled with Bootstrap
# -----------------------------------------------------------------

bslib_bundle <- function() {
sass_layer(
functions = sass_file(path_inst("bslib-scss", "functions.scss")),
rules = sass_file(path_inst("bslib-scss", "bslib.scss"))
)
}

# -----------------------------------------------------------------
# BS3 compatibility bundle
Expand Down
Binary file modified R/sysdata.rda
Binary file not shown.
2 changes: 1 addition & 1 deletion R/versions.R
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# DO NOT EDIT
# This file is auto-generated by tools/yarn_install.R
version_bs5 <- "5.2.2"
version_bs5 <- "5.3.1"
version_bs4 <- "4.6.0"
version_bs3 <- "3.4.1"
version_accessibility <- "1.0.6"
17 changes: 16 additions & 1 deletion inst/bs3compat/_declarations.scss
Original file line number Diff line number Diff line change
@@ -1,4 +1,19 @@
// Cards are white by default, but we want a smarter default for .well
// that it appears gray by default
$well-bg: $card-cap-bg !default;
$well-bg: rgba($black, .03) !default;
$well-color: $body-color !default;

// Bootstrap 5.3.1 + selectize.js v0.12.4 (i.e., shiny v1.7.5) shim
//
// Starting with 5.3.x, Bootstrap started having Sass variables default to CSS
// variables (e.g., $input-color: var(--bs-body-color)), which is problematic for
// compuation that happens in Sass (e.g., `mix($color1, $color2)`). This bundle
// fixes this problem for shiny::selectizeInput()'s Sass code (future versions of
// selectizeInput() should hopefully address this problem, making this temporary
// stopgap solution no longer required).
$selectize-color-text: if(is-css-variable($input-color), $body-color, $input-color) !default;
$selectize-color-item: rgba($selectize-color-text, 0.1) !default;
$selectize-color-item-border: if(is-css-variable($input-border-color), $border-color, $input-border-color) !default;
$selectize-color-dropdown: if(is-css-variable($dropdown-bg), $body-bg, $dropdown-bg) !default;
$selectize-color-dropdown-border-top: rgba($input-border-color, 0.2) !default;
$selectize-color-dropdown-item-create-text: rgba($selectize-color-text, 0.5) !default;
3 changes: 3 additions & 0 deletions inst/bs3compat/_defaults.scss
Original file line number Diff line number Diff line change
@@ -1,2 +1,5 @@
// BS3 had .navbar { margin-bottom: 20px; }
$navbar-margin-bottom: 20px !default;

// BS5+ variable used for prefixing CSS vars
$prefix: bs- !default;
19 changes: 14 additions & 5 deletions inst/bs3compat/_navbar_compat.scss
Original file line number Diff line number Diff line change
Expand Up @@ -38,11 +38,20 @@ ul.nav.navbar-nav {
}
}

ul.nav.navbar-nav>li:not(.dropdown) {
@extend .nav-item;
}
ul.nav.navbar-nav>li>a {
@extend .nav-link;
ul.nav.navbar-nav > li {
&:not(.dropdown) {
@extend .nav-item;
}

> a {
@extend .nav-link;
}

&.active, &.show {
> a {
color: var(--#{$prefix}navbar-active-color);
}
}
}

// BS3 .navbar-default -> BS4 .navbar-light
Expand Down
18 changes: 18 additions & 0 deletions inst/bslib-scss/functions.scss
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
// color-contrast() was introduced in Bootstrap 5.
// We include our own version for a few reasons:
// 1. Easily turn off warnings options(bslib.color_contrast_warnings=F)
// 2. Allow Bootstrap 3 & 4 to use color-contrast() in variable definitions
// 3. Allow Bootstrap 3 & 4 to use bs_get_contrast()

// Also note that color-contrast() lives in sass-utils since projects like Quarto
// and flexdashboard currently assume it exists there....
@import "../sass-utils/color-contrast.scss";


@function is-css-variable($x) {
@if (type-of($x) != string) {
@return false;
} @else {
@return str-slice($x, 1, 6) == 'var(--';
}
}
6 changes: 6 additions & 0 deletions inst/builtin/bs5/shiny/_mixins.scss
Original file line number Diff line number Diff line change
@@ -1,3 +1,9 @@
// Accordions
// These definitions can't go in _defaults.scss with a !default flag (because !default doesn't respect null)
$accordion-button-active-bg: null;
$accordion-button-active-color: null;
$accordion-icon-active-color: null;

// Shiny: selectInput() and selectizeInput()
$selectize-color-dropdown-item-active: $component-active-bg !default;
$selectize-color-dropdown-item-active-text: $component-active-color !default;
Expand Down
2 changes: 1 addition & 1 deletion inst/components/dist/sidebar/sidebar.css

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion inst/css-precompiled/4/bootstrap.min.css

Large diffs are not rendered by default.

7 changes: 3 additions & 4 deletions inst/css-precompiled/5/bootstrap.min.css

Large diffs are not rendered by default.

3 changes: 2 additions & 1 deletion inst/css-precompiled/5/bootstrap.scss
Original file line number Diff line number Diff line change
@@ -1,11 +1,12 @@
@import "inst/lib/bs5/scss/_functions.scss";
@import "inst/sass-utils/color-contrast.scss";
@import "inst/bslib-scss/functions.scss";



$enable-cssgrid: true !default;
@import "inst/bs3compat/_defaults.scss";
@import "inst/lib/bs5/scss/_variables.scss";
@import "inst/lib/bs5/scss/_variables-dark.scss";
$bootstrap-version: 5;
$bslib-preset-name: null !default;
$bslib-preset-type: null !default;
Expand Down
3 changes: 1 addition & 2 deletions inst/lib/bs5/LICENSE
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
The MIT License (MIT)

Copyright (c) 2011-2022 Twitter, Inc.
Copyright (c) 2011-2022 The Bootstrap Authors
Copyright (c) 2011-2023 The Bootstrap Authors

Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
Expand Down
36 changes: 18 additions & 18 deletions inst/lib/bs5/README.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
<p align="center">
<a href="https://getbootstrap.com/">
<img src="https://getbootstrap.com/docs/5.2/assets/brand/bootstrap-logo-shadow.png" alt="Bootstrap logo" width="200" height="165">
<img src="https://getbootstrap.com/docs/5.3/assets/brand/bootstrap-logo-shadow.png" alt="Bootstrap logo" width="200" height="165">
</a>
</p>

Expand All @@ -9,7 +9,7 @@
<p align="center">
Sleek, intuitive, and powerful front-end framework for faster and easier web development.
<br>
<a href="https://getbootstrap.com/docs/5.2/"><strong>Explore Bootstrap docs »</strong></a>
<a href="https://getbootstrap.com/docs/5.3/"><strong>Explore Bootstrap docs »</strong></a>
<br>
<br>
<a href="https://github.com/twbs/bootstrap/issues/new?assignees=-&labels=bug&template=bug_report.yml">Report bug</a>
Expand Down Expand Up @@ -46,32 +46,32 @@ Our default branch is for development of our Bootstrap 5 release. Head to the [`

Several quick start options are available:

- [Download the latest release](https://github.com/twbs/bootstrap/archive/v5.2.2.zip)
- [Download the latest release](https://github.com/twbs/bootstrap/archive/v5.3.1.zip)
- Clone the repo: `git clone https://github.com/twbs/bootstrap.git`
- Install with [npm](https://www.npmjs.com/): `npm install bootstrap@v5.2.2`
- Install with [yarn](https://yarnpkg.com/): `yarn add bootstrap@v5.2.2`
- Install with [Composer](https://getcomposer.org/): `composer require twbs/bootstrap:5.2.2`
- Install with [npm](https://www.npmjs.com/): `npm install bootstrap@v5.3.1`
- Install with [yarn](https://yarnpkg.com/): `yarn add bootstrap@v5.3.1`
- Install with [Composer](https://getcomposer.org/): `composer require twbs/bootstrap:5.3.1`
- Install with [NuGet](https://www.nuget.org/): CSS: `Install-Package bootstrap` Sass: `Install-Package bootstrap.sass`

Read the [Getting started page](https://getbootstrap.com/docs/5.2/getting-started/introduction/) for information on the framework contents, templates, examples, and more.
Read the [Getting started page](https://getbootstrap.com/docs/5.3/getting-started/introduction/) for information on the framework contents, templates, examples, and more.


## Status

[![Build Status](https://img.shields.io/github/workflow/status/twbs/bootstrap/JS%20Tests/main?label=JS%20Tests&logo=github)](https://github.com/twbs/bootstrap/actions?query=workflow%3AJS+Tests+branch%3Amain)
[![npm version](https://img.shields.io/npm/v/bootstrap)](https://www.npmjs.com/package/bootstrap)
[![Gem version](https://img.shields.io/gem/v/bootstrap)](https://rubygems.org/gems/bootstrap)
[![Meteor Atmosphere](https://img.shields.io/badge/meteor-twbs%3Abootstrap-blue)](https://atmospherejs.com/twbs/bootstrap)
[![Packagist Prerelease](https://img.shields.io/packagist/vpre/twbs/bootstrap)](https://packagist.org/packages/twbs/bootstrap)
[![NuGet](https://img.shields.io/nuget/vpre/bootstrap)](https://www.nuget.org/packages/bootstrap/absoluteLatest)
[![Coverage Status](https://img.shields.io/coveralls/github/twbs/bootstrap/main)](https://coveralls.io/github/twbs/bootstrap?branch=main)
[![Build Status](https://img.shields.io/github/actions/workflow/status/twbs/bootstrap/js.yml?branch=main&label=JS%20Tests&logo=github)](https://github.com/twbs/bootstrap/actions/workflows/js.yml?query=workflow%3AJS+branch%3Amain)
[![npm version](https://img.shields.io/npm/v/bootstrap?logo=npm&logoColor=fff)](https://www.npmjs.com/package/bootstrap)
[![Gem version](https://img.shields.io/gem/v/bootstrap?logo=rubygems&logoColor=fff)](https://rubygems.org/gems/bootstrap)
[![Meteor Atmosphere](https://img.shields.io/badge/meteor-twbs%3Abootstrap-blue?logo=meteor&logoColor=fff)](https://atmospherejs.com/twbs/bootstrap)
[![Packagist Prerelease](https://img.shields.io/packagist/vpre/twbs/bootstrap?logo=packagist&logoColor=fff)](https://packagist.org/packages/twbs/bootstrap)
[![NuGet](https://img.shields.io/nuget/vpre/bootstrap?logo=nuget&logoColor=fff)](https://www.nuget.org/packages/bootstrap/absoluteLatest)
[![Coverage Status](https://img.shields.io/coveralls/github/twbs/bootstrap/main?logo=coveralls&logoColor=fff)](https://coveralls.io/github/twbs/bootstrap?branch=main)
[![CSS gzip size](https://img.badgesize.io/twbs/bootstrap/main/dist/css/bootstrap.min.css?compression=gzip&label=CSS%20gzip%20size)](https://github.com/twbs/bootstrap/blob/main/dist/css/bootstrap.min.css)
[![CSS Brotli size](https://img.badgesize.io/twbs/bootstrap/main/dist/css/bootstrap.min.css?compression=brotli&label=CSS%20Brotli%20size)](https://github.com/twbs/bootstrap/blob/main/dist/css/bootstrap.min.css)
[![JS gzip size](https://img.badgesize.io/twbs/bootstrap/main/dist/js/bootstrap.min.js?compression=gzip&label=JS%20gzip%20size)](https://github.com/twbs/bootstrap/blob/main/dist/js/bootstrap.min.js)
[![JS Brotli size](https://img.badgesize.io/twbs/bootstrap/main/dist/js/bootstrap.min.js?compression=brotli&label=JS%20Brotli%20size)](https://github.com/twbs/bootstrap/blob/main/dist/js/bootstrap.min.js)
[![BrowserStack Status](https://www.browserstack.com/automate/badge.svg?badge_key=SkxZcStBeExEdVJqQ2hWYnlWckpkNmNEY213SFp6WHFETWk2bGFuY3pCbz0tLXhqbHJsVlZhQnRBdEpod3NLSDMzaHc9PQ==--3d0b75245708616eb93113221beece33e680b229)](https://www.browserstack.com/automate/public-build/SkxZcStBeExEdVJqQ2hWYnlWckpkNmNEY213SFp6WHFETWk2bGFuY3pCbz0tLXhqbHJsVlZhQnRBdEpod3NLSDMzaHc9PQ==--3d0b75245708616eb93113221beece33e680b229)
[![Backers on Open Collective](https://img.shields.io/opencollective/backers/bootstrap)](#backers)
[![Sponsors on Open Collective](https://img.shields.io/opencollective/sponsors/bootstrap)](#sponsors)
[![Backers on Open Collective](https://img.shields.io/opencollective/backers/bootstrap?logo=opencollective&logoColor=fff)](#backers)
[![Sponsors on Open Collective](https://img.shields.io/opencollective/sponsors/bootstrap?logo=opencollective&logoColor=fff)](#sponsors)


## What's included
Expand Down Expand Up @@ -144,7 +144,7 @@ Have a bug or a feature request? Please first read the [issue guidelines](https:

Bootstrap's documentation, included in this repo in the root directory, is built with [Hugo](https://gohugo.io/) and publicly hosted on GitHub Pages at <https://getbootstrap.com/>. The docs may also be run locally.

Documentation search is powered by [Algolia's DocSearch](https://docsearch.algolia.com/). Working on our search? Be sure to set `debug: true` in `site/assets/js/search.js`.
Documentation search is powered by [Algolia's DocSearch](https://docsearch.algolia.com/).

### Running documentation locally

Expand Down Expand Up @@ -243,4 +243,4 @@ Thank you to all our backers! 🙏 [[Become a backer](https://opencollective.com

## Copyright and license

Code and documentation copyright 2011–2022 the [Bootstrap Authors](https://github.com/twbs/bootstrap/graphs/contributors) and [Twitter, Inc.](https://twitter.com) Code released under the [MIT License](https://github.com/twbs/bootstrap/blob/main/LICENSE). Docs released under [Creative Commons](https://creativecommons.org/licenses/by/3.0/).
Code and documentation copyright 2011–2023 the [Bootstrap Authors](https://github.com/twbs/bootstrap/graphs/contributors). Code released under the [MIT License](https://github.com/twbs/bootstrap/blob/main/LICENSE). Docs released under [Creative Commons](https://creativecommons.org/licenses/by/3.0/).
6 changes: 3 additions & 3 deletions inst/lib/bs5/dist/js/bootstrap.bundle.min.js

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion inst/lib/bs5/dist/js/bootstrap.bundle.min.js.map

Large diffs are not rendered by default.

25 changes: 13 additions & 12 deletions inst/lib/bs5/package.json
Original file line number Diff line number Diff line change
@@ -1,14 +1,13 @@
{
"name": "bootstrap",
"description": "The most popular front-end framework for developing responsive, mobile first projects on the web.",
"version": "5.2.2",
"version": "5.3.1",
"config": {
"version_short": "5.2"
"version_short": "5.3"
},
"keywords": ["css", "sass", "mobile-first", "responsive", "front-end", "framework", "web"],
"homepage": "https://getbootstrap.com/",
"author": "The Bootstrap Authors (https://github.com/twbs/bootstrap/graphs/contributors)",
"contributors": "Twitter, Inc.",
"license": "MIT",
"repository": {
"type": "git",
Expand Down Expand Up @@ -38,7 +37,7 @@
"css-compile": "sass --style expanded --source-map --embed-sources --no-error-css scss/:dist/css/",
"css-rtl": "cross-env NODE_ENV=RTL postcss --config build/postcss.config.js --dir \"dist/css\" --ext \".rtl.css\" \"dist/css/*.css\" \"!dist/css/*.min.css\" \"!dist/css/*.rtl.css\"",
"css-lint": "npm-run-all --aggregate-output --continue-on-error --parallel css-lint-*",
"css-lint-stylelint": "stylelint \"**/*.{css,scss}\" --cache --cache-location .cache/.stylelintcache --rd",
"css-lint-stylelint": "stylelint \"**/*.{css,scss}\" --cache --cache-location .cache/.stylelintcache",
"css-lint-vars": "fusv scss/ site/assets/scss/",
"css-minify": "npm-run-all --aggregate-output --parallel css-minify-*",
"css-minify-main": "cleancss -O1 --format breakWith=lf --with-rebase --source-map --source-map-inline-sources --output dist/css/ --batch --batch-suffix \".min\" \"dist/css/*.css\" \"!dist/css/*.min.css\" \"!dist/css/*rtl*.css\"",
Expand All @@ -47,13 +46,14 @@
"css-prefix-main": "postcss --config build/postcss.config.js --replace \"dist/css/*.css\" \"!dist/css/*.rtl*.css\" \"!dist/css/*.min.css\"",
"css-prefix-examples": "postcss --config build/postcss.config.js --replace \"site/content/**/*.css\"",
"css-prefix-examples-rtl": "cross-env-shell NODE_ENV=RTL postcss --config build/postcss.config.js --dir \"site/content/docs/$npm_package_config_version_short/examples/\" --ext \".rtl.css\" --base \"site/content/docs/$npm_package_config_version_short/examples/\" \"site/content/docs/$npm_package_config_version_short/examples/{blog,carousel,dashboard,cheatsheet}/*.css\" \"!site/content/docs/$npm_package_config_version_short/examples/{blog,carousel,dashboard,cheatsheet}/*.rtl.css\"",
"css-test": "jasmine --config=scss/tests/jasmine.js",
"js": "npm-run-all js-compile js-minify",
"js-compile": "npm-run-all --aggregate-output --parallel js-compile-*",
"js-compile-standalone": "rollup --environment BUNDLE:false --config build/rollup.config.js --sourcemap",
"js-compile-standalone-esm": "rollup --environment ESM:true,BUNDLE:false --config build/rollup.config.js --sourcemap",
"js-compile-bundle": "rollup --environment BUNDLE:true --config build/rollup.config.js --sourcemap",
"js-compile-plugins": "node build/build-plugins.js",
"js-lint": "eslint --cache --cache-location .cache/.eslintcache --report-unused-disable-directives --ext .html,.js .",
"js-lint": "eslint --cache --cache-location .cache/.eslintcache --report-unused-disable-directives --ext .html,.js,.md .",
"js-minify": "npm-run-all --aggregate-output --parallel js-minify-*",
"js-minify-standalone": "terser --compress passes=2 --mangle --comments \"/^!/\" --source-map \"content=dist/js/bootstrap.js.map,includeSources,url=bootstrap.min.js.map\" --output dist/js/bootstrap.min.js dist/js/bootstrap.js",
"js-minify-standalone-esm": "terser --compress passes=2 --mangle --comments \"/^!/\" --source-map \"content=dist/js/bootstrap.esm.js.map,includeSources,url=bootstrap.esm.min.js.map\" --output dist/js/bootstrap.esm.min.js dist/js/bootstrap.esm.js",
Expand All @@ -67,18 +67,18 @@
"js-test-jquery": "cross-env JQUERY=true npm run js-test-karma",
"lint": "npm-run-all --aggregate-output --continue-on-error --parallel js-lint css-lint lockfile-lint",
"docs": "npm-run-all docs-build docs-lint",
"docs-build": "hugo --cleanDestinationDir",
"docs-build": "hugo --cleanDestinationDir --printUnusedTemplates",
"docs-compile": "npm run docs-build",
"docs-vnu": "node build/vnu-jar.js",
"docs-lint": "npm run docs-vnu",
"docs-serve": "hugo server --port 9001 --disableFastRender",
"docs-serve": "hugo server --port 9001 --disableFastRender --printUnusedTemplates",
"docs-serve-only": "npx sirv-cli _site --port 9001",
"lockfile-lint": "lockfile-lint --allowed-hosts npm --allowed-schemes https: --empty-hostname false --type npm --path package-lock.json",
"update-deps": "ncu -u -x globby,karma-browserstack-launcher,karma-rollup-preprocessor && echo Manually update site/assets/js/vendor",
"update-deps": "ncu -u -x globby,jasmine,karma-browserstack-launcher,karma-rollup-preprocessor && echo Manually update site/assets/js/vendor",
"release": "npm-run-all dist release-sri docs-build release-zip*",
"release-sri": "node build/generate-sri.js",
"release-version": "node build/change-version.js",
"release-zip": "cross-env-shell \"rm -rf bootstrap-$npm_package_version-dist && cp -r dist/ bootstrap-$npm_package_version-dist && zip -r9 bootstrap-$npm_package_version-dist.zip bootstrap-$npm_package_version-dist && rm -rf bootstrap-$npm_package_version-dist\"",
"release-zip": "cross-env-shell \"rm -rf bootstrap-$npm_package_version-dist bootstrap-$npm_package_version-dist.zip && cp -r dist/ bootstrap-$npm_package_version-dist && zip -qr9 bootstrap-$npm_package_version-dist.zip bootstrap-$npm_package_version-dist && rm -rf bootstrap-$npm_package_version-dist\"",
"release-zip-examples": "node build/zip-examples.js",
"dist": "npm-run-all --aggregate-output --parallel css js",
"test": "npm-run-all lint dist js-test docs-build docs-lint",
Expand All @@ -87,13 +87,14 @@
"watch-css-main": "nodemon --watch scss/ --ext scss --exec \"npm-run-all css-lint css-compile css-prefix\"",
"watch-css-dist": "nodemon --watch dist/css/ --ext css --ignore \"dist/css/*.rtl.*\" --exec \"npm run css-rtl\"",
"watch-css-docs": "nodemon --watch site/assets/scss/ --ext scss --exec \"npm run css-lint\"",
"watch-css-test": "nodemon --watch scss/ --ext scss,js --exec \"npm run css-test\"",
"watch-js-main": "nodemon --watch js/src/ --ext js --exec \"npm-run-all js-lint js-compile\"",
"watch-js-docs": "nodemon --watch site/assets/js/ --ext js --exec \"npm run js-lint\""
},
"peerDependencies": {
"@popperjs/core": "^2.11.6"
"@popperjs/core": "^2.11.8"
},
"files": ["dist/{css,js}/*.{css,js,map}", "js/{src,dist}/**/*.{js,map}", "scss/**/*.scss"],
"files": ["dist/{css,js}/*.{css,js,map}", "js/{src,dist}/**/*.{js,map}", "js/index.{esm,umd}.js", "scss/**/*.scss", "!scss/tests/**"],
"hugo-bin": {
"buildTags": "extended"
},
Expand All @@ -110,7 +111,7 @@
},
"dependencies": {},
"peerDependencies": {
"@popperjs/core": "^2.11.6"
"@popperjs/core": "^2.11.8"
}
}
}
9 changes: 9 additions & 0 deletions inst/lib/bs5/scss/_accordion.scss
Original file line number Diff line number Diff line change
Expand Up @@ -150,3 +150,12 @@
}
}
}

@if $enable-dark-mode {
@include color-mode(dark) {
.accordion-button::after {
--#{$prefix}accordion-btn-icon: #{escape-svg($accordion-button-icon-dark)};
--#{$prefix}accordion-btn-active-icon: #{escape-svg($accordion-button-active-icon-dark)};
}
}
}
Loading