mirror of
https://github.com/discourse/discourse.git
synced 2025-09-06 10:50:21 +08:00
UX: Focus on new topic link that appears on the page via keyboard. (#6081)
- Add an <a> tag to handle keypress events on new topic indicator.
This commit is contained in:
parent
decf1f27cf
commit
de4d4747c4
3 changed files with 7 additions and 3 deletions
|
@ -21,7 +21,7 @@
|
||||||
<div class='clearfix'></div>
|
<div class='clearfix'></div>
|
||||||
</div>
|
</div>
|
||||||
{{#if hasIncoming}}
|
{{#if hasIncoming}}
|
||||||
<div class='alert alert-info clickable' {{action "showInserted"}}>
|
<div class='alert alert-info clickable' tabindex="0" {{action "showInserted"}}>
|
||||||
{{count-i18n key="admin.web_hooks.events.incoming" count=incomingCount}}
|
{{count-i18n key="admin.web_hooks.events.incoming" count=incomingCount}}
|
||||||
</div>
|
</div>
|
||||||
{{/if}}
|
{{/if}}
|
||||||
|
|
|
@ -2,7 +2,9 @@
|
||||||
{{#if hasIncoming}}
|
{{#if hasIncoming}}
|
||||||
<div class="show-mores">
|
<div class="show-mores">
|
||||||
<div class='alert alert-info clickable' {{action "showInserted"}}>
|
<div class='alert alert-info clickable' {{action "showInserted"}}>
|
||||||
{{count-i18n key="topic_count_" suffix="latest" count=incomingCount}}
|
<a tabindex="0" href="" {{action "showInserted"}}>
|
||||||
|
{{action "showInserted"}}>{{count-i18n key="topic_count_" suffix="latest" count=incomingCount}}
|
||||||
|
</a>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
{{/if}}
|
{{/if}}
|
||||||
|
|
|
@ -35,7 +35,9 @@
|
||||||
{{#if topicTrackingState.hasIncoming}}
|
{{#if topicTrackingState.hasIncoming}}
|
||||||
<div class="show-more {{if hasTopics 'has-topics'}}">
|
<div class="show-more {{if hasTopics 'has-topics'}}">
|
||||||
<div class='alert alert-info clickable' {{action "showInserted"}}>
|
<div class='alert alert-info clickable' {{action "showInserted"}}>
|
||||||
{{count-i18n key="topic_count_" suffix=topicTrackingState.filter count=topicTrackingState.incomingCount}}
|
<a tabindex="0" href="" {{action "showInserted"}}>
|
||||||
|
{{count-i18n key="topic_count_" suffix=topicTrackingState.filter count=topicTrackingState.incomingCount}}
|
||||||
|
</a>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
{{/if}}
|
{{/if}}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue