Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Bug] Inconsistency between background and border on the same element #12688

Open
3 tasks done
phoenixxbasit opened this issue May 7, 2024 · 0 comments
Open
3 tasks done
Labels

Comments

@phoenixxbasit
Copy link

Prerequisites

  • I searched for any existing report about this bug to avoid opening a duplicate.
  • I can reproduce this bug in a new, unmodified web browser profile with Dark Reader installed as the only extension.
  • I understand I need to use the Broken Website Report template if this bug I am reporting occurs on a single website.

Bug Description

I'm attempting to integrate dark mode functionality into an iframe, where I render emails. To achieve this, I'm injecting Dark Reader code into the HTML of the email template. The injected code includes:

<script src="https://cdn.jsdelivr.net/npm/darkreader@4.9.84/darkreader.min.js"></script>
<script>
  DarkReader.setFetchMethod(window.fetch);
  DarkReader.auto({
    brightness: 100,
    contrast: 130,
    grayscale: 0,
    sepia: 0
  });
</script>

This script adds Dark Reader functionalities, enabling dark mode within the iframe.

Website Address

Majority Of Email Templates

Steps To Reproduce

Just Add the above code to any email template html and it should work

Expected Behavior

The whole button should have the same color. We need to ensure consistency for a cohesive design.

Actual Behavior

The background color and border color, or outline color, do not match.
Screenshot from 2024-05-06 19-58-04
Screenshot from 2024-05-06 19-59-09

Screenshots

No response

Operating System

Linux Ubuntu

Web Browser name and version

FireFox 125.0.3 (64-bit)

Dark Reader version

Using DarkReader Library 4.9.84

Additional Context

No response

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

1 participant