Skip to content

MudAlert: Change default content alignment to Start - #13213

Merged
danielchalmers merged 2 commits into
MudBlazor:devfrom
omarkurtovic:fix/mudalert-rtl-alignment
May 15, 2026
Merged

danielchalmers merged 2 commits into
MudBlazor:devfrom
omarkurtovic:fix/mudalert-rtl-alignment

Conversation

@omarkurtovic

Copy link
Copy Markdown
Contributor

Closes #13210

The default ContentAlignment was breaking the content alignment of the MudAlert component when Right-to-Left mode was enabled.

The default value of HorizontalAlignment.Left would force the content to stick to the physical left side, which fights the browser's native document flow and doesn't make sense for Right-to-Left Mode.

Changing the default value to HorizontalAlignment.Start fixes this issue in RTL mode and preserves the exact same, correct functionality when normal LTR mode is enabled.

Below are some screenshots of the behavior in RTL and normal mode.

image image

Checklist:

  • I've read the contribution guidelines
  • My code follows the style of this project
  • I've added or updated relevant unit tests

@mudbot mudbot Bot added bug Unexpected behavior or functionality not working as intended localization Translations, locale formats, RTL layout, calendars labels May 15, 2026
@danielchalmers
danielchalmers merged commit 83242e2 into MudBlazor:dev May 15, 2026
12 checks passed
@danielchalmers

Copy link
Copy Markdown
Member

Thank you!

This was referenced May 26, 2026
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 localization Translations, locale formats, RTL layout, calendars

Projects

None yet

Development

Successfully merging this pull request may close these issues.

The alert component is not right-aligned in RTL mode.

2 participants