Bug 1609928 - Fix pill colour of addresses retrieved via LDAP. r=mkmelin

This commit is contained in:
Alessandro Castellani 2020-02-18 12:52:55 -08:00
Родитель 6e3eab6ebb
Коммит 1618a91d2c
2 изменённых файлов: 0 добавлений и 37 удалений

Просмотреть файл

@ -1956,12 +1956,6 @@
!isValid && !isMailingList && !isNewsgroup
);
let emailCard = DisplayNameUtils.getCardForEmail(this.emailAddress);
this.classList.toggle(
"warning",
isValid && !emailCard.card && !isMailingList && !isNewsgroup
);
this.style.removeProperty("max-width");
this.style.removeProperty("min-width");
this.classList.remove("editing");
@ -2225,15 +2219,6 @@
!isValidAddress(address.email) && !isMailingList && !isNewsgroup
);
let emailCard = DisplayNameUtils.getCardForEmail(address.email);
pill.classList.toggle(
"warning",
isValidAddress(address.email) &&
!emailCard.card &&
!isMailingList &&
!isNewsgroup
);
pill.addEventListener("click", event => {
this.checkSelected(pill, event);
});

Просмотреть файл

@ -591,30 +591,8 @@
background-color: #310005;
}
.address-pill.warning {
color: #a44900;
background-color: #fff2e5;
}
.address-pill.warning:hover:not(.editing),
.address-pill.warning:focus:not(.editing) {
background-color: rgba(255,130,0,0.15);
}
#MsgHeadersToolbar[brighttext] .address-pill.warning:not(.editing) {
color: #fe7100;
background-color: #341700;
}
#MsgHeadersToolbar[brighttext] .address-pill.warning:hover:not(.editing),
#MsgHeadersToolbar[brighttext] .address-pill.warning:focus:not(.editing) {
background-color: #301500;
}
.address-pill[selected]:not(.editing),
#MsgHeadersToolbar[brighttext] .address-pill[selected]:not(.editing),
.address-pill.warning[selected]:not(.editing),
#MsgHeadersToolbar[brighttext] .address-pill.warning[selected]:not(.editing),
.address-pill.error[selected]:not(.editing),
#MsgHeadersToolbar[brighttext] .address-pill.error[selected]:not(.editing) {
color: HighlightText;