chetanverma16 / react-portfolio-template

Modern React Portfolio Template (FREE)
https://react-portfolio-template.netlify.com/
1.3k stars 574 forks source link

Resume in dark theme is not readable. #103

Open Aakashbansal837 opened 1 year ago

Aakashbansal837 commented 1 year ago

Steps to reproduce this issue.

  1. have the default system theme as dark.
  2. visit the website.
  3. click on Resume from the top navbar.
  4. The user is unable to read any data.

System Details System: Macbook Pro M2 OS. Version: Ventura 13.1

See the shared video for more details.

https://user-images.githubusercontent.com/30870405/214991710-901533c8-f3f5-40a9-8720-40e8d5f1969f.mov

ramiro-e commented 1 year ago

same issue, even in the live demo, have you found a solution?

Andy8647 commented 1 year ago

I feel like it is because the item theme in localStorage, this bug will happen when the value is system I tried giving it a initial instead of system, but not working

RaviSolanki27 commented 11 months ago

It should be done when the page is loaded. This can be achieved by using "useEffect". setTheme to localStorage when loaded using "useEffect" hook.