fix(tom-select): override --bs- CSS vars with --tblr- equivalents (#2644)

Co-authored-by: terminalchai <213856599+terminalchai@users.noreply.github.com>
Co-authored-by: codecalm <codecalm@gmail.com>
This commit is contained in:
authored and GitHub committed 2026-07-07 22:53:17 +02:00
1 parent 601e950b7b
commit 6849337a11
2 files changed
+25

No files matched your search

@@ -0,0 +1,5 @@
---
"@tabler/core": patch
---
Fixed Tom Select dropdown and control styles to use `--tblr-*` CSS variables instead of undefined `--bs-*` references from the bootstrap5 preset.
+20
View File
@@ -49,6 +49,21 @@ $input-border-width: 1px;
.option { .option {
padding: $dropdown-item-padding-y $dropdown-item-padding-x; padding: $dropdown-item-padding-y $dropdown-item-padding-x;
} }
// Override TomSelect's bootstrap5 preset which references --bs- vars not available in Tabler (#2600)
.active {
background-color: var(--#{$prefix}active-bg);
color: var(--#{$prefix}body-color);
}
.active.create {
color: var(--#{$prefix}body-color);
}
.optgroup-header {
background: var(--#{$prefix}bg-surface);
color: var(--#{$prefix}body-color);
}
} }
.ts-control, .ts-control,
@@ -73,8 +88,13 @@ $input-border-width: 1px;
.ts-wrapper.disabled .ts-control { .ts-wrapper.disabled .ts-control {
opacity: 1; opacity: 1;
background-color: var(--#{$prefix}secondary-bg);
& > div.item { & > div.item {
color: var(--#{$prefix}gray-500); color: var(--#{$prefix}gray-500);
} }
} }
.ts-wrapper.full .ts-control {
background-color: var(--#{$prefix}body-bg);
}