Skip to content

Commit b078459

Browse files
committed
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 d8c0465 commit b078459

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
@@ -294,7 +294,7 @@ Style declarationsToStyle(Map<String, List<css.Expression>> declarations) {
294294
style.border = newBorder;
295295
break;
296296
case 'color':
297-
style.color =
297+
style.color = style.textDecorationColor =
298298
ExpressionMapping.expressionToColor(value.first) ?? style.color;
299299
break;
300300
case 'direction':

0 commit comments

Comments
 (0)