[chores] Use theme color variables instead of hardcoded values #661#701
Conversation
|
No actionable comments were generated in the recent review. 🎉 ℹ️ Recent review info⚙️ Run configurationConfiguration used: Organization UI Review profile: ASSERTIVE Plan: Pro Run ID: 📒 Files selected for processing (3)
💤 Files with no reviewable changes (2)
📜 Recent review details⏰ Context from checks skipped due to timeout of 90000ms. You can increase the timeout in your CodeRabbit configuration to a maximum of 15 minutes (900000ms). (12)
🔇 Additional comments (1)
📝 WalkthroughWalkthroughThis pull request refactors CSS color styling across three files to align with the OpenWISP theme variables initiative. The changes replace hardcoded color values with CSS custom properties from openwisp-utils: Estimated code review effort🎯 2 (Simple) | ⏱️ ~8 minutes 🚥 Pre-merge checks | ✅ 5✅ Passed checks (5 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 |
7b03dbb to
73f7098
Compare
…sp#661 Refactor hardcoded color values in CSS files and templates to use the CSS variables introduced in openwisp-utils#516. Closes openwisp#661
73f7098 to
02cee4a
Compare
| .form-row.field-username label { | ||
| font-weight: bold; | ||
| color: #333; | ||
| color: var(--ow-color-fg-darker, #333); |
| .field-number_of_users label { | ||
| font-weight: bold; | ||
| color: #000; | ||
| color: var(--ow-color-black, #000); |
| table th { font-weight: bold } | ||
| table th, table td { | ||
| border: 1px solid #ccc; | ||
| border: 1px solid var(--ow-color-fg-medium, #ccc); |
There was a problem hiding this comment.
the var won't work here, this is used only for PDF generation
Code Review SummaryStatus: No Critical Issues Found | Recommendation: Address existing maintainer comments, then merge The PR successfully replaces hardcoded colors with CSS theme variables as intended. The changes are clean and focused on issue #661. Changes Reviewed
Existing Maintainer Comments@nemesifier has already provided review feedback on 3 items which appear to have been addressed in the latest commit:
Files Reviewed (4 files)
Note: This review focused on critical bugs and security issues only. No blocking issues found. Reviewed by kimi-k2.5-0127 · 96,135 tokens |
Replace hardcoded colors in CSS files and templates with the CSS variables introduced in openwisp-utils#516 to ensure unified theming and simplify future palette updates.
Checklist
Reference to Existing Issue
Closes #661 .