Bug 1636445 - Skip applying profile refresh button styles in high-contrast. r=agashlin

Differential Revision: https://phabricator.services.mozilla.com/D74417
This commit is contained in:
Molly Howell 2020-05-08 19:07:53 +00:00
parent 846382dc54
commit 2caf2e9712
2 changed files with 7 additions and 2 deletions

View File

@ -61,11 +61,14 @@ body {
#refreshButton {
padding: 8px 70px;
font-size: 16px;
border: none;
background: #005ccc;
color: white;
}
body.normal-contrast #refreshButton {
border: none;
}
/* No footer for this layout. */
#footer {
visibility: hidden;

View File

@ -4,7 +4,9 @@
window.attachEvent("onload", function() {
if (parseInt(external.getIsHighContrast())) {
document.body.className = "high-contrast";
document.body.className += " high-contrast";
} else {
document.body.className += " normal-contrast";
}
document.body.style.fontFamily = external.getFontName() + ", sans-serif";