Skip to content

Commit 305be95

Browse files
committed
docs:translate guide/a11y-basics.md
1 parent 032c9d5 commit 305be95

File tree

1 file changed

+31
-31
lines changed

1 file changed

+31
-31
lines changed

src/guide/a11y-basics.md

Lines changed: 31 additions & 31 deletions
Original file line numberDiff line numberDiff line change
@@ -1,16 +1,16 @@
1-
# Basics
1+
# 基礎
22

3-
Web accessibility (also known as a11y) refers to the practice of creating websites that can be used by anyone — be that a person with a disability, a slow connection, outdated or broken hardware or simply someone in an unfavorable environment. For example, adding subtitles to a video would help both your deaf and hard-of-hearing users and your users who are in a loud environment and can't hear their phone. Similarly, making sure your text isn't too low contrast will help both your low-vision users and your users who are trying to use their phone in bright sunlight.
3+
Web アクセシビリティ(a11y とも呼ばれる)とは、障害のある人、回線速度が遅い人、古かったり壊れたハードウェアを使用している人、単に芳しくない環境にいる人など、誰もが利用できる Web サイトを作ることを指します。たとえば、ビデオに字幕を追加すると、聴覚障害のあるユーザと、大きな音がして電話の音が聞こえないユーザの両方に役立ちます。同様に、テキストのコントラストを低くしないようにすることで、目の見えないユーザと、明るい日光の下で携帯電話を使おうとしているユーザの両方に役立ちます。
44

5-
Ready start but aren’t sure where?
5+
アクセシビリティを始めたいけど、どこを参照すれば良いかわかりませんか?
66

