Skip to content

[Bug] Duration modal in TaskPreview component not styled for dark mode #1607

@NikithaDineshKumar

Description

@NikithaDineshKumar

Problem

In frontend/src/components/Dashboard/TaskPreview.jsx, the
"Complete Task" duration modal uses hardcoded light mode colors:

  • bg-white for the modal background
  • text-black for text

This makes the modal appear with a jarring white background
when the app is in dark mode, inconsistent with the rest of the UI.

Expected Behavior

The modal should use theme-aware classes like bg-(--surface)
and text-main to support both light and dark modes, consistent
with other modals in the app.

Files to Change

  • frontend/src/components/Dashboard/TaskPreview.jsx

Labels

bug, frontend, good first issue

@aryandas2911 I would like to work on this. Could you please
assign it to me?

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't workingfrontendIssues related to UI/UXgood first issueGood for newcomers

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions