masmerise / livewire-toaster

Beautiful toast notifications for Laravel / Livewire.
MIT License
342 stars 22 forks source link

RTL Language Alignment Issue with Toast Messages #13

Closed codenashwan closed 11 months ago

codenashwan commented 11 months ago

When my website is in Arabic or any RTL (Right-to-Left) language, the toast messages are displayed correctly, but the text alignment remains on the left side instead of aligning to the right as expected. This misalignment disrupts the user experience and readability for RTL language users.

I believe this issue could be resolved by implementing proper RTL support for toast messages in the package. It would greatly enhance the usability of the "livewire-toaster" package for websites with RTL language content.

I kindly request that you consider addressing this concern and implementing a fix to ensure that toast messages align correctly for RTL languages. If there are any workarounds or suggestions you may have in the meantime, I would greatly appreciate your guidance.

Thank you for your attention to this matter, and I look forward to your response.

Screenshot 2023-07-18 at 2 45 02 AM

o your response.

mabdullahsari commented 11 months ago

I'll try to take a look at this sometime this week. If you need this asap, you can publish the blade view and swap the text-left and text-right classes in order to "support" RTL text temporarily. For this, please refer to View customization.

سلام

mabdullahsari commented 11 months ago

@codenashwan It can stay open. I'll add native RTL support within the library itself. 👍

mabdullahsari commented 11 months ago

Lol, ok then. I'm not adding any RTL support.

Edit for future readers: guy plugged another package as a "fix" then deleted it even though I've provided instantaneous replies. If you need RTL support, feel free to post under this issue and I'll reconsider it. At this time, I'm not adding it due to his pretty demeaning behavior.

image

mabdullahsari commented 11 months ago

RTL has been added with release 1.3.0