Skip to content

fix: --fill-color not reverting back to original color when toggling theme mode #3908

@garrenf

Description

@garrenf

🐛 Bug Report

On some occasions, when switching from light mode to dark mode, then back to light mode, --fill-color will not revert back to it's original white color, but rather a slightly different darker shade.

💻 Repro or Code Sample

The issue can be seen on the demo site here.

  1. Make sure the theme mode is set to light in settings.
  2. Observe the background color for the 2 cards under simple card example.
  3. Under settings, switch theme to dark then back to light.
  4. The top card will revert back to it's original white background color (#FFFFFF), whereas the bottom card will not have a slightly different background color (#FBFBFB).

🤔 Expected Behavior

The bottom card should revert back to it's original white background color.

😯 Current Behavior

--fill-color is reverting back to a different color than the original.

Before toggling theme mode (bottom card's background is pure white):
Image

After toggling theme mode (bottom card's background is slightly darker):
Image

🌍 Your Environment

Browser: Edge

Metadata

Metadata

Assignees

No one assigned

    Labels

    triageNew issue. Needs to be looked at

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions