Skip to content

Commit 09862f3

Browse files
committed
feat(disclosure): ディスクロージャーパターンと例の日本語翻訳
1 parent 82269f7 commit 09862f3

File tree

5 files changed

+438
-440
lines changed

5 files changed

+438
-440
lines changed
Lines changed: 23 additions & 23 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,9 @@
11
<!DOCTYPE html>
2-
<html lang="en">
2+
<html lang="ja">
33
<head>
44
<meta charset="UTF-8">
55
<meta content="width=device-width, initial-scale=1.0" name="viewport">
6-
<title>Disclosure (Show/Hide) Pattern</title>
6+
<title>ディスクロージャー(表示/非表示)パターン</title>
77

88
<!-- Core JS and CSS shared by all patterns -->
99
<link rel="stylesheet" href="https://www.w3.org/StyleSheets/TR/2016/base.css">
@@ -14,51 +14,51 @@
1414
</head>
1515
<body>
1616
<main>
17-
<h1>Disclosure (Show/Hide) Pattern</h1>
17+
<h1>ディスクロージャー(表示/非表示)パターン</h1>
1818

1919
<section id="about">
20-
<h2>About This Pattern</h2>
20+
<h2>このパターンについて</h2>
2121
<p>
22-
A disclosure is a widget that enables content to be either collapsed (hidden) or expanded (visible).
23-
It has two elements: a disclosure <a href="../button/button-pattern.html">button</a> and a section of content whose visibility is controlled by the button.
24-
When the controlled content is hidden, the button is often styled as a typical push button with a right-pointing arrow or triangle to hint that activating the button will display additional content.
25-
When the content is visible, the arrow or triangle typically points down.
22+
ディスクロージャーは、コンテンツを折りたたんだり(非表示)、展開したり(表示)できるウィジェットです。
23+
ディスクロージャー<a href="../button/button-pattern.html">ボタン</a>と、ボタンによって表示/非表示が制御されるコンテンツのセクションの 2 つの要素があります。
24+
制御されたコンテンツが非表示の場合、ボタンは通常、右向きの矢印又は三角形の付いた典型的なプッシュボタンとしてスタイル設定され、ボタンを作動させると追加のコンテンツが表示されることを示唆します。
25+
コンテンツが表示されている場合、矢印又は三角形は通常下を向いています。
2626
</p>
2727
</section>
2828

2929
<section id="examples">
3030
<img alt="" src="../../images/pattern-disclosure.svg">
31-
<h2>Examples</h2>
31+
<h2></h2>
3232
<ul>
33-
<li><a href="examples/disclosure-image-description.html">Disclosure (Show/Hide) of Image Description</a></li>
34-
<li><a href="examples/disclosure-faq.html">Disclosure (Show/Hide) of Answers to Frequently Asked Questions</a></li>
35-
<li><a href="examples/disclosure-navigation.html">Disclosure (Show/Hide) Navigation Menu</a></li>
36-
<li><a href="examples/disclosure-navigation-hybrid.html">Disclosure (Show/Hide) Navigation Menu with Top-Level Links</a></li>
33+
<li><a href="examples/disclosure-image-description.html">画像説明用ディスクロージャー(表示/非表示)の例</a></li>
34+
<li><a href="examples/disclosure-faq.html">よくある質問の回答用ディスクロージャー(表示/非表示)の例</a></li>
35+
<li><a href="examples/disclosure-navigation.html">ディスクロージャーナビゲーションメニューの例</a></li>
36+
<li><a href="examples/disclosure-navigation-hybrid.html">トップレベルリンク付きディスクロージャーナビゲーションメニューの例</a></li>
3737
</ul>
3838
</section>
3939

4040
<section id="keyboard_interaction">
41-
<h2>Keyboard Interaction</h2>
42-
<p>When the disclosure control has focus:</p>
41+
<h2>キーボードの操作</h2>
42+
<p>ディスクロージャーコントロールにフォーカスがある場合:</p>
4343
<ul>
44-
<li><kbd>Enter</kbd>: activates the disclosure control and toggles the visibility of the disclosure content.</li>
45-
<li><kbd>Space</kbd>: activates the disclosure control and toggles the visibility of the disclosure content.</li>
44+
<li><kbd>Enter</kbd>: ディスクロージャーコントロールを作動させ、ディスクロージャーコンテンツの表示/非表示を切り替えます。</li>
45+
<li><kbd>Space</kbd>: ディスクロージャーコントロールを作動させ、ディスクロージャーコンテンツの表示/非表示を切り替えます。</li>
4646
</ul>
4747
</section>
4848

4949
<section id="roles_states_properties">
50-
<h2>WAI-ARIA Roles, States, and Properties</h2>
50+
<h2>WAI-ARIA ロール、ステート、及びプロパティ</h2>
5151
<ul>
52-
<li>The element that shows and hides the content has role <a href="#button" class="role-reference">button</a>.</li>
52+
<li>コンテンツを表示及び非表示にする要素には、<a href="#button" class="role-reference">button</a> ロールがあります。</li>
5353
<li>
54-
When the content is visible, the element with role <code>button</code> has <a href="#aria-expanded" class="state-reference">aria-expanded</a> set to <code>true</code>.
55-
When the content area is hidden, it is set to <code>false</code>.
54+
コンテンツが表示されている場合、<code>button</code> ロールを持つ要素の <a href="#aria-expanded" class="state-reference">aria-expanded</a> <code>true</code> に設定されます。
55+
コンテンツ領域が非表示の場合、<code>false</code> に設定されます。
5656
</li>
5757
<li>
58-
Optionally, the element with role <code>button</code> has a value specified for <a href="#aria-controls" class="property-reference">aria-controls</a> that refers to the element that contains all the content that is shown or hidden.
58+
任意で、<code>button</code> ロールを持つ要素には、表示又は非表示にされるすべてのコンテンツを含む要素を参照する <a href="#aria-controls" class="property-reference">aria-controls</a> に値が指定されています。
5959
</li>
6060
</ul>
6161
</section>
6262
</main>
6363
</body>
64-
</html>
64+
</html>

0 commit comments

Comments
 (0)