mirror of
https://github.com/zulip/zulip.git
synced 2025-10-23 04:52:12 +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.
8 lines
217 B
Handlebars
8 lines
217 B
Handlebars
<div>
|
|
<div>{{t "Go to conversation"}}</div>
|
|
{{#if display_current_view}}
|
|
<div class="tooltip-inner-content italic">{{display_current_view}}</div>
|
|
{{/if}}
|
|
</div>
|
|
{{tooltip_hotkey_hints "Ctrl" "."}}
|