Skip to content

Commit

Permalink
fix(css): rename $prefix in $func-prefix in `get-color-from-rgba-…
Browse files Browse the repository at this point in the history
…string` function (#1567)
  • Loading branch information
julien-deramond authored Oct 24, 2022
1 parent a163d5d commit d44ea6a
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions scss/mixins/_utilities.scss
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
// Boosted mod
@function get-color-from-rgba-string($value) {
$prefix: "rgba(var(--bs-";
$rgba-string-index-before-color-name: str-index($value, $prefix);
$func-prefix: "rgba(var(--bs-";
$rgba-string-index-before-color-name: str-index($value, $func-prefix);
@if $rgba-string-index-before-color-name == 1 {
$rgba-string-index-after-color-name: str-index($value, "-rgb");
@return str-slice($value, $rgba-string-index-before-color-name + str-length($prefix), $rgba-string-index-after-color-name - 1);
@return str-slice($value, $rgba-string-index-before-color-name + str-length($func-prefix), $rgba-string-index-after-color-name - 1);
}
@return undefined;
}
Expand Down

0 comments on commit d44ea6a

Please sign in to comment.