Skip to content

Commit

Permalink
refactor(mixins/color): update functions location, change parameter `…
Browse files Browse the repository at this point in the history
…$hexColor` to `$hex-color` in the `bg-color-variant` mixin and add `!important` to the `color()` function in the `text-color-variant()` mixin.
  • Loading branch information
sciborrudnicki committed May 27, 2022
1 parent e9bb18b commit 03713ee
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions src/mixins/_color.scss
Original file line number Diff line number Diff line change
@@ -1,11 +1,11 @@
@use '../function/css-variable-color' as *;
@use '../functions' as *;
@use '../variables' as *;

// Background color utility mixin
@mixin bg-color-variant(
$name: '.bg-primary',
$color: 'primary-color',
$hexColor: $primary-color
$hex-color: $primary-color
) {
#{$name} {
// background: $color !important; // old spectre.
Expand All @@ -15,7 +15,7 @@
// @if (lightness($color) < 60) {
// color: $light-color;
// }
@if (lightness($hexColor) < 60) {
@if (lightness($hex-color) < 60) {
color: color('light-color');
}
}
Expand All @@ -25,7 +25,7 @@
@mixin text-color-variant($name: '.text-primary', $color: 'primary-color') {
#{$name} {
// color: $color !important; // old spectre.
color: color($color);
color: color($color) !important;
}

a#{$name} {
Expand Down

0 comments on commit 03713ee

Please sign in to comment.