mirror of
				https://github.com/go-gitea/gitea.git
				synced 2025-10-31 19:06:18 +01:00 
			
		
		
		
	Add aria attributes to interactive time tooltips. (#23661)
Fixes #23645 * Added `describedby` attribute to the reference element. * Eliminated `aria-expanded` attribute to the reference element in order to conform strictly with WCAG 2.1 rules.
This commit is contained in:
		
				
					committed by
					
						 GitHub
						GitHub
					
				
			
			
				
	
			
			
			
						parent
						
							d02e83a2c3
						
					
				
				
					commit
					87f0f7e670
				
			| @@ -44,7 +44,7 @@ function attachTooltip(target, content = null) { | ||||
|     delay: 100, | ||||
|     role: 'tooltip', | ||||
|     placement: target.getAttribute('data-tooltip-placement') || 'top-start', | ||||
|     ...(target.getAttribute('data-tooltip-interactive') === 'true' ? {interactive: true} : {}), | ||||
|     ...(target.getAttribute('data-tooltip-interactive') === 'true' ? {interactive: true, aria: {content: 'describedby', expanded: false}} : {}), | ||||
|   }; | ||||
|  | ||||
|   if (!target._tippy) { | ||||
|   | ||||
		Reference in New Issue
	
	Block a user