Skip to content

Commit bbd8bad

Browse files
a1rwulfSub6Resources
authored andcommitted
fix: underline of colored links is in the wrong color
If you have a link with a color style, the expectation is that the underline of the link is the same color, hence we need to implicitly set the text decoration color as well, when we apply the text color.
1 parent 04772de commit bbd8bad

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/src/css_parser.dart

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -292,7 +292,7 @@ Style declarationsToStyle(Map<String, List<css.Expression>> declarations) {
292292
style.border = newBorder;
293293
break;
294294
case 'color':
295-
style.color =
295+
style.color = style.textDecorationColor =
296296
ExpressionMapping.expressionToColor(value.first) ?? style.color;
297297
break;
298298
case 'direction':

0 commit comments

Comments
 (0)