We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent ac340c9 commit 6d2d858Copy full SHA for 6d2d858
pkg/web_css/test/color_expressions_test.dart
@@ -16,7 +16,6 @@ const _colors = {
16
17
void main() {
18
group('Color restrictions and rules', () {
19
- // TODO(https://github.com/dart-lang/pub-dev/issues/8248): comment in once issue is resolved.
20
test('text and bg colors are only defined in _variables.scss', () {
21
final files = Directory('lib')
22
.listSync(recursive: true)
@@ -85,7 +84,8 @@ void main() {
85
84
value.contains('rgb(') ||
86
value.contains('rgba(') ||
87
value.contains('hsl(') ||
88
- _colors.any((c) => value.contains(c));
+ (_colors.any((c) => value.contains(c)) &&
+ !value.contains('var(--pub-color-'));
89
if (!hasColor) continue;
90
91
badExpressions.add('${file.path} line #${i + 1}: `${expr.trim()}`');
0 commit comments