Skip to content

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

Description

@NateWr

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.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions