Fix text selection in budget heading
The `inverted-selection` rules defined in the `%brand-background` selector weren't being applied because we were using this selector in `::before` and `::after` pseudoelements. Not sure about the reason, but it looks like the saturation of `::after::selection` pseudoelements resulted in invalid selectors and so the inverted selection rules were ignored for every selection using `%brand-background`, like `%budget-header`. Using `@include brand-background` instead of `@extend %brand-background` in pseudoelements solves the issue. The inverted selection might not work in these pseudoelements, but we don't need it there since these pseudoelements don't have content.
This commit is contained in:
@@ -13,7 +13,7 @@
|
|||||||
text-transform: uppercase;
|
text-transform: uppercase;
|
||||||
|
|
||||||
&::before {
|
&::before {
|
||||||
@extend %brand-background;
|
@include brand-background;
|
||||||
border-radius: 50%;
|
border-radius: 50%;
|
||||||
content: "";
|
content: "";
|
||||||
height: 20px;
|
height: 20px;
|
||||||
|
|||||||
@@ -4,7 +4,7 @@
|
|||||||
position: relative;
|
position: relative;
|
||||||
|
|
||||||
&::after {
|
&::after {
|
||||||
@extend %brand-background;
|
@include brand-background;
|
||||||
bottom: 0;
|
bottom: 0;
|
||||||
content: "";
|
content: "";
|
||||||
height: rem-calc(6);
|
height: rem-calc(6);
|
||||||
|
|||||||
Reference in New Issue
Block a user