|
1 | | -<div class="w-60 border border-teal-500 shadow-sm rounded-sm bg-white overflow-hidden mb-2" data-test-request-language-dropdown> |
2 | | - <div class="flex items-center px-3 text-gray-700 text-xs"> |
| 1 | +<div |
| 2 | + class="w-60 border border-teal-500 dark:border-teal-400 shadow-sm rounded-sm bg-white dark:bg-gray-925 overflow-hidden mb-2" |
| 3 | + data-test-request-language-dropdown |
| 4 | +> |
| 5 | + <div class="flex items-center px-3 text-gray-700 dark:text-gray-300 text-xs"> |
3 | 6 | {{! template-lint-disable require-input-label }} |
4 | 7 | <Input |
5 | 8 | @value={{this.searchQuery}} |
6 | 9 | placeholder={{if (gt this.requestedLanguages.length 0) "Change requested languages..." "Request languages..."}} |
7 | | - class="py-2 text-gray-700 placeholder-gray-400 text-xs outline-hidden w-full" |
| 10 | + class="py-2 text-gray-700 dark:text-gray-300 placeholder-gray-400 dark:placeholder-gray-500 text-xs outline-hidden w-full" |
8 | 11 | {{did-insert this.handleInputDidInsert}} |
9 | 12 | /> |
10 | 13 |
|
|
18 | 21 | {{on-key "Escape" @onClose}} |
19 | 22 | {{on-key "Enter" this.handleEnter}} |
20 | 23 |
|
21 | | - <div class="w-full h-px bg-gray-100"></div> |
| 24 | + <div class="w-full h-px bg-gray-100 dark:bg-white/10"></div> |
22 | 25 |
|
23 | 26 | <div class="text-xs overflow-y-auto h-28" {{did-insert this.handleSuggestionListDidInsert}}> |
24 | 27 | {{#each this.languageSuggestions as |languageSuggestion index|}} |
25 | 28 | <div |
26 | 29 | role="button" |
27 | | - class="flex items-center justify-between px-3 py-1.5 text-gray-700 hover:bg-gray-50 |
28 | | - {{if (eq index this.selectedSuggestionIndex) 'bg-gray-50'}}" |
| 30 | + class="flex items-center justify-between px-3 py-1.5 text-gray-700 dark:text-gray-300 hover:bg-gray-50 dark:hover:bg-gray-700 |
| 31 | + {{if (eq index this.selectedSuggestionIndex) 'bg-gray-50 dark:bg-gray-700'}}" |
29 | 32 | {{on "mouseenter" (fn (mut this.selectedSuggestionIndex) index)}} |
30 | 33 | {{on "click" (fn this.toggleLanguageSelection languageSuggestion.language)}} |
31 | 34 | data-test-language-suggestion |
|
40 | 43 | </div> |
41 | 44 | </div> |
42 | 45 | {{else}} |
43 | | - <div class="px-3 py-3 text-gray-600"> |
| 46 | + <div class="px-3 py-3 text-gray-600 dark:text-gray-400"> |
44 | 47 | <div class="mb-3 flex items-center"> |
45 | 48 | {{svg-jar "exclamation" class="w-4 h-4 mr-2 fill-current text-yellow-500"}} |
46 | 49 | <div>No languages found.</div> |
47 | 50 | </div> |
48 | 51 |
|
49 | 52 | <div> |
50 | 53 | Can't find the language you're looking for? |
51 | | - <a href="mailto:hello@codecrafters.io" class="font-bold underline text-teal-600">Let us know!</a> |
| 54 | + <a href="mailto:hello@codecrafters.io" class="font-bold underline text-teal-600 dark:text-teal-400">Let us know!</a> |
52 | 55 | </div> |
53 | 56 | </div> |
54 | 57 | {{/each}} |
|
0 commit comments