Merge pull request #14663 from Snuffleupagus/issue-14525
[GENERIC viewer] Try to improve a11y, for search results, in the findbar (issue 14525)
This commit is contained in:
commit
27e738dff9
@ -127,6 +127,7 @@ class PDFFindBar {
|
||||
break;
|
||||
}
|
||||
this.findField.setAttribute("data-status", status);
|
||||
this.findField.setAttribute("aria-invalid", state === FindState.NOT_FOUND);
|
||||
|
||||
findMsg.then(msg => {
|
||||
this.findMsg.textContent = msg;
|
||||
|
@ -447,10 +447,11 @@ select {
|
||||
.findbar > div {
|
||||
height: 32px;
|
||||
}
|
||||
.findbar.wrapContainers > div {
|
||||
.findbar.wrapContainers > div,
|
||||
.findbar.wrapContainers > div#findbarMessageContainer > * {
|
||||
clear: both;
|
||||
}
|
||||
.findbar.wrapContainers > div.findbarMessageContainer {
|
||||
.findbar.wrapContainers > div#findbarMessageContainer {
|
||||
height: auto;
|
||||
}
|
||||
|
||||
|
@ -116,7 +116,7 @@ See https://github.com/adobe-type-tools/cmap-resources
|
||||
<div id="mainContainer">
|
||||
<div class="findbar hidden doorHanger" id="findbar">
|
||||
<div id="findbarInputContainer">
|
||||
<input id="findInput" class="toolbarField" title="Find" placeholder="Find in document…" tabindex="91" data-l10n-id="find_input">
|
||||
<input id="findInput" class="toolbarField" title="Find" placeholder="Find in document…" tabindex="91" data-l10n-id="find_input" aria-invalid="false">
|
||||
<div class="splitToolbarButton">
|
||||
<button id="findPrevious" class="toolbarButton findPrevious" title="Find the previous occurrence of the phrase" tabindex="92" data-l10n-id="find_previous">
|
||||
<span data-l10n-id="find_previous_label">Previous</span>
|
||||
@ -141,10 +141,8 @@ See https://github.com/adobe-type-tools/cmap-resources
|
||||
<label for="findEntireWord" class="toolbarLabel" data-l10n-id="find_entire_word_label">Whole Words</label>
|
||||
</div>
|
||||
|
||||
<div class="findbarMessageContainer">
|
||||
<div id="findbarMessageContainer" aria-live="polite">
|
||||
<span id="findResultsCount" class="toolbarLabel"></span>
|
||||
</div>
|
||||
<div class="findbarMessageContainer">
|
||||
<span id="findMsg" class="toolbarLabel"></span>
|
||||
</div>
|
||||
</div> <!-- findbar -->
|
||||
|
Loading…
x
Reference in New Issue
Block a user