Commit acf3123a authored by Jan Krcal's avatar Jan Krcal Committed by Chromium LUCI CQ

[Sync confirmation] Move dark mode css till the end to get precedence

This CL fixes a regression that (for both the old and the new design),
light mode illustrations are used when in dark mode. This happened
by moving the dark mode css into one selector in the beginning. This
CL moves that till the end of the css to get precedence over the
light mode css specified before.

Bug: 1167092
Change-Id: I04783bb5aa34794c107cc846017accb140dea692
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/2632680
Auto-Submit: Jan Krcal <jkrcal@chromium.org>
Commit-Queue: Esmael Elmoslimany <aee@chromium.org>
Reviewed-by: default avatarEsmael Elmoslimany <aee@chromium.org>
Cr-Commit-Position: refs/heads/master@{#844992}
parent 285cd875
...@@ -8,20 +8,6 @@ ...@@ -8,20 +8,6 @@
display: block; display: block;
} }
@media (prefers-color-scheme: dark) {
/* Old design */
#illustration {
background-image:
url(./images/sync_confirmation_illustration_dark.svg);
}
/* New design */
#syncPromoBanner {
background-image:
url(images/sync_confirmation_refreshed_illustration_dark.svg);
}
}
.secondary { .secondary {
color: var(--cr-secondary-text-color); color: var(--cr-secondary-text-color);
} }
...@@ -196,6 +182,20 @@ ...@@ -196,6 +182,20 @@
#actionContainer #notNowButton { #actionContainer #notNowButton {
font-weight: normal; font-weight: normal;
} }
@media (prefers-color-scheme: dark) {
/* Old design */
#illustration {
background-image:
url(./images/sync_confirmation_illustration_dark.svg);
}
/* New design */
#syncPromoBanner {
background-image:
url(images/sync_confirmation_refreshed_illustration_dark.svg);
}
}
</style> </style>
<!-- <!--
......
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