Skip to content

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

Merged
jasonvarga merged 3 commits into
4.xfrom
tailwind-safelist
Apr 11, 2024
Merged

[4.x] Add tailwind safelist with horizontal margins and padding#9864
jasonvarga merged 3 commits into
4.xfrom
tailwind-safelist

Conversation

@jasonvarga

@jasonvarga jasonvarga commented Apr 11, 2024

Copy link
Copy Markdown
Member

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
@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