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:
Javi Martín
2023-06-29 14:20:19 +02:00
parent 59d260c891
commit 68927409b6
2 changed files with 2 additions and 2 deletions

View File

@@ -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;

View File

@@ -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);