CodeBeam.MudBlazor.Extensions
CodeBeam.MudBlazor.Extensions copied to clipboard
MudTextFieldExtended has unexpected adornment margin when AdornmentStart is null
trafficstars
As seen in example below, a 16px margin-inline-start is being applied to the input slot div even when there is no content provided for AdornmentStart.
Here is the CSS for the above example:
Looking at the code for MudInputExtended, I see that ms-4 is being appended when AdornmentStart is not null and the variant is Variant.Text, which is the expected behavior.
However, because of the way the AdornmentStart and AdornmentEnd render fragments are being passed from MudTextFieldExtended, the wrapped input will always have a non-null render fragment,