From d0c5da59a973a0663154c0c062fe466a594ba3ab Mon Sep 17 00:00:00 2001
From: ryo-gk
Date: Wed, 23 Sep 2020 02:19:31 +0900
Subject: [PATCH 1/3] docs:translate guide/ally-semantics
---
src/guide/a11y-semantics.md | 76 ++++++++++++++++++-------------------
1 file changed, 38 insertions(+), 38 deletions(-)
diff --git a/src/guide/a11y-semantics.md b/src/guide/a11y-semantics.md
index 884d34d9..2dec0793 100644
--- a/src/guide/a11y-semantics.md
+++ b/src/guide/a11y-semantics.md
@@ -1,10 +1,10 @@
-# Semantics
+# セマンティクス
-## Forms
+## フォーム
-When creating a form, you can use the following elements: `
-Notice how you can include `autocomplete='on'` on the form element and it will apply to all inputs in your form. You can also set different [values for autocomplete attribute](https://developer.mozilla.org/en-US/docs/Web/HTML/Attributes/autocomplete) for each input.
+どのように `autocomplete='on'` をフォーム要素上に含むことができるかに注目してください。そしてそれはフォーム内の全ての入力欄に適用されます。また各入力欄の [autocomplete 属性に対して異なる値](https://developer.mozilla.org/ja/docs/Web/HTML/Attributes/autocomplete)をセットすることもできます。
-### Labels
+### ラベル
-Provide labels to describe the purpose of all form control; linking `for` and `id`:
+全てのフォームコントロールの目的を説明するためにラベルを提供してください。`for` と `id` はリンクしています:
```html
@@ -46,12 +46,12 @@ Provide labels to describe the purpose of all form control; linking `for` and `i
-If you inspect this element in your chrome developer tools and open the Accessibility tab inside the Elements tab, you will see how the input gets its name from the label:
+chrome デベロッパツールでこの要素を検証し、Elements タブ内の Accessibility タブを開くと、どのように入力欄がその名前をラベルから取得するかを確認できます :

:::warning Warning:
-Though you might have seen labels wrapping the input fields like this:
+以下のように入力欄をラップしているラベルを見たことがあるかもしれません:
```html
```
-Explicitly setting the labels with an matching id is better supported by assistive technology.
+一致する id で明示的にラベルを設定することは支援技術によってより適切にサポートされます。
:::
#### aria-label
-You can also give the input an accessible name with [`aria-label`](https://developer.mozilla.org/en-US/docs/Web/Accessibility/ARIA/ARIA_Techniques/Using_the_aria-label_attribute).
+[`aria-label`](https://developer.mozilla.org/ja/docs/Web/Accessibility/ARIA/ARIA_Techniques/Using_the_aria-label_attribute) によりアクセス可能な名前を入力欄に付与することもできます。
```html
@@ -85,13 +85,13 @@ You can also give the input an accessible name with [`aria-label`](https://devel
-Feel free to inspect this element in Chrome DevTools to see how the accessible name has changed:
+この要素を Chrome DevTools で自由に検証し、どのようにアクセス可能な名前が変更されたか確認してください:

#### aria-labelledby
-Using [`aria-labelledby`](https://developer.mozilla.org/en-US/docs/Web/Accessibility/ARIA/ARIA_Techniques/Using_the_aria-labelledby_attribute) is similar to `aria-label` expect it is used if the label text is visible on screen. It is paired to other elements by their `id` and you can link multiple `id`s:
+[`aria-labelledby`](https://developer.mozilla.org/ja/docs/Web/Accessibility/ARIA/ARIA_Techniques/Using_the_aria-labelledby_attribute) は `aria-label` に類似しており、ラベルテキストが画面に表示されている場合に使用されることを期待します。これは `id` によって他の要素とペアになっており、複数の `id` を関連付けることができます:
```html
-You can see the description by instecting Chrome DevTools:
+Chrome DevTools で検出することで Description を確認することができます:
-
+
-### Placeholder
+### プレースホルダ
-Avoid using placeholders as they can confuse many users.
+多くのユーザが混乱する可能性があるため、プレースホルダの使用は避けてください。
-One of the issues with placeholders is that they don't meet the [color contrast criteria](https://www.w3.org/WAI/WCAG21/Understanding/contrast-minimum.html) by default; fixing the color contrast makes the placeholder look like pre-populated data in the input fields. Looking at the following example, you can see that the Last Name placeholder which meets the color contrast criteria looks like pre-populated data:
+プレースホルダによる問題の1つは初期状態で [color contrast criteria](https://www.w3.org/WAI/WCAG21/Understanding/contrast-minimum.html) を満たしていないことです。色のコントラストを修正するとプレースホルダが入力欄に事前入力されたデータのように見えます。以下の例を見ると、color contrast criteria を満たしている Last Name プレースホルダが事前入力されたデータのように見えることが確認できます:
-It is best to provide all the information the user needs to fill out forms outside any inputs.
+ユーザがフォームを入力するために必要とするすべての情報を入力欄の外側で提供するのが最善です。
-### Instructions
+### 指示
-When adding instructions for your input fields, make sure to link it correctly to the input.
-You can provide additional instructions and bind multiple ids inside an [`aria-labelledby`](https://developer.mozilla.org/en-US/docs/Web/Accessibility/ARIA/ARIA_Techniques/Using_the_aria-labelledby_attribute). This allows for more flexible design.
+入力欄に指示を追加するとき、入力欄に対して正しくリンクしていることを確認してください。
+あなたは追加の指示を提供し、複数の id を [`aria-labelledby`](https://developer.mozilla.org/en-US/docs/Web/Accessibility/ARIA/ARIA_Techniques/Using_the_aria-labelledby_attribute) 内に束縛することができます。これにより、さらに柔軟な設計が可能になります。
```html
```
-Alternatively, you can attach the instructions to the input with [`aria-describedby`](https://developer.mozilla.org/en-US/docs/Web/Accessibility/ARIA/ARIA_Techniques/Using_the_aria-describedby_attribute):
+あるいは、[`aria-describedby`](https://developer.mozilla.org/ja/docs/Web/Accessibility/ARIA/ARIA_Techniques/Using_the_aria-describedby_attribute) を使用して 入力欄に指示を添付することもできます:
```html
```
-あるいは、[`aria-describedby`](https://developer.mozilla.org/ja/docs/Web/Accessibility/ARIA/ARIA_Techniques/Using_the_aria-describedby_attribute) を使用して 入力欄に指示を添付することもできます:
+あるいは、[`aria-describedby`](https://developer.mozilla.org/ja/docs/Web/Accessibility/ARIA/ARIA_Techniques/Using_the_aria-describedby_attribute) を使用して入力欄に指示を添付することもできます:
```html