Skip to content

Commit 3fb90a6

Browse files
authoredApr 25, 2025
[AI Search] Update disclaimer text style (#55420)
1 parent 4a4e201 commit 3fb90a6

File tree

4 files changed

+8
-3
lines changed

4 files changed

+8
-3
lines changed
 

‎data/ui.yml

+1-1
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,7 @@ search:
4545
search_docs_with_query: Search docs for "{{query}}"
4646
privacy_disclaimer: For product and service improvement purposes, the GitHub Docs team will retain questions and answers generated in the Docs search function. Please see the <a href="https://docs.github.com/privacy">GitHub Privacy Statement</a> to review how GitHub collects and uses your data.
4747
ai:
48-
disclaimer: Copilot uses AI. Check for mistakes by reviewing the links in the response.
48+
disclaimer: <a href="https://docs.github.com/en/copilot/responsible-use-of-github-copilot-features/responsible-use-of-github-copilot-chat-in-githubcom"}>Copilot</a> uses AI. Check for mistakes.
4949
references: Additional docs
5050
loading_status_message: Loading Copilot response...
5151
done_loading_status_message: Done loading Copilot response

‎src/fixtures/fixtures/data/ui.yml

+1-1
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,7 @@ search:
4545
search_docs_with_query: Search docs for "{{query}}"
4646
privacy_disclaimer: For product and service improvement purposes, the GitHub Docs team will retain questions and answers generated in the Docs search function. Please see the <a href="https://docs.github.com/privacy">GitHub Privacy Statement</a> to review how GitHub collects and uses your data.
4747
ai:
48-
disclaimer: Copilot uses AI. Check for mistakes by reviewing the links in the response.
48+
disclaimer: <a href="https://docs.github.com/en/copilot/responsible-use-of-github-copilot-features/responsible-use-of-github-copilot-chat-in-githubcom"}>Copilot</a> uses AI. Check for mistakes.
4949
references: Additional docs
5050
loading_status_message: Loading Copilot response...
5151
done_loading_status_message: Done loading Copilot response

‎src/search/components/input/AskAIResults.module.scss

+5
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,11 @@ $mutedTextColor: var(--fgColor-muted, var(--color-fg-muted, #656d76));
1515
color: $mutedTextColor;
1616
margin: 8px 0px 18px 0px;
1717
padding: $bodyPadding;
18+
19+
a {
20+
color: $mutedTextColor;
21+
text-decoration: underline;
22+
}
1823
}
1924

2025
.markdownBodyOverrides {

‎src/search/components/input/AskAIResults.tsx

+1-1
Original file line numberDiff line numberDiff line change
@@ -298,7 +298,7 @@ export function AskAIResults({
298298
<article aria-busy={responseLoading} aria-live="assertive">
299299
{!aiCouldNotAnswer && message !== '' ? (
300300
<span ref={disclaimerRef} className={styles.disclaimerText}>
301-
{t('search.ai.disclaimer')}
301+
<span dangerouslySetInnerHTML={{ __html: t('search.ai.disclaimer') }} />
302302
</span>
303303
) : null}
304304
<UnrenderedMarkdownContent

0 commit comments

Comments
 (0)