Merge pull request #16356 from Snuffleupagus/issue-16355

Update the styling of the findbar `findMsg`-element (issue 16355)
This commit is contained in:
Tim van der Meij 2023-04-27 14:23:18 +02:00 committed by GitHub
commit 34ee77396c
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 3 additions and 2 deletions

View File

@ -129,6 +129,7 @@ class PDFFindBar {
this.findField.setAttribute("aria-invalid", state === FindState.NOT_FOUND); this.findField.setAttribute("aria-invalid", state === FindState.NOT_FOUND);
findMsg.then(msg => { findMsg.then(msg => {
this.findMsg.setAttribute("data-status", status);
this.findMsg.textContent = msg; this.findMsg.textContent = msg;
this.#adjustWidth(); this.#adjustWidth();
}); });

View File

@ -627,8 +627,8 @@ body {
margin: 5px; margin: 5px;
} }
#findMsg { #findMsg[data-status="notFound"] {
color: rgba(251, 0, 0, 1); font-weight: bold;
} }
:is(#findResultsCount, #findMsg):empty { :is(#findResultsCount, #findMsg):empty {