mirror of
				https://github.com/Mibew/simple-icons.git
				synced 2025-10-31 02:25:59 +03:00 
			
		
		
		
	Small usability improvement for users with JavaScript disabled
This commit is contained in:
		
							parent
							
								
									498ccac925
								
							
						
					
					
						commit
						47d5f64f08
					
				| @ -488,7 +488,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"> | ||||
| @ -542,6 +542,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