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

Tools: Add RTLCSS step to theme build process #53

Merged
merged 3 commits into from
May 9, 2024
Merged

Conversation

ryelle
Copy link
Collaborator

@ryelle ryelle commented May 9, 2024

This PR adds RTLCSS to the webpack build process (which requires a custom webpack.config.js, but we can inherit most of the configuration). This also fixes an issue with ratings on RTL sites.

Fixes #47, See WordPress/wporg-main-2022#124

Screenshots

Before After
Screenshot 2024-05-01 at 4 21 29 PM Screenshot 2024-05-09 at 2 55 55 PM

How to test the changes in this Pull Request:

  1. Update the packages with yarn
  2. Run yarn build:theme
  3. You should see -rtl.css files in the build output & build folder
  4. View a single theme on an RTL site (using a sandbox)
  5. The rating bar and stars should be appropriately RTL too

@ryelle ryelle self-assigned this May 9, 2024
@ryelle ryelle added [Component] Theme Templates, patterns, CSS [Component] Tools Build tools, packages, etc labels May 9, 2024
@ryelle
Copy link
Collaborator Author

ryelle commented May 9, 2024

Note that I added a PR to wp-scripts to add RTLCSS there. I'm still going to merge this since I don't know how quickly that would make it through, but maybe we'll be able to remove it in a few weeks 🤞🏻

@ryelle ryelle merged commit a89dca1 into trunk May 9, 2024
@ryelle ryelle deleted the add/rtl-config-fixes branch May 9, 2024 19:58
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
[Component] Theme Templates, patterns, CSS [Component] Tools Build tools, packages, etc
Projects
Archived in project
Development

Successfully merging this pull request may close these issues.

Single theme: Ratings breakdown buggy on Rosetta sites
1 participant