mirror of
https://github.com/tabler/tabler.git
synced 2026-06-17 21:00:15 +04:00
Avoid scss color dependency on :focus (#1647)
Co-authored-by: Paweł Kuna <1282324+codecalm@users.noreply.github.com>
This commit is contained in:
@@ -0,0 +1,5 @@
|
|||||||
|
---
|
||||||
|
"@tabler/core": patch
|
||||||
|
---
|
||||||
|
|
||||||
|
Avoid SCSS color dependency on `:focus`
|
||||||
@@ -486,8 +486,6 @@ $focus-ring-width: 0.25rem !default;
|
|||||||
$focus-ring-opacity: 0.25 !default;
|
$focus-ring-opacity: 0.25 !default;
|
||||||
$focus-ring-color: rgba(var(--#{$prefix}primary-rgb), $focus-ring-opacity) !default;
|
$focus-ring-color: rgba(var(--#{$prefix}primary-rgb), $focus-ring-opacity) !default;
|
||||||
$focus-ring-blur: 0 !default;
|
$focus-ring-blur: 0 !default;
|
||||||
$focus-ring-border-color: rgba(var(--#{$prefix}primary-rgb), 50%) !default;
|
|
||||||
$focus-ring-box-shadow: 0 0 $focus-ring-blur $focus-ring-width $focus-ring-color !default;
|
|
||||||
|
|
||||||
// Transitions
|
// Transitions
|
||||||
$transition-time: 0.3s !default;
|
$transition-time: 0.3s !default;
|
||||||
|
|||||||
@@ -60,9 +60,9 @@
|
|||||||
|
|
||||||
@mixin focus-ring($show-border: false) {
|
@mixin focus-ring($show-border: false) {
|
||||||
outline: 0;
|
outline: 0;
|
||||||
box-shadow: $focus-ring-box-shadow;
|
box-shadow: 0 0 $focus-ring-blur $focus-ring-width rgba(var(--tblr-primary-rgb), 0.25);
|
||||||
|
|
||||||
@if($show-border) {
|
@if($show-border) {
|
||||||
border-color: $focus-ring-border-color;
|
border-color: rgba(var(--tblr-primary-rgb), 0.25);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
Reference in New Issue
Block a user