MLSAKIIT / devblogs-frontend

DevBlogs : A blogging website made for developers by developers. This repository contains the frontend for the project
MIT License
11 stars 25 forks source link

[Bug]: Dark mode is Not working properly for create New Blog form. #48

Closed viki-777 closed 4 hours ago

viki-777 commented 5 hours ago

bug Description:

In Dark Mode: The input text is not visible due to insufficient contrast between the text color and the background.

In Light Mode: The form background is too dark, making it visually inconsistent and difficult to read the content clearly.

To Reproduce Steps to reproduce the behavior:

  1. Go to 'home'
  2. Click on 'create Blog' 3.Click on 'dark mode'
  3. See error

Expected behavior In Dark Mode, input text should have a lighter color to ensure readability against the dark background.

In Light Mode, the form background should be light, ensuring proper contrast with the input fields and text for a clean, consistent look.

Screenshots In light mode : form background is dark

image

In dark mode: input text is not visible

image

viki-777 commented 5 hours ago

please assign me this issue

rycerzes commented 5 hours ago

it's yours!

Amanaakash commented 5 hours ago

Hey @rycerzes , I have a pr up which is related to this issue , previously the theme state management was localized and other components didn't have the access of the current theme to dynamically change it. I have refactored the state management using context api in pr #46. If you could verify that , then the blog post component can make use of the themeProvider to dynamically update for dark and light mode.

edit: the pr has been merged !! @viki-777 , Best of Luck.