Skip to content

Fix: dark mode for teacher views#109

Merged
siscia merged 1 commit into
mainfrom
fix/dark-mode-teacher-views
May 17, 2026
Merged

Fix: dark mode for teacher views#109
siscia merged 1 commit into
mainfrom
fix/dark-mode-teacher-views

Conversation

@siscia
Copy link
Copy Markdown
Member

@siscia siscia commented May 17, 2026

Summary

Fixes dark mode rendering issues in teacher-facing views. The problem was that several templates used hardcoded light-mode colors and Bootstrap utility classes (like bg-white) that were not overridden in the dark mode CSS.

Changes

static/css/main.css

  • Added .bg-white dark mode override (was the most widespread issue — used in submissions, conversations detail pages)
  • Added .card-header.bg-light override to ensure proper dark shading on card headers

src/homeworks/templates/homeworks/matrix.html

  • Added comprehensive @media (prefers-color-scheme: dark) block for all inline styles: matrix borders, sticky cells, summary headers/cells, status colors (submitted/in-progress/not-started/overdue), row hover effects, legend boxes

src/homeworks/templates/homeworks/submissions.html

  • Added dark mode override for .conversations-in-section border color

src/homeworks/templates/homeworks/form.html

  • Added dark mode overrides for .section-form, .widget-form, and .field-hint colors

Testing

  • All 851 tests pass

- Add .bg-white and .card-header.bg-light dark mode overrides to main.css
- Add dark mode media queries to inline styles in matrix.html, submissions.html, form.html
- Fix hardcoded light colors that broke dark mode rendering
@siscia siscia merged commit 999a5c3 into main May 17, 2026
2 of 3 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant