Skip to content

Updated tailwind import behavior#2776

Open
girishpanchal30 wants to merge 1 commit intodevelopmentfrom
bugfix/otter-internal/271
Open

Updated tailwind import behavior#2776
girishpanchal30 wants to merge 1 commit intodevelopmentfrom
bugfix/otter-internal/271

Conversation

@girishpanchal30
Copy link
Copy Markdown
Contributor

Closes https://github.com/Codeinwp/otter-internals/issues/271

Summary

Adjusted Tailwind import behavior to avoid aggressive style overrides and ensure better compatibility with existing styles.

Checklist before the final review

  • Included E2E or unit tests for the changes in this PR.
  • Visual elements are not affected by independent changes.
  • It is at least compatible with the minimum WordPress version.
  • It loads additional script in frontend only if it is required.
  • Does not impact the Core Web Vitals.
  • In case of deprecation, old blocks are safely migrated.
  • It is usable in Widgets and FSE.
  • Copy/Paste is working if the attributes are modified.
  • PR is following the best practices

@girishpanchal30 girishpanchal30 requested a review from Copilot April 16, 2026 10:51
@girishpanchal30 girishpanchal30 added the pr-checklist-skip Allow this Pull Request to skip checklist. label Apr 16, 2026
@pirate-bot pirate-bot added the pr-checklist-complete The Pull Request checklist is complete. (automatic label) label Apr 16, 2026
@selul selul requested a review from abaicus April 16, 2026 10:53
Copy link
Copy Markdown

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

Adjusts Atomic Wind’s Tailwind compilation entrypoint to reduce unintended style precedence and improve compatibility with existing site styles.

Changes:

  • Removes the important modifier from the Tailwind @import used by the in-browser Tailwind compiler.

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

@selul
Copy link
Copy Markdown
Contributor

selul commented Apr 16, 2026

@girishpanchal30 I dont think this is the rigth solution, this might break some other stuff, will leave @abaicus to evaluate it

@pirate-bot
Copy link
Copy Markdown
Contributor

Bundle Size Diff

Package Old Size New Size Diff
Animations 276.77 KB 276.77 KB 0 B (0.00%)
Blocks 1.55 MB 1.55 MB 0 B (0.00%)
CSS 105.9 KB 105.9 KB 0 B (0.00%)
Dashboard 204.08 KB 204.08 KB 0 B (0.00%)
Onboarding 165.94 KB 165.94 KB 0 B (0.00%)
Export Import 102.86 KB 102.86 KB 0 B (0.00%)
Pro 412.55 KB 412.55 KB 0 B (0.00%)

@pirate-bot
Copy link
Copy Markdown
Contributor

Plugin build for 71f82d0 is ready 🛎️!

@pirate-bot
Copy link
Copy Markdown
Contributor

E2E Tests

Playwright Test Status:

Performance Results serverResponse: {"q25":359.9,"q50":364.85,"q75":393.5,"cnt":10}, firstPaint: {"q25":381,"q50":437.05,"q75":468.3,"cnt":10}, domContentLoaded: {"q25":1590,"q50":1605.25,"q75":1614,"cnt":10}, loaded: {"q25":1590.4,"q50":1605.55,"q75":1614.6,"cnt":10}, firstContentfulPaint: {"q25":3266,"q50":3282.25,"q75":3292.3,"cnt":10}, firstBlock: {"q25":6532,"q50":6607.4,"q75":6673.8,"cnt":10}, type: {"q25":13.42,"q50":13.89,"q75":14.63,"cnt":10}, typeWithoutInspector: {"q25":12.3,"q50":12.45,"q75":13.8,"cnt":10}, typeWithTopToolbar: {"q25":16.18,"q50":16.61,"q75":17.45,"cnt":10}, typeContainer: {"q25":7.44,"q50":7.66,"q75":8.62,"cnt":10}, focus: {"q25":54.76,"q50":57.97,"q75":61.33,"cnt":10}, inserterOpen: {"q25":16.77,"q50":17.39,"q75":17.78,"cnt":10}, inserterSearch: {"q25":5.84,"q50":5.97,"q75":6.06,"cnt":10}, inserterHover: {"q25":3.15,"q50":3.24,"q75":3.56,"cnt":20}, loadPatterns: {"q25":1031.8,"q50":1082.91,"q75":1115.59,"cnt":10}, listViewOpen: {"q25":89.71,"q50":92.24,"q75":95.75,"cnt":10}

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

pr-checklist-complete The Pull Request checklist is complete. (automatic label) pr-checklist-skip Allow this Pull Request to skip checklist.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants