Skip to content

Commit 15522eb

Browse files
committed
Unit tests for #644 coming out from real life compiling of BS4
1 parent bee3129 commit 15522eb

File tree

3 files changed

+46
-1
lines changed

3 files changed

+46
-1
lines changed

tests/inputs/at_root.scss

Lines changed: 19 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -152,4 +152,22 @@ $table-padding: 10px !default;
152152
@at-root a#{&} {
153153
text-decoration: none;
154154
}
155-
}
155+
}
156+
157+
@mixin badge-variant($bg) {
158+
background-color: $bg;
159+
160+
@at-root a#{&} {
161+
&:focus,
162+
&.focus {
163+
outline: 0;
164+
}
165+
}
166+
}
167+
168+
.badge-primary {
169+
@include badge-variant(blue);
170+
}
171+
.badge-secondary {
172+
@include badge-variant(yellow);
173+
}

tests/outputs/at_root.css

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -92,3 +92,14 @@ body .second {
9292
a.badge {
9393
text-decoration: none; }
9494

95+
96+
.badge-primary {
97+
background-color: blue; }
98+
a.badge-primary:focus, a.badge-primary.focus {
99+
outline: 0; }
100+
101+
.badge-secondary {
102+
background-color: yellow; }
103+
a.badge-secondary:focus, a.badge-secondary.focus {
104+
outline: 0; }
105+

tests/outputs_numbered/at_root.css

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -118,3 +118,19 @@ tbody {
118118
a.badge {
119119
text-decoration: none; }
120120

121+
/* line 168, inputs/at_root.scss */
122+
.badge-primary {
123+
background-color: blue; }
124+
/* line 160, inputs/at_root.scss */
125+
/* line 161, inputs/at_root.scss */
126+
a.badge-primary:focus, a.badge-primary.focus {
127+
outline: 0; }
128+
129+
/* line 171, inputs/at_root.scss */
130+
.badge-secondary {
131+
background-color: yellow; }
132+
/* line 160, inputs/at_root.scss */
133+
/* line 161, inputs/at_root.scss */
134+
a.badge-secondary:focus, a.badge-secondary.focus {
135+
outline: 0; }
136+

0 commit comments

Comments
 (0)