jerboa88 / Mergist

Mergist is an online tool to combine multiple PDF files into one
http://mergist.johng.io/
MIT License
3 stars 0 forks source link

Themes are not being set as expected #9

Closed jerboa88 closed 2 years ago

jerboa88 commented 2 years ago

Helpful info

Describe the bug If the light or dark theme has not been manually selected by the user, than it should automatically be chosen based on the prefers-color-scheme property. If this property is not available, we should be using the dark theme as the default.

Steps to reproduce Steps to reproduce the behavior:

  1. Enable dark mode in your OS
  2. Reload the site in an incognito window so that local storage is not preserved
  3. Notice the light theme is loaded and the setting is automatically stored in local storage

Expected behavior Theme selection should use the following rules: