scale-color $lightness must use $secondary for dark themes#7
Conversation
|
Claude finished @ShashankFC's task in 2m 17s —— View job PR ReviewReviewing the changes to ensure scale-color $lightness correctly uses $secondary for dark themes. Todo List
Review SummaryThis PR systematically updates 32 SCSS files to ensure that ✅ What's Working Well
🔍 Issues Found1. Inconsistent Lightness Inversion (app/assets/stylesheets/common/admin/admin_base.scss:506)Location: color: dark-light-choose(scale-color($primary, $lightness: 40%), scale-color($secondary, $lightness: 60%));Issue: The dark theme value should be Expected Pattern: 2. Edge Case: Neutral 50% ValuesLocations: Multiple files (e.g., color: dark-light-choose(scale-color($primary, $lightness: 50%), scale-color($secondary, $lightness: 50%));Observation: When lightness is 50%, both light and dark themes use the same percentage. This is mathematically neutral but may not provide optimal contrast in both themes. Status: 3. Potential Oversight: Missing Category Badge UpdateLocation: .category .badge-notification {
background-color:transparent;
color: scale-color($primary, $lightness: 50%);
}Issue: This line still uses the old pattern without Impact: Category badge notifications may not render correctly in dark themes. Fix: Should be updated to: color: dark-light-choose(scale-color($primary, $lightness: 50%), scale-color($secondary, $lightness: 50%));4. Another Missed Instance: Unseen TopicsLocation: .unseen {
background-color: transparent;
padding: 0;
border: 0;
color: scale-color($danger, $lightness: 20%);
font-size: 0.929em;
cursor: default;
}Observation: This uses Status: 5. Selected Posts Button Still Uses Old PatternLocation: .btn {
border: none;
color: $secondary;
font-weight: normal;
margin-bottom: 10px;
background: scale-color($tertiary, $lightness: 50%);
&:hover {
color: $secondary;
background: scale-color($tertiary, $lightness: 20%);
}Issue: Uses Status: 📊 Statistics
🎯 Recommendations
VerdictOverall Assessment: ✅ Approve with minor fixes recommended The PR successfully addresses the core issue of making |
Test 7nn---nReplicated from ai-code-review-evaluation/discourse-greptile#7