fix: bootstrap5 theme: update chevron in validation-state dropdown to support dark theme - #1062
Merged
NicolasCARPi merged 1 commit intoJul 15, 2026
Conversation
… support dark theme
Contributor
Author
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.

Fixes #1061
The problem
The chevron of a dropdown does not reflect the
data-bs-themeused by the Bootstrap, when being validated. This covers.is-valid,.is-invalidand container with.was-validatedclass. It currently only has light theme version - dark gray which can be hard to notice with dark theme.The problem targets Bootstrap versions
5.3.x.What changed
Small
tom-select.bootstrap5.scssone line change:changed to
in the
ts-form-validation-state-selectormixin.It gives preference to the dynamic Bootstrap variable for the chevron image that depends on the
data-bs-themedirectly. The fix also ensures there are no regressions, so there's the fallback for the older versions that do not offer the dark theme and--bs-form-select-bg-imgBootstrap variable.Before/After
This was run locally before and after the change, with the CSS link pointing to
dist/css/tom-select.bootstrap5.css(after runningnpm run build) at the project root.Before
After
From the dev tools:

Tests
Steps passed locally (node 22):
npm test- all tests passednpm run build- successful buildnpm run stylelint- successful, no output