fix(css): admin page body class and CSS config fixes#175
fix(css): admin page body class and CSS config fixes#175parhumm merged 4 commits intodevelopmentfrom
Conversation
…e conflicts Rename the two-class selector .wrap.slimstat to a single .wrap-slimstat class across all admin views and SCSS to prevent WordPress core .wrap styles from interfering with SlimStat config page layout.
Register admin_body_class filter via load-{hook} actions so the class
is only appended on Slimstat pages, with zero overhead on other screens.
|
Caution Review failedPull request was closed or merged during review 📝 WalkthroughWalkthroughThis pull request refactors the CSS class naming convention from separate "wrap slimstat" classes to a unified "wrap-slimstat" hyphenated class across all admin pages and stylesheets. It also introduces a new public method to register admin body class filtering for SlimStat admin pages. Changes
Estimated code review effort🎯 3 (Moderate) | ⏱️ ~20 minutes Poem
🚥 Pre-merge checks | ✅ 3✅ Passed checks (3 passed)
✏️ Tip: You can configure your own custom pre-merge checks in the settings. ✨ Finishing Touches
🧪 Generate unit tests (beta)
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. Comment |
Summary
.wrap.slimstatwith.wrap-slimstatto avoid WordPress core style conflictsslimstat-admin-pagebody class to all Slimstat admin screens viaadmin_body_classfilteradmin.scsstoadmin.cssTest plan
<body>→ should containslimstat-admin-page.wrapinterferenceSummary by CodeRabbit
Refactor
Style