Automattic / wp-calypso

The JavaScript and API powered WordPress.com
https://developer.wordpress.com
GNU General Public License v2.0
12.41k stars 1.99k forks source link

Contact form on RTL languages come out with a messed up layout. #86808

Open OmarFPG opened 9 months ago

OmarFPG commented 9 months ago

Quick summary

Contact forms on sites with RTL languages such as Arabic or Hebrew have an off layout.,

Steps to reproduce

Set your site in an RTL language Add a contact form block and publish it See the results in the front end

What you expected to happen

The form should look good and properly layed out.be properly laid

What actually happened

Mess up layout, for instance: image

Impact

Some (< 50%)

Available workarounds?

Yes, difficult to implement

Platform (Simple and/or Atomic)

No response

Logs or notes

Reported in 7632662-zen and 7559212-zen

github-actions[bot] commented 9 months ago

Support References

This comment is automatically generated. Please do not edit it.

rickmgithub commented 9 months ago

📌 REPRODUCTION RESULTS

📌 ACTIONS

Message to author

Thanks so much for the report @OmarFPG I couldn't replicate the issue by adding a contact form to a simple and atomic site. Looking at the screenshot it looks like this might be something to do with the theme maybe or the combination of blocks? If you have more info on how to replicate this then feel free to reopen this.

filipanoscampos commented 7 months ago

Reopening this issue as I was able to reproduce it with the Twenty Twenty-Four theme, which is also what the user is using.

Here is how the form is looking on my site when I change to Arabic:

Screenshot 2024-03-23 at 15 48 41

And when I switch back to English: Screenshot 2024-03-23 at 15 50 21

With the help of the CSS inspector, we can see that the items are missing all styling : Screenshot 2024-03-23 at 15 52 25

The correctly formatted form: Screenshot 2024-03-23 at 15 52 55

jp-imagines commented 7 months ago

There's an open issue about this with more info here too: https://github.com/Automattic/i18n-issues/issues/612

dolgelukkig commented 7 months ago

user reported the issue here 8009203-zen , work around was creating the form manually.

pauljacobson commented 5 months ago

We have another report of this issue here: 8244052-zen

I tried applying a Custom CSS solution that was suggested here: 612-gh-Automattic/i18n-issues#issuecomment-2028789128 but this doesn't work with these elements.