|
11 | 11 | // Ctrl-G. |
12 | 12 | import i18n from '../i18n'; |
13 | 13 | import CodeMirror from 'codemirror'; |
| 14 | +import triangleArrowRight from '../images/triangle-arrow-right.svg?byContent'; |
| 15 | +import triangleArrowDown from '../images/triangle-arrow-down.svg?byContent'; |
| 16 | +import downArrow from '../images/down-arrow.svg?byContent'; |
| 17 | +import upArrow from '../images/up-arrow.svg?byContent'; |
| 18 | +import exitIcon from '../images/exit.svg?byContent'; |
14 | 19 |
|
15 | 20 | function searchOverlay(query, caseInsensitive) { |
16 | 21 | if (typeof query == 'string') query = new RegExp(query.replace(/[\-\[\]\/\{\}\(\)\*\+\?\.\\\^\$\|]/g, '\\$&'), caseInsensitive ? 'gi' : 'g'); |
@@ -156,12 +161,12 @@ function persistentDialog(cm, text, deflt, onEnter, replaceOpened, onKeyDown) { |
156 | 161 | replaceDiv.style.height = replaceDivHeightOpened; |
157 | 162 | toggleReplaceBtnDiv.style.height = toggleButtonHeightOpened; |
158 | 163 | showReplaceButton.style.height = toggleButtonHeightOpened; |
159 | | - showReplaceButton.innerHTML = "▼"; |
| 164 | + showReplaceButton.innerHTML = triangleArrowDown; |
160 | 165 | } else { |
161 | 166 | replaceDiv.style.height = replaceDivHeightClosed; |
162 | 167 | toggleReplaceBtnDiv.style.height = toggleButtonHeightClosed; |
163 | 168 | showReplaceButton.style.height = toggleButtonHeightClosed; |
164 | | - showReplaceButton.innerHTML = "►"; |
| 169 | + showReplaceButton.innerHTML = triangleArrowRight; |
165 | 170 | } |
166 | 171 | } |
167 | 172 |
|
@@ -493,7 +498,9 @@ var getQueryDialog = function() { |
493 | 498 | role="button" |
494 | 499 | class="CodeMirror-search-modifier-button CodeMirror-replace-toggle-button" |
495 | 500 | > |
496 | | - <span aria-hidden="true" class="button">▶</span> |
| 501 | + <span aria-hidden="true" class="button"> |
| 502 | + ${triangleArrowRight} |
| 503 | + </span> |
497 | 504 | </button> |
498 | 505 | </div> |
499 | 506 | <div class="CodeMirror-find-input-fields"> |
@@ -535,19 +542,29 @@ var getQueryDialog = function() { |
535 | 542 | aria-label="${i18n.t('CodemirrorFindAndReplace.Previous')}" |
536 | 543 | class="CodeMirror-search-button icon up-arrow prev" |
537 | 544 | > |
| 545 | + <span aria-hidden="true"> |
| 546 | + ${upArrow} |
| 547 | + </span> |
538 | 548 | </button> |
539 | 549 | <button |
540 | 550 | title="${i18n.t('CodemirrorFindAndReplace.Next')}" |
541 | 551 | aria-label="${i18n.t('CodemirrorFindAndReplace.Next')}" |
542 | 552 | class="CodeMirror-search-button icon down-arrow next" |
543 | 553 | > |
| 554 | + <span aria-hidden="true"> |
| 555 | + ${downArrow} |
| 556 | + </span> |
544 | 557 | </button> |
545 | 558 | </div> |
546 | 559 | <div class="CodeMirror-close-button-container"> |
547 | 560 | <button |
548 | 561 | title="${i18n.t('CodemirrorFindAndReplace.Close')}" |
549 | 562 | aria-label="${i18n.t('CodemirrorFindAndReplace.Close')}" |
550 | | - class="CodeMirror-close-button close icon"> |
| 563 | + class="CodeMirror-close-button close icon" |
| 564 | + > |
| 565 | + <span aria-hidden="true"> |
| 566 | + ${exitIcon} |
| 567 | + </span> |
551 | 568 | </button> |
552 | 569 | </div> |
553 | 570 | </div> |
|
0 commit comments