7-
Checkout the [Planning and managing web accessibility guide](https://www.w3.org/WAI/planning-and-managing/) provided by [World Wide Web Consortium (W3C)](https://www.w3.org/)
7+
[World Wide Web Consortium (W3C)](https://www.w3.org/) が提供する [Planning and Managing Web Accessibility](https://www.w3.org/WAI/planning-and-managing/) を参照してください。
88

9-
## Skip link
9+
## スキップリンク
1010

11-
You should add a link at the top of each page that goes directly to the main content area so users can skip content that is repeated on multiple Web pages.
11+
ユーザが複数の Web ページで繰り返されるコンテンツをスキップできるように、各ページの上部にメインコンテンツエリアに直接行くリンクを追加する必要があります。
1212

13-
Typically this is done on the top of `App.vue` as it will be the first focusable element on all your pages:
13+
すべてのページで最初にフォーカス可能な要素になるため、通常これは `App.vue` の上部で使われます:
1414

1515
``` html
1616
<ul class="skip-links">
@@ -20,7 +20,7 @@ Typically this is done on the top of `App.vue` as it will be the first focusable
2020
</ul>
2121
```
2222

23-
To hide the link unless it is focused, you can add the following style:
23+
フォーカスされていない時にリンクを非表示にするには、以下のスタイルを追加します:
2424

2525
``` css
2626
.skipLink {
@@ -40,7 +40,7 @@ To hide the link unless it is focused, you can add the following style:
4040
}
4141
```
4242

43-
Once a user changes route, bring focus back to the skip link. This can be achieved by calling focus to the `ref` provided below:
43+
ユーザがルートを変更したら、スキップリンクにフォーカスを戻します。これは以下のように `ref` にフォーカスを呼ぶことで実現できます:
4444

4545
``` vue
4646
<script>
@@ -61,21 +61,21 @@ export default {
6161
</p>
6262
<script async src="https://static.codepen.io/assets/embed/ei.js"></script>
6363

64-
[Read documentation on skip link to main content](https://www.w3.org/WAI/WCAG21/Techniques/general/G1.html)
64+
[メインコンテンツへのスキップリンクについてのドキュメントを読む](https://www.w3.org/WAI/WCAG21/Techniques/general/G1.html)
6565

66-
## Structure Your Content
66+
## コンテンツの構造
6767

68-
One of the most important pieces of accessibility is making sure that design can support accessible implementation. Design should consider not only color contrast, font selection, text sizing, and language, but also how the content is structured in the application.
68+
アクセシビリティの最も重要な部分の1つは、デザインがアクセシブルな実装をサポートできることを確認することです。デザインは、色のコントラスト、フォントの選択、テキストのサイズ、言語だけでなく、アプリケーション内でのコンテンツの構造も考慮する必要があります。
6969

70-
### Headings
70+
### 見出し
7171

72-
Users can navigate an application through headings. Having descriptive headings for every section of your application makes it easier for users to predict the content of each section. When it comes to headings, there are a couple of recommended accessibility practices:
72+
ユーザは見出しを使ってアプリケーションをナビゲートできます。アプリケーションの各セクションに説明的な見出しをつけると、ユーザが各セクションの内容を予測しやすくなります。見出しに関しては、いくつかの推奨されるアクセシビリティの実践方法があります:
7373

74-
- Nest headings in their ranking order: `<h1>` - `<h6>`
75-
- Don’t skip headings within a section
76-
- Use actual heading tags instead of styling text to give the visual appearance of headings
74+
- 見出しを順番にネストする: `<h1>` - `<h6>`
75+
- セクション内の見出しをスキップしない
76+
- テキストのスタイル設定の代わりに実際の見出しタグを使用して、見出しの外観を設定する
7777

78-
[Read more about headings](https://www.w3.org/TR/UNDERSTANDING-WCAG20/navigation-mechanisms-descriptive.html)
78+
[見出しについてもっと読む](https://www.w3.org/TR/UNDERSTANDING-WCAG20/navigation-mechanisms-descriptive.html)
7979

8080
```html
8181
<main role="main" aria-labelledby="main-title">
@@ -95,23 +95,23 @@ Users can navigate an application through headings. Having descriptive headings
9595
</main>
9696
```
9797

98-
### Landmarks
98+
### ランドマーク
9999

100-
Landmarks provide programmatic access to sections within an application. Users who rely on assistive technology can navigate to each section of the application and skip over content. You can use [ARIA roles](https://developer.mozilla.org/en-US/docs/Web/Accessibility/ARIA/Roles) to help you achieve this.
100+
ランドマークを使用すると、アプリケーション内のセクションへプログラムによるアクセスができます。支援技術に依存しているユーザは、アプリケーションの各セクションに移動し、コンテンツをスキップすることができます。これを実現するために、[ARIA ロール](https://developer.mozilla.org/ja/docs/Web/Accessibility/ARIA/Roles)を使用することができます。
101101

102-
| HTML | ARIA Role | Landmark Purpose |
102+
| HTML | ARIA ロール | ランドマークの目的 |
103103
| --------------- | ----------------------------------------------------------------- | -------------------------------------------------------------------------------------- |
104-
| header | role="banner" | Prime heading: title of the page |
105-
| nav | role="navigation" | Collection of links suitable for use when navigating the document or related documents |
106-
| main | role="main" | The main or central content of the document. |
107-
| footer | role="contentinfo" | Information about the parent document: footnotes/copyrights/links to privacy statement |
108-
| aside | role="complementary" | Supports the main content, yet is separated and meaningful on its own content |
109-
| _Not available_ | role="search" | This section contains the search functionality for the application |
110-
| form | role="form" | Collection of form-associated elements |
111-
| section | role="region" | Content that is relevant and that users will likely want to navigate to. Label must be provided for this element |
104+
| header | role="banner" | 主な見出し:ページのタイトル |
105+
| nav | role="navigation" | 文書や関連文書をナビゲートする際に使用するのに適したリンク集 |
106+
| main | role="main" | 文書の主な内容または中心的な内容。 |
107+
| footer | role="contentinfo" | 親文書に関する情報:脚注/著作権/プライバシーポリシーへのリンク |
108+
| aside | role="complementary" | メインコンテンツをサポートしながらも、それ自身コンテンツとして分離され、意味のあるものになっています |
109+
| _利用不可_ | role="search" | セクションに含まれるアプリケーションの検索機能 |
110+
| form | role="form" | フォーム関連の要素コレクション |
111+
| section | role="region" | 関連性があり、ユーザがナビゲートする可能性が高いコンテンツ。この要素にはラベルを指定する必要があります |
112112

113113
:::tip Tip:
114-
It is recommended to use landmark HTML elements with redundant landmark role attributes in order to maximize compatibility with legacy [browsers that don’t support HTML5 semantic elements](https://caniuse.com/#feat=html5semantic).
114+
レガシーな [HTML5 のセマンティック要素をサポートしていないブラウザ](https://caniuse.com/#feat=html5semantic)との互換性を最大限に高めるために、冗長なランドマークロール属性を持つランドマーク HTML 要素を使用することをお勧めします。
115115
:::
116116

117-
[Read more about landmarks](https://www.w3.org/TR/wai-aria-1.2/#landmark_roles)
117+
[ランドマークについてもっと読む](https://www.w3.org/TR/wai-aria-1.2/#landmark_roles)

0 commit comments

Comments
 (0)