@docusaurus/theme-classic 3.8.1-canary-6374 → 3.8.1-canary-6375

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -5,6 +5,7 @@
5
5
  * LICENSE file in the root directory of this source tree.
6
6
  */
7
7
  import React from 'react';
8
+ import {translate} from '@docusaurus/Translate';
8
9
  import styles from './styles.module.css';
9
10
  // References symbol in docusaurus-theme-classic/src/inlineSvgSprites.ts
10
11
  // See why: https://github.com/facebook/docusaurus/issues/5865
@@ -14,7 +15,11 @@ export default function IconExternalLink({width = 13.5, height = 13.5}) {
14
15
  <svg
15
16
  width={width}
16
17
  height={height}
17
- aria-hidden="true"
18
+ aria-label={translate({
19
+ id: 'theme.IconExternalLink.ariaLabel',
20
+ message: '(opens in new tab)',
21
+ description: 'The ARIA label for the external link icon',
22
+ })}
18
23
  className={styles.iconExternalLink}>
19
24
  <use href={svgSprite} />
20
25
  </svg>
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@docusaurus/theme-classic",
3
- "version": "3.8.1-canary-6374",
3
+ "version": "3.8.1-canary-6375",
4
4
  "description": "Classic theme for Docusaurus",
5
5
  "main": "lib/index.js",
6
6
  "types": "src/theme-classic.d.ts",
@@ -20,19 +20,19 @@
20
20
  "copy:watch": "node ../../admin/scripts/copyUntypedFiles.js --watch"
21
21
  },
22
22
  "dependencies": {
23
- "@docusaurus/core": "3.8.1-canary-6374",
24
- "@docusaurus/logger": "3.8.1-canary-6374",
25
- "@docusaurus/mdx-loader": "3.8.1-canary-6374",
26
- "@docusaurus/module-type-aliases": "3.8.1-canary-6374",
27
- "@docusaurus/plugin-content-blog": "3.8.1-canary-6374",
28
- "@docusaurus/plugin-content-docs": "3.8.1-canary-6374",
29
- "@docusaurus/plugin-content-pages": "3.8.1-canary-6374",
30
- "@docusaurus/theme-common": "3.8.1-canary-6374",
31
- "@docusaurus/theme-translations": "3.8.1-canary-6374",
32
- "@docusaurus/types": "3.8.1-canary-6374",
33
- "@docusaurus/utils": "3.8.1-canary-6374",
34
- "@docusaurus/utils-common": "3.8.1-canary-6374",
35
- "@docusaurus/utils-validation": "3.8.1-canary-6374",
23
+ "@docusaurus/core": "3.8.1-canary-6375",
24
+ "@docusaurus/logger": "3.8.1-canary-6375",
25
+ "@docusaurus/mdx-loader": "3.8.1-canary-6375",
26
+ "@docusaurus/module-type-aliases": "3.8.1-canary-6375",
27
+ "@docusaurus/plugin-content-blog": "3.8.1-canary-6375",
28
+ "@docusaurus/plugin-content-docs": "3.8.1-canary-6375",
29
+ "@docusaurus/plugin-content-pages": "3.8.1-canary-6375",
30
+ "@docusaurus/theme-common": "3.8.1-canary-6375",
31
+ "@docusaurus/theme-translations": "3.8.1-canary-6375",
32
+ "@docusaurus/types": "3.8.1-canary-6375",
33
+ "@docusaurus/utils": "3.8.1-canary-6375",
34
+ "@docusaurus/utils-common": "3.8.1-canary-6375",
35
+ "@docusaurus/utils-validation": "3.8.1-canary-6375",
36
36
  "@mdx-js/react": "^3.0.0",
37
37
  "clsx": "^2.0.0",
38
38
  "copy-text-to-clipboard": "^3.2.0",
@@ -62,5 +62,5 @@
62
62
  "engines": {
63
63
  "node": ">=18.0"
64
64
  },
65
- "gitHead": "d7c2ad4c6a14ff1185b4ee7bef89cd56c15d3869"
65
+ "gitHead": "1892984e51e133ffb5cc066116eda647753dbfb2"
66
66
  }
@@ -6,6 +6,7 @@
6
6
  */
7
7
 
8
8
  import React, {type ReactNode} from 'react';
9
+ import {translate} from '@docusaurus/Translate';
9
10
  import type {Props} from '@theme/Icon/ExternalLink';
10
11
 
11
12
  import styles from './styles.module.css';
@@ -22,7 +23,11 @@ export default function IconExternalLink({
22
23
  <svg
23
24
  width={width}
24
25
  height={height}
25
- aria-hidden="true"
26
+ aria-label={translate({
27
+ id: 'theme.IconExternalLink.ariaLabel',
28
+ message: '(opens in new tab)',
29
+ description: 'The ARIA label for the external link icon',
30
+ })}
26
31
  className={styles.iconExternalLink}>
27
32
  <use href={svgSprite} />
28
33
  </svg>