Skip to content

Dark/Light Mode Toggle Not Working on Add Blog Post Page #368

@naitik2004

Description

@naitik2004

Description

The theme toggle button (sun/moon icon) in the navigation bar is not functioning properly when users are on the "Add New Blog Post" page. Clicking the toggle does not switch between dark and light modes.
Steps to Reproduce

Navigate to the "Add Blog Post" page
Click on the theme toggle button (sun/moon icon) in the top right corner
Observe that the theme does not change

Expected Behavior

Clicking the toggle should switch between dark and light modes
The theme preference should persist across page navigation
All form elements should properly adapt to the selected theme

Actual Behavior

The toggle button does not trigger any theme change on the Add Blog Post page
Possible Causes

Event listener not attached to the toggle button
Theme switching logic not applied to this specific page
CSS classes for dark mode not defined for form elements
JavaScript not loaded or executed properly on this page

###Tags
hacktoberfest

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions