Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

text-align on v-modal causes problems in RTL languages #784

Open
NateWr opened this issue Oct 6, 2022 · 0 comments
Open

text-align on v-modal causes problems in RTL languages #784

NateWr opened this issue Oct 6, 2022 · 0 comments

Comments

@NateWr
Copy link

NateWr commented Oct 6, 2022

Problem:

When using a right-to-left language, like Arabic, text should flow from the right of the screen to the left. However, the modal has a CSS rule that applies text-align: left which cascades to the content inside of the modal.

Version:

1.3.35

Example & screenshots:

The CSS rule that causes the problem is:

.v--modal {
  text-align: left;
}

In the screenshot below, you can see how it is effecting a page with <body dir="rtl">. (The <input> options should start on the right.)

v-modal-align-left

In the screenshot below, I fixed this by adding .v--modal.v--modal { text-align: unset; } to my own code.

v-modal-align-none

I have checked stackoverflow for solutions and 100% sure that this issue is not not related to my code.

This CSS rule can be seen in effect on the demo site.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant