Commit 2b4f419c authored by Friedrich Horschig's avatar Friedrich Horschig Committed by Commit Bot

[Passwords][Leak Check] Add more tolerance to warning icon halo

On Windows, the existing warning halo might not be enough (on some fonts
at least) to contain the entire warning triangle. To mitigate that, make
the halo a bit bigger and the triangle a tiny bit smaller so that the
rounding errors that cause the misalignment aren't visible anymore.

Additionally, the dark mode still used pixel measurements which did not
scale with the text size. It's using the same height units now.

(Tested on Windows and on Linux; Screenshot in linked bug)

Bug: 1098238
Change-Id: I037a82403eb1acfbe9173500d9fb85cfd34a4e08
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/2260639Reviewed-by: default avatarJan Wilken Dörrie <jdoerrie@chromium.org>
Commit-Queue: Friedrich [CET] <fhorschig@chromium.org>
Cr-Commit-Position: refs/heads/master@{#781764}
parent 6a412a1b
......@@ -9,21 +9,21 @@
iron-icon.has-leaks {
--iron-icon-fill-color: var(--google-red-600);
background: radial-gradient(circle 0.9em at 0.9em,
background: radial-gradient(circle 1.1em at 1.1em,
#FCE8E6 100%,
transparent 100%);
margin-inline-end: 16px;
margin-inline-start: -4px;
padding-bottom: 0.2em;
padding-inline-end: 0.2em;
padding-inline-start: 0.2em;
padding-top: 0.1em;
padding-bottom: 0.5em;
padding-inline-end: 0.4em;
padding-inline-start: 0.3em;
padding-top: 0.3em;
}
@media (prefers-color-scheme: dark) {
iron-icon.has-leaks {
--iron-icon-fill-color: var(--google-red-refresh-300);
background: radial-gradient(circle 12px at 12px,
background: radial-gradient(circle 1.1em at 1.1em,
var(--google-grey-900) 100%,
transparent 100%);
}
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment