mirror of
https://github.com/tabler/tabler.git
synced 2026-10-12 13:17:00 +04:00
Fix Tom Select validation border colors and focus ring (#3077)
This commit is contained in:
1 parent
cac3179e39
commit
c99a436cc2
3 files changed
+27
No files matched your search
@@ -0,0 +1,5 @@
|
|||||||
|
---
|
||||||
|
"@tabler/core": patch
|
||||||
|
---
|
||||||
|
|
||||||
|
Fixed `.is-valid` and `.is-invalid` border colors and focus ring on Tom Select `.form-select` fields.
|
||||||
@@ -56,13 +56,16 @@ exports[`css custom-property prefixing > leaves vendor-owned names alone and pre
|
|||||||
"--tblr-chart-3",
|
"--tblr-chart-3",
|
||||||
"--tblr-chart-4",
|
"--tblr-chart-4",
|
||||||
"--tblr-chart-5",
|
"--tblr-chart-5",
|
||||||
|
"--tblr-danger",
|
||||||
"--tblr-font-sans-serif",
|
"--tblr-font-sans-serif",
|
||||||
"--tblr-font-size-h3",
|
"--tblr-font-size-h3",
|
||||||
"--tblr-font-size-h5",
|
"--tblr-font-size-h5",
|
||||||
"--tblr-font-weight-medium",
|
"--tblr-font-weight-medium",
|
||||||
"--tblr-font-weight-semibold",
|
"--tblr-font-weight-semibold",
|
||||||
|
"--tblr-form-invalid-border-color",
|
||||||
"--tblr-form-select-bg-icon",
|
"--tblr-form-select-bg-icon",
|
||||||
"--tblr-form-select-bg-img",
|
"--tblr-form-select-bg-img",
|
||||||
|
"--tblr-form-valid-border-color",
|
||||||
"--tblr-gray-500",
|
"--tblr-gray-500",
|
||||||
"--tblr-green",
|
"--tblr-green",
|
||||||
"--tblr-icon-size",
|
"--tblr-icon-size",
|
||||||
@@ -78,6 +81,7 @@ exports[`css custom-property prefixing > leaves vendor-owned names alone and pre
|
|||||||
"--tblr-shadow-card",
|
"--tblr-shadow-card",
|
||||||
"--tblr-shadow-dropdown",
|
"--tblr-shadow-dropdown",
|
||||||
"--tblr-shadow-input",
|
"--tblr-shadow-input",
|
||||||
|
"--tblr-success",
|
||||||
"--tblr-tertiary",
|
"--tblr-tertiary",
|
||||||
"--tblr-text-inverted",
|
"--tblr-text-inverted",
|
||||||
"--tblr-yellow",
|
"--tblr-yellow",
|
||||||
|
|||||||
Vendored
+18
@@ -1,3 +1,4 @@
|
|||||||
|
@use 'sass:map';
|
||||||
@use '../config' as *;
|
@use '../config' as *;
|
||||||
|
|
||||||
$input-border-width: 1px;
|
$input-border-width: 1px;
|
||||||
@@ -52,6 +53,23 @@ $input-border-width: 1px;
|
|||||||
background-image: var(--form-select-bg-img), var(--form-select-bg-icon, none);
|
background-image: var(--form-select-bg-img), var(--form-select-bg-icon, none);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// The same preset also colours the wrapper border and the focused
|
||||||
|
// `.ts-control` with `var(--bs-form-valid-color)` / `--bs-form-invalid-color`.
|
||||||
|
// Those variables do not exist in Tabler, so the border falls back to
|
||||||
|
// `currentColor` and the focus ring disappears. Repeat Tabler's own
|
||||||
|
// validation colours; `!important` for the same reason as `.ts-dropdown`
|
||||||
|
// below.
|
||||||
|
@each $state, $data in $form-validation-states {
|
||||||
|
&.is-#{$state} {
|
||||||
|
border-color: map.get($data, 'border-color') !important;
|
||||||
|
|
||||||
|
&.focus .ts-control {
|
||||||
|
border-color: map.get($data, 'border-color') !important;
|
||||||
|
box-shadow: map.get($data, 'focus-box-shadow') !important;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
// The bootstrap5 preset hardcodes Bootstrap's own input metrics on
|
// The bootstrap5 preset hardcodes Bootstrap's own input metrics on
|
||||||
|
|||||||
Reference in new issue
Block a user