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

[4.x] Add tailwind safelist with horizontal margins and padding #9864

Merged
merged 3 commits into from
Apr 11, 2024

Conversation

jasonvarga
Copy link
Member

@jasonvarga jasonvarga commented Apr 11, 2024

Since adding support for RTL in #9447, horizontal margin classes aren't used without a text direction prefix (e.g. ltr:mr-3), which means classes like mr-3 get purged out of the css. Addons that were relying on these classes have become slightly unstyled.

Adding this safelist brings back those classes for addons.

It's probably a good idea for addons to adapt to the ltr/rtl styling at some point anyway, but that shouldn't need to happen in a minor release.

@jasonvarga jasonvarga changed the title [4.x] Add tailwind safelist with horizontal margins [4.x] Add tailwind safelist with horizontal margins and padding Apr 11, 2024
@jasonvarga jasonvarga merged commit 50dc79b into 4.x Apr 11, 2024
36 checks passed
@jasonvarga jasonvarga deleted the tailwind-safelist branch April 11, 2024 15:26
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

Successfully merging this pull request may close these issues.

1 participant