Browse Source

Add border-opacity variable for improved color utility (#2061)

Paweł Kuna 1 month ago
parent
commit
7aa216f666
2 changed files with 6 additions and 0 deletions
  1. 5 0
      .changeset/four-actors-fix.md
  2. 1 0
      src/scss/utils/_colors.scss

+ 5 - 0
.changeset/four-actors-fix.md

@@ -0,0 +1,5 @@
+---
+"@tabler/core": patch
+---
+
+Add border-opacity variable for improved color utility

+ 1 - 0
src/scss/utils/_colors.scss

@@ -13,6 +13,7 @@
   }
 
   .border-#{"" + $color} {
+    --#{$prefix}border-opacity: 1;
     border-color: rgba(var(--#{$prefix}#{$color}-rgb), var(--#{$prefix}border-opacity)) !important;
   }
 }