Bug 1854056 - removing affix from ProfileAutoCompleteResult r=mtigley,credential-management-reviewers

Depends on D191210

Differential Revision: https://phabricator.services.mozilla.com/D191355
This commit is contained in:
Sergey Galich
2023-10-30 18:38:10 +00:00
parent 8e730f287e
commit ec464450ef
9 changed files with 48 additions and 81 deletions

View File

@@ -83,7 +83,6 @@
return `
<div xmlns="http://www.w3.org/1999/xhtml" class="autofill-item-box">
<div class="profile-label-col profile-item-col">
<span class="profile-label-affix"></span>
<span class="profile-label"></span>
</div>
<div class="profile-comment-col profile-item-col">
@@ -103,7 +102,6 @@
this.appendChild(this.constructor.fragment);
this._itemBox = this.querySelector(".autofill-item-box");
this._labelAffix = this.querySelector(".profile-label-affix");
this._label = this.querySelector(".profile-label");
this._comment = this.querySelector(".profile-comment");
@@ -139,11 +137,10 @@
`url(${this.getAttribute("ac-image")})`
);
let { primaryAffix, primary, secondary, ariaLabel } = JSON.parse(
let { primary, secondary, ariaLabel } = JSON.parse(
this.getAttribute("ac-value")
);
this._labelAffix.textContent = primaryAffix;
this._label.textContent = primary;
this._comment.textContent = secondary;
if (ariaLabel) {