diff --git a/CHANGELOG.md b/CHANGELOG.md index 88d1193c..947a41c2 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,3 +1,13 @@ +# Unreleased + +### Changes + +- Added the `btn-theme` button style and made it the default `style`. It renders light in light mode and dark in dark mode by following Bootstrap's CSS variables, which is how the default `btn-light` already behaved. +- `btn-light` now looks exactly like `btn-theme` in light mode but stays light in every color mode, including dark mode. Use `btn-theme` (or omit `style`) to follow the color mode. +- A `btn-dark` toggle now has a visible border in dark mode, matching a native dark-mode input. +- The active (selected) menu item is highlighted with a neutral gray instead of the primary color. Override `--bs-dropdown-link-active-bg` and `--bs-dropdown-link-active-color` on `.bootstrap-select .dropdown-menu` to restore the primary highlight. +- The open menu now has Bootstrap's standard drop shadow (`--bs-box-shadow`). + # v1.1.2 (CrestApps fork) ### Fixes diff --git a/docs/content/examples.mdx b/docs/content/examples.mdx index 09dacb26..b5bc1568 100644 --- a/docs/content/examples.mdx +++ b/docs/content/examples.mdx @@ -682,6 +682,13 @@ You can set the button classes via the `data-style` attribute: +
'btn-light'
+ 'btn-theme'
When set to a string, add the value to the button's style.
+btn-theme is provided by bootstrap-select. It renders like a native Bootstrap form control: light in light mode and dark in dark mode, following data-bs-theme. btn-light looks the same as btn-theme in light mode but always stays light, even in dark mode. Other Bootstrap button classes such as btn-dark keep their stock Bootstrap look.