Skip to content

MudText: Handle empty HtmlTag as null#9576

Merged
ScarletKuro merged 1 commit intoMudBlazor:devfrom
danielchalmers:htmltag-empty
Aug 7, 2024
Merged

MudText: Handle empty HtmlTag as null#9576
ScarletKuro merged 1 commit intoMudBlazor:devfrom
danielchalmers:htmltag-empty

Conversation

@danielchalmers
Copy link
Member

Description

Resolves #9575.

Avoids a simple pitfall where someone sets HtmlTag="" and expects it to be the same as not defining it at all.

We let whitespace fail (HtmlTag=" ") because that is a distinct value and is unlikely to be accidentally added.

How Has This Been Tested?

unit

Type of Changes

  • Bug fix (non-breaking change which fixes an issue)
  • New feature (non-breaking change which adds functionality)
  • Breaking change (fix or feature that would cause existing functionality to not work as expected)
  • Documentation (fix or improvement to the website or code docs)

Checklist

  • The PR is submitted to the correct branch (dev).
  • My code follows the code style of this project.
  • I've added relevant tests.

@github-actions github-actions bot added bug Unexpected behavior or functionality not working as intended PR: needs review labels Aug 7, 2024
@codecov
Copy link

codecov bot commented Aug 7, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 90.58%. Comparing base (28bc599) to head (a93e361).
Report is 412 commits behind head on dev.

Additional details and impacted files
@@            Coverage Diff             @@
##              dev    #9576      +/-   ##
==========================================
+ Coverage   89.82%   90.58%   +0.75%     
==========================================
  Files         412      406       -6     
  Lines       11878    12749     +871     
  Branches     2364     2472     +108     
==========================================
+ Hits        10670    11549     +879     
+ Misses        681      640      -41     
- Partials      527      560      +33     

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

bug Unexpected behavior or functionality not working as intended

Projects

None yet

Development

Successfully merging this pull request may close these issues.

MudText component with empty HtmlTag

2 participants