mirror of
				https://github.com/Mibew/simple-icons.git
				synced 2025-10-31 10:31:06 +03:00 
			
		
		
		
	Merge pull request #649 from ericcornelissen/usability-noscript
Small usability improvement for users with JavaScript disabled (low priority)
This commit is contained in:
		
						commit
						5dd166d2d2
					
				| @ -489,7 +489,7 @@ | ||||
|         <div class="search"> | ||||
|             <div class="search__wrapper"> | ||||
|                 <div class="search__close"><span>×</span></div> | ||||
|                 <input type="text" placeholder="Search by brand …" /> | ||||
|                 <input type="text" placeholder="Search by brand …" title="Search not available when JavaScript is disabled" disabled /> | ||||
|             </div> | ||||
|         </div> | ||||
|         <ul class="grid"> | ||||
| @ -543,6 +543,10 @@ | ||||
|                 $searchClose = $search.querySelector('.search__close'), | ||||
|                 $searchInput = $search.querySelector('input'); | ||||
| 
 | ||||
|             // Remove the "disabled" attribute from the search input | ||||
|             $searchInput.setAttribute('title', 'Search Simple Icons'); | ||||
|             $searchInput.removeAttribute('disabled'); | ||||
| 
 | ||||
|             // include a modified debounce underscorejs helper function. | ||||
|             // see | ||||
|             //   - http://underscorejs.org/docs/underscore.html#section-83 | ||||
|  | ||||
		Loading…
	
		Reference in New Issue
	
	Block a user