-
-
Notifications
You must be signed in to change notification settings - Fork 3.2k
fix: Remove text decorations in page tree introduced by django 5.2 #8214
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 pull request overrides the default link text decoration introduced in Django 5.2 by adding specific CSS rules with higher specificity in the admin SCSS files. Flow Diagram: CSS Override for Page Tree Link Decorationgraph TD
subgraph ProblemContext["Problem: Unwanted Underlines from Django 5.2"]
DjangoGlobalStyle["Django 5.2 Global Style (`a { text-decoration: underline; }`)"]
PageTreeLinks["Page Tree Links (`<a>` elements)"]
DjangoGlobalStyle -- "Applies to all `<a>` tags" --> PageTreeLinks
PageTreeLinks -- "Results in" --> UnwantedEffect["Unwanted Underline on Page Tree Links"]
end
subgraph PR_Fix["PR Fix: Specific CSS Override"]
PR_SpecificStyle["PR's Added CSS Rules (e.g., `#content-main .cms-pagetree a { text-decoration: none; }`)"]
PR_SpecificStyle -- "Specifically target" --> PageTreeLinks
PR_SpecificStyle -- "Have higher CSS specificity than" --> DjangoGlobalStyle
PageTreeLinks -- "Render with (due to override)" --> DesiredEffect["No Underline on Page Tree Links (Corrected Appearance)"]
end
UnwantedEffect -. "Corrected to" .-> DesiredEffect
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.
Hey @fsbraun - I've reviewed your changes - here's some feedback:
Overall Comments:
- Consider simplifying the CSS selector; repeating
.cms-pagetree
might be unnecessary to achieve the desired specificity.
Here's what I looked at during the review
- 🟢 General issues: all looks good
- 🟢 Security: all looks good
- 🟢 Testing: all looks good
- 🟢 Complexity: all looks good
- 🟢 Documentation: all looks good
Help me be more useful! Please click 👍 or 👎 on each comment and I'll use the feedback to improve your reviews.
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.
Hey @fsbraun - I've reviewed your changes - here's some feedback:
- Consider if the repeated class
.cms-pagetree.cms-pagetree
is necessary for the selector's specificity. - Consider if the repeated class
.btn.btn
is necessary for the selector's specificity.
Here's what I looked at during the review
- 🟢 General issues: all looks good
- 🟢 Security: all looks good
- 🟢 Testing: all looks good
- 🟢 Complexity: all looks good
- 🟢 Documentation: all looks good
Help me be more useful! Please click 👍 or 👎 on each comment and I'll use the feedback to improve your reviews.
…8214) * fix: Remove text decorations in page tree introduced by django 5.2 * Update cms/static/cms/sass/components/pagetree/_tree.scss * Fix: Update action buttons
Description
Django 5.2 introduces a text-decoration underline for all link tags (
<a>
). This PR removes the text-decoration for the page tree.Related resources
Checklist
main
Summary by Sourcery
Bug Fixes:
Summary by Sourcery
Bug Fixes: