A11Y: Add title attribute to sparkles icon for AI search results (#317)

This commit is contained in:
Keegan George 2023-11-27 14:25:33 -08:00 committed by GitHub
parent d493880c0a
commit c7665e891b
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 4 additions and 1 deletions

View File

@ -1,9 +1,11 @@
import Component from '@glimmer/component';
import icon from "discourse-common/helpers/d-icon";
import i18n from "discourse-common/helpers/i18n";
export default class SearchResultDecoration extends Component {
<template>
<div class="ai-result__icon">
<div class="ai-result__icon" title={{i18n "discourse_ai.embeddings.ai_generated_result"}}>
{{icon "discourse-sparkles"}}
</div>
</template>

View File

@ -113,6 +113,7 @@ en:
toggle: "Showing %{count} results found using AI"
toggle_hidden: "Hiding %{count} results found using AI"
none: "Sorry, our AI search found no matching topics."
ai_generated_result: "Search result found using AI"
ai_bot:
pm_warning: "AI chatbot messages are monitored regularly by moderators."