Vertical overflow reveals incorrect background color
scottalguire opened this issue · 0 comments
scottalguire commented
Description
On devices (like my Galaxy S7) with insufficient vertical height to display the full UI the background does not extend behind the keyboard when you scroll down because the body element is the default white.
Example
Proposed Solution
- Toggle application of the
dark
className on thehtml
element wheneverdarkMode
state istrue
, (be it onload, or state change) - Apply the conditional tailwind classes to the body element
bg-background dark:bg-background-dark