mirror of
				https://github.com/go-gitea/gitea.git
				synced 2025-10-26 12:27:06 +00:00 
			
		
		
		
	Scoped labels: set aria-disabled on muted Exclusive option for a11y (#23306)
It is convenient to be able to toggle off this option after removing / from the name. This ensures the muted state is communicated to blind users even when the input is not fully disabled. Part of #22974 Co-authored-by: Lunny Xiao <xiaolunwen@gmail.com>
This commit is contained in:
		 Brecht Van Lommel
					Brecht Van Lommel
				
			
				
					committed by
					
						 GitHub
						GitHub
					
				
			
			
				
	
			
			
			 GitHub
						GitHub
					
				
			
						parent
						
							5d621fe9a7
						
					
				
				
					commit
					e8935606f5
				
			| @@ -13,6 +13,7 @@ function updateExclusiveLabelEdit(form) { | ||||
|  | ||||
|   if (isExclusiveScopeName(nameInput.val())) { | ||||
|     exclusiveField.removeClass('muted'); | ||||
|     exclusiveField.removeAttr('aria-disabled'); | ||||
|     if (exclusiveCheckbox.prop('checked') && exclusiveCheckbox.data('exclusive-warn')) { | ||||
|       exclusiveWarning.removeClass('gt-hidden'); | ||||
|     } else { | ||||
| @@ -20,6 +21,7 @@ function updateExclusiveLabelEdit(form) { | ||||
|     } | ||||
|   } else { | ||||
|     exclusiveField.addClass('muted'); | ||||
|     exclusiveField.attr('aria-disabled', 'true'); | ||||
|     exclusiveWarning.addClass('gt-hidden'); | ||||
|   } | ||||
| } | ||||
|   | ||||
		Reference in New Issue
	
	Block a user