From c66dcabd866a807fc75746a44cfeebee51ebd2d3 Mon Sep 17 00:00:00 2001 From: Tim Nguyen Date: Mon, 30 Mar 2020 23:47:30 +0000 Subject: [PATCH] Bug 1626119 - Fix dark theme support for breached/vulnerable login UI. r=jaws Differential Revision: https://phabricator.services.mozilla.com/D68939 --HG-- extra : moz-landing-system : lando --- .../content/components/login-item.css | 7 +----- .../content/components/login-list.css | 25 ++++--------------- .../content/icons/breached-website.svg | 4 +-- .../content/icons/vulnerable-password.svg | 4 +-- 4 files changed, 10 insertions(+), 30 deletions(-) diff --git a/browser/components/aboutlogins/content/components/login-item.css b/browser/components/aboutlogins/content/components/login-item.css index e24ff30eaafe..f60732e150ed 100644 --- a/browser/components/aboutlogins/content/components/login-item.css +++ b/browser/components/aboutlogins/content/components/login-item.css @@ -288,7 +288,7 @@ input[name="password"] { background-size: contain; -moz-context-properties: fill, fill-opacity; fill: currentColor; - fill-opacity: 0.8; + fill-opacity: 0.75; } .login-item-favicon-wrapper.hide-default-favicon { @@ -410,10 +410,5 @@ input[name="password"] { --success-color: #86DE74; --edit-delete-button-color: #cfcfd1; } - - .vulnerable-alert, - .breach-alert { - box-shadow: 0 2px 8px 0 rgba(249,249,250,0.1); - } } } diff --git a/browser/components/aboutlogins/content/components/login-list.css b/browser/components/aboutlogins/content/components/login-list.css index 9d949c5234dd..cf27b30f7da9 100644 --- a/browser/components/aboutlogins/content/components/login-list.css +++ b/browser/components/aboutlogins/content/components/login-list.css @@ -181,27 +181,12 @@ ol { .alert-icon { width: 16px; margin-inline-start: 12px; - -moz-context-properties: fill; + -moz-context-properties: fill, fill-opacity; + fill: currentColor; + fill-opacity: 0.75; } .breached > .alert-icon { - fill: var(--red-70); -} - -.vulnerable > .alert-icon { - fill: var(--grey-60); -} - -@media (-moz-windows-default-theme: 0) { - .list-item-warning-icon { - fill: currentColor; - } -} - -@supports -moz-bool-pref("browser.in-content.dark-mode") { - @media (prefers-color-scheme: dark) { - .breached > .list-item-warning-icon { - fill: var(--red-60); - } - } + fill: var(--red-60); + fill-opacity: 1; } diff --git a/browser/components/aboutlogins/content/icons/breached-website.svg b/browser/components/aboutlogins/content/icons/breached-website.svg index 905314e434c7..7ab9d5a17337 100644 --- a/browser/components/aboutlogins/content/icons/breached-website.svg +++ b/browser/components/aboutlogins/content/icons/breached-website.svg @@ -1,6 +1,6 @@ - - + + diff --git a/browser/components/aboutlogins/content/icons/vulnerable-password.svg b/browser/components/aboutlogins/content/icons/vulnerable-password.svg index 16b2eff1afa2..9ffac637c929 100644 --- a/browser/components/aboutlogins/content/icons/vulnerable-password.svg +++ b/browser/components/aboutlogins/content/icons/vulnerable-password.svg @@ -1,6 +1,6 @@ - - + +