-
-
Notifications
You must be signed in to change notification settings - Fork 3.2k
fix: The headless template included inline CSS #8291
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
Conversation
Reviewer's GuideThis PR extracts inline CSS from the headless placeholder template into a new external SASS stylesheet and updates the template to load it via static_with_version for CSP compliance. Class diagram for template and static asset changesclassDiagram
class PlaceholderTemplate {
- inline CSS (removed)
+ link to external stylesheet (cms.headless.css)
}
class cms.headless.css {
+ CSS rules (moved from template)
}
PlaceholderTemplate --> "1" cms.headless.css : loads stylesheet
File-Level Changes
Tips and commandsInteracting with Sourcery
Customizing Your ExperienceAccess your dashboard to:
Getting Help
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Codecov ReportAll modified and coverable lines are covered by tests ✅
Additional details and impacted files@@ Coverage Diff @@
## main #8291 +/- ##
=======================================
Coverage 89.59% 89.59%
=======================================
Files 129 129
Lines 12691 12691
=======================================
Hits 11370 11370
Misses 1321 1321 ☔ View full report in Codecov by Sentry. 🚀 New features to boost your workflow:
|
Description
This PR removes inline css which was included in the headless template - as required by many CSP.
Related resources
Checklist
main
Summary by Sourcery
Remove inline CSS from the headless placeholder template and load it from an external stylesheet
Bug Fixes:
Enhancements:
Build: