diff --git a/public/logos/tina-cms.svg b/public/logos/tina-cms.svg new file mode 100644 index 0000000000000..bb3aa1931ce55 --- /dev/null +++ b/public/logos/tina-cms.svg @@ -0,0 +1 @@ + diff --git a/src/components/CodeSnippet/CodeSnippet.astro b/src/components/CodeSnippet/CodeSnippet.astro index 8bfc69a016ba7..006c72d661b99 100644 --- a/src/components/CodeSnippet/CodeSnippet.astro +++ b/src/components/CodeSnippet/CodeSnippet.astro @@ -1,5 +1,6 @@ --- import rangeParser from 'parse-numeric-range'; +import { useTranslations } from '~/i18n/util'; import { ShikiBlock } from './shiki-block'; import { InlineMarkingDefinition, @@ -26,6 +27,8 @@ const { inlineMarkings = '', } = Astro.props as Props; +const t = useTranslations(Astro); + const isTerminal = ['shellscript', 'shell', 'bash', 'sh', 'zsh'].includes(lang); const intRemovedLineIndex = parseInt(removedLineIndex) || 0; const intRemovedLineCount = parseInt(removedLineCount) || 0; @@ -315,6 +318,14 @@ function parseMarkingDefinition(serializedArr: string, parts: RegExp, parseError `lang-${lang}`, ]} > -
{titleHtml && }
+
+ { + titleHtml ? ( + + ) : ( + isTerminal && {t('codeSnippet.terminalCaption')} + ) + } +
diff --git a/src/components/Header/Header.astro b/src/components/Header/Header.astro index 338f518519ed1..751a68074b03b 100644 --- a/src/components/Header/Header.astro +++ b/src/components/Header/Header.astro @@ -27,6 +27,7 @@ const t = useTranslations(Astro); height="102" viewBox="0 0 363 102" fill="none" + aria-hidden="true" > diff --git a/src/components/Header/ThemeToggleButton.tsx b/src/components/Header/ThemeToggleButton.tsx index 8942b5c54b051..57f13f18af14f 100644 --- a/src/components/Header/ThemeToggleButton.tsx +++ b/src/components/Header/ThemeToggleButton.tsx @@ -19,6 +19,7 @@ const icons = [ height="20" viewBox="0 0 20 20" fill="currentColor" + aria-hidden="true" >