Apologies for the confusing title, but I must confess that I am unsure if there are more appropriate terms to explain what I am attempting to achieve. To provide clarity, I have included an image (as they say, a picture is worth a thousand words)
https://i.stack.imgur.com/y3qxi.png
The goal is to create the cyan box as illustrated in the image. Hopefully, the visual aid clarifies the concept.
RESOLVED
Following Kees van Lierop's solution, I implemented the following code:
&__label {
@include span-columns(6);
margin-top: 4rem;
background-color: rgba($color-secondary, 0.5);
color: white;
padding: $base-padding;
position: relative;
&::before {
content: "";
display: block;
position: absolute;
top: 0;
right: 100%;
width: 9999px;
height: 100%;
background-color: inherit;
}
}
As a result, I achieved the desired outcome: