CodeBeam.MudBlazor.Extensions icon indicating copy to clipboard operation
CodeBeam.MudBlazor.Extensions copied to clipboard

MudTextFieldExtended has unexpected adornment margin when AdornmentStart is null

Open Snicklebot opened this issue 1 year ago • 0 comments
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. image Here is the CSS for the above example: image

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. image

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, image

Snicklebot avatar Aug 06 '24 22:08 Snicklebot