Initial Drupal 11 with DDEV setup
This commit is contained in:
		
							
								
								
									
										15
									
								
								web/core/themes/olivero/js/checkbox.js
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										15
									
								
								web/core/themes/olivero/js/checkbox.js
									
									
									
									
									
										Normal file
									
								
							@ -0,0 +1,15 @@
 | 
			
		||||
/**
 | 
			
		||||
 * @file
 | 
			
		||||
 * Customization of checkbox.
 | 
			
		||||
 */
 | 
			
		||||
 | 
			
		||||
((Drupal) => {
 | 
			
		||||
  /**
 | 
			
		||||
   * Constructs a checkbox input element.
 | 
			
		||||
   *
 | 
			
		||||
   * @return {string}
 | 
			
		||||
   *   A string representing a DOM fragment.
 | 
			
		||||
   */
 | 
			
		||||
  Drupal.theme.checkbox = () =>
 | 
			
		||||
    '<input type="checkbox" class="form-checkbox form-boolean form-boolean--type-checkbox"/>';
 | 
			
		||||
})(Drupal);
 | 
			
		||||
		Reference in New Issue
	
	Block a user