mirror of
				https://github.com/zulip/zulip.git
				synced 2025-11-03 21:43:21 +00:00 
			
		
		
		
	By replacing `<span>` tags with `<div>` tags inside the tooltip's inner content we remove the redundancy of having to use break tags to separate the tooltip's title and it's content. We also replace any `<p>` tags with `<div>` tags for the following reasons: - Since what we want to achieve are just block elements in order to avoid the break tags, using `<div>` tags provide use with a wider scope of use cases. - We don't want the pause, screen readers often introduce after reading the contents of a paragraph. - The `<p>` tag cannot contain tables and other block-level elements. - The semantic meaning of the <p> tag doesn't apply to the commonly used tooltip content.
		
			
				
	
	
		
			5 lines
		
	
	
		
			167 B
		
	
	
	
		
			Handlebars
		
	
	
	
	
	
			
		
		
	
	
			5 lines
		
	
	
		
			167 B
		
	
	
	
		
			Handlebars
		
	
	
	
	
	
<div id="message_inline_image_tooltip">
 | 
						|
    <strong>{{ title }}</strong>
 | 
						|
    <div class="tooltip-inner-content italic">{{t 'Click to view or download.'}}</div>
 | 
						|
</div>
 |