WordPress-Android
WordPress-Android copied to clipboard
Stats: Countries card temporarily appears as a blank white square in dark mode
Expected behavior
I expected dark mode to have a dark version of the loading state.
Actual behavior
In dark mode, when scrolling down (for instance in the Days tab) to the Countries card, the map in the card appears white initially. In addition, when tapping "view more" at the bottom of this card, the countries map appears as a white square again before resolving to dark mode.
The same behavior occurs in light mode, but it looks fine. Ideally, the loading state would take dark mode into account and this would be a dark square instead of white.
Steps to reproduce the behavior
- Be in dark mode
- Go to Stats > Days/Weeks/Months/Years
- Scroll down to find the Countries card
- Note the flash of white
- Tap "view more" on the Countries card
- Note again the white loading state
https://user-images.githubusercontent.com/15107387/187869436-71cca841-3895-453d-a6dc-b9aa99e0c2de.mp4