Skip to content

Media & Text block RTL display does not honor left/right position #20123

Closed

Description

@webmandesign

Description

When displaying Media & Text block on RTL language website, the .wp-block-media-text.has-media-on-the-right displays the media on left and text on right. This is because the block uses CSS grid layout, which honors the RTL language direction. However, as we are setting the layout to "left" or "right" is should actually honor the physical direction, which is the same in every language.

Steps to reproduce

  1. Insert a Media & Text block into a post and set it to display the image/media on right.
  2. Preview the result on back-end/front-end for LTR language and then switch to RTL language (or use https://wordpress.org/plugins/rtl-tester/ plugin).

Expected behavior

Both LTR and RTL layouts should be identical regardless the language direction.

Screenshots

Activity

  1. webmandesign commented on Feb 9, 2020

    @webmandesign
    ContributorAuthor

    Oh, sorry for the ticket, this was fixed by pull request #18764
    I must have been previewing an older version of the SASS file!

  2. webmandesign commented on Feb 9, 2020

    @webmandesign
    ContributorAuthor

    However, somehow related it a pull request #20125 that I've just submitted.

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

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions