Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix text decorations #1448

Merged
merged 5 commits into from
Mar 12, 2025
Merged

Conversation

a1rwulf
Copy link
Contributor

@a1rwulf a1rwulf commented Nov 23, 2024

Fix a bunch of text decoration related regressions.

Copy link

codecov bot commented Mar 11, 2025

Codecov Report

Attention: Patch coverage is 72.72727% with 3 lines in your changes missing coverage. Please review.

Project coverage is 64.05%. Comparing base (d46cfde) to head (09418a6).
Report is 1 commits behind head on master.

Files with missing lines Patch % Lines
lib/src/builtins/styled_element_builtin.dart 57.14% 3 Missing ⚠️
Additional details and impacted files
@@           Coverage Diff           @@
##           master    #1448   +/-   ##
=======================================
  Coverage   64.04%   64.05%           
=======================================
  Files          39       39           
  Lines        3026     3035    +9     
=======================================
+ Hits         1938     1944    +6     
- Misses       1088     1091    +3     

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

a1rwulf and others added 5 commits March 12, 2025 15:16
We need to explicitly set the underline color to the same
blue as we set the text.

fixes: Sub6Resources#1414

We need to explicitly set the text decoration color.
Cascade text decoration attributes color, thickness and
style in addition to the textdecoration itself.

fixes: Sub6Resources#1361
When you use a "u" html tag, you expect the underline to match
the textcolor.
Therefore we need to get the style of the child element and use
it's color if it exists.
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.
@Sub6Resources Sub6Resources merged commit c182a31 into Sub6Resources:master Mar 12, 2025
3 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants