Example Disclosure (Show/Hide) for Answers to Frequently Asked Questions
About This Example
+
The following example demonstrates using the Disclosure Pattern to create a set of frequently asked questions where the answers may be independently shown or hidden.
@@ -106,7 +107,7 @@
Accessibility Features
To help people with visual impairments identify the disclosure as interactive and make it easier to perceive that clicking either the disclosure button or its label changes the expanded state, when a pointer hovers over the button or its label, the background color changes, a border appears, and the cursor changes to a pointer.
- Because transparent borders are visible on some systems with operating system high contrast settings enabled, transparency cannot be used to create a visual difference between the element that is focused an other elements.
+ Because transparent borders are visible on some systems with operating system high contrast settings enabled, transparency cannot be used to create a visual difference between the element that is focused and other elements.
Instead of using transparency, the focused element has a thicker border and less padding.
When an element receives focus, its border changes from 0 to 2 pixels and padding is reduced by 2 pixels.
When an element loses focus, its border changes from 2 pixels to 0 and padding is increased by 2 pixels.
diff --git a/content/patterns/disclosure/examples/disclosure-image-description.html b/content/patterns/disclosure/examples/disclosure-image-description.html
index 5f7b1817..76f7c835 100644
--- a/content/patterns/disclosure/examples/disclosure-image-description.html
+++ b/content/patterns/disclosure/examples/disclosure-image-description.html
@@ -29,6 +29,7 @@
Example Disclosure (Show/Hide) for Image Description
About This Example
+
The following example demonstrates using the Disclosure Pattern to provide a way of revealing a table of data that complements an image.
@@ -249,7 +250,7 @@
Accessibility Features
To help people with visual impairments identify the disclosure as interactive and make it easier to perceive that clicking either the disclosure button or its label changes the expanded state, when a pointer hovers over the button or its label, the background color changes, a border appears, and the cursor changes to a pointer.
- Because transparent borders are visible on some systems with operating system high contrast settings enabled, transparency cannot be used to create a visual difference between the element that is focused an other elements.
+ Because transparent borders are visible on some systems with operating system high contrast settings enabled, transparency cannot be used to create a visual difference between the element that is focused and other elements.
Instead of using transparency, the focused element has a thicker border and less padding.
When an element receives focus, its border changes from 0 to 2 pixels and padding is reduced by 2 pixels.
When an element loses focus, its border changes from 2 pixels to 0 and padding is increased by 2 pixels.
diff --git a/content/patterns/disclosure/examples/disclosure-navigation-hybrid.html b/content/patterns/disclosure/examples/disclosure-navigation-hybrid.html
index 22f14b98..31390dbc 100644
--- a/content/patterns/disclosure/examples/disclosure-navigation-hybrid.html
+++ b/content/patterns/disclosure/examples/disclosure-navigation-hybrid.html
@@ -38,7 +38,7 @@
The following example demonstrates using the Disclosure Pattern to show and hide dropdown lists of links in a navigation bar for a mythical university web site.
Unlike the other disclosure navigation menu example, this example includes top-level links alongside the disclosure buttons.
diff --git a/content/patterns/disclosure/examples/disclosure-navigation.html b/content/patterns/disclosure/examples/disclosure-navigation.html
index 31f4a594..75d6c440 100644
--- a/content/patterns/disclosure/examples/disclosure-navigation.html
+++ b/content/patterns/disclosure/examples/disclosure-navigation.html
@@ -38,6 +38,7 @@
The following example demonstrates using the Disclosure Pattern to show and hide dropdown lists of links in a navigation bar for a mythical university web site.
Each disclosure button represents a section of the web site, and expanding it shows a list of links to pages within that section.
From 3a0f8a76856cc0c055af83509bb17a9e2b8b503c Mon Sep 17 00:00:00 2001
From: Shimada Takayuki
Date: Sun, 25 Feb 2024 09:31:29 +0900
Subject: [PATCH 02/10] =?UTF-8?q?Disclosure=E3=83=91=E3=82=BF=E3=83=BC?=
=?UTF-8?q?=E3=83=B3=E3=81=AE=E7=B2=97=E8=A8=B3?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
---
.../disclosure/disclosure-pattern.html | 45 ++--
.../disclosure/examples/disclosure-faq.html | 114 ++++-----
.../disclosure-image-description.html | 220 +++++++++---------
.../disclosure-navigation-hybrid.html | 212 ++++++++---------
.../examples/disclosure-navigation.html | 210 +++++++++--------
5 files changed, 392 insertions(+), 409 deletions(-)
diff --git a/content/patterns/disclosure/disclosure-pattern.html b/content/patterns/disclosure/disclosure-pattern.html
index 5b20b618..db0637cb 100644
--- a/content/patterns/disclosure/disclosure-pattern.html
+++ b/content/patterns/disclosure/disclosure-pattern.html
@@ -1,9 +1,9 @@
-
+
- Disclosure (Show/Hide) Pattern
+ ディスクロージャー(表示/非表示)パターン
@@ -14,48 +14,49 @@
-
Disclosure (Show/Hide) Pattern
+
ディスクロージャー(表示/非表示)パターン
+
-
About This Pattern
+
このパターンについて
- A disclosure is a widget that enables content to be either collapsed (hidden) or expanded (visible).
- It has two elements: a disclosure button and a section of content whose visibility is controlled by the button.
- 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.
- When the content is visible, the arrow or triangle typically points down.
+ ディスクロージャーは、コンテンツを折りたたんで隠す(非表示)または展開して表示する(表示)ことができるウィジェットです。
+ これには、ディスクロージャー ボタンと、ボタンによって可視性が制御されるコンテンツのセクションという、2つの要素があります。
+ 制御されたコンテンツが隠されているとき、ボタンは通常、追加のコンテンツが表示されることを示唆する右向きの矢印または三角形でスタイルされた典型的なプッシュボタンとしてスタイルされます。
+ コンテンツが表示されているとき、矢印または三角形は通常、下を指します。
- When the content is visible, the element with role button has aria-expanded set to true.
- When the content area is hidden, it is set to false.
+ コンテンツが表示されているとき、ロールbuttonを持つ要素はaria-expandedがtrueに設定されます。
+ コンテンツエリアが隠されている場合は、falseに設定されます。
- Optionally, the element with role button has a value specified for aria-controls that refers to the element that contains all the content that is shown or hidden.
+ オプションで、ロールbuttonを持つ要素は、表示または非表示にされるすべてのコンテンツを含む要素を参照するaria-controlsの値を指定しています。
diff --git a/content/patterns/disclosure/examples/disclosure-faq.html b/content/patterns/disclosure/examples/disclosure-faq.html
index 138491d7..d2347851 100644
--- a/content/patterns/disclosure/examples/disclosure-faq.html
+++ b/content/patterns/disclosure/examples/disclosure-faq.html
@@ -1,9 +1,9 @@
-
+
- Example Disclosure (Show/Hide) for Answers to Frequently Asked Questions
+ よくある質問への回答のディスクロージャー(表示/非表示)の例
@@ -20,75 +20,70 @@
-
Example Disclosure (Show/Hide) for Answers to Frequently Asked Questions
+
よくある質問への回答のディスクロージャー(表示/非表示)の例
+
-
About This Example
+
この例について
- The following example demonstrates using the Disclosure Pattern to create a set of frequently asked questions where the answers may be independently shown or hidden.
+ 以下の例では、ディスクロージャーパターンを使用して、回答を個別に表示または非表示にできるよくある質問のセットを作成する方法を示しています。
- Park at the nearest available parking meter without paying the meter and call 999-999-9999 to report the problem.
- We will note and approve your alternate location and will investigate the cause of the shortage in your assigned facility.
+ 最寄りの駐車メーターに料金を支払わずに駐車し、999-999-9999に電話して問題を報告してください。代替の場所を記録して承認し、指定施設の不足の原因を調査します。
-
+
- You should come to the Parking office and report the loss.
- There is a fee to replace your lost permit.
- However, if your permit was stolen, a copy of a police report needs to be submitted along with a stolen parking permit form for a fee replacement exemption.
+ 駐車管理オフィスに来て、紛失を報告してください。紛失したパーミットの再発行には手数料がかかります。ただし、パーミットが盗まれた場合は、警察の報告書のコピーを盗難パーミットフォームとともに提出し、手数料の免除を受ける必要があります。
-
+
- All facilities are restricted from 2:00 am - 6:00 am on all days.
- No exceptions are made for any holiday or recess except those officially listed as a Holidays in the calendar.
- Please note: 24-hour rental spaces, 24-hour rental lots, and disabled parking is enforced at all times.
+ すべての施設は、毎日2:00 am - 6:00 amは制限されています。休日や休憩を問わず例外はありません。ただし、24時間レンタルスペース、24時間レンタルロット、および障害者用駐車場は常に守られます。
-
+
- Some parking facility restrictions differ from others.
- Be sure to take note of the signs at each lot entrance.
+ 一部の駐車施設の制限は他と異なります。各ロット入口の標識を確認してください。
@@ -97,38 +92,29 @@
Parking FAQs
-
Accessibility Features
+
アクセシビリティの特徴
- The semantic structure of the FAQ is conveyed with native dl, dt and dd elements.
- To ensure the list structure is communicated to assistive technologies, instead of applying a button role to the dt element, a button element is contained within the dt element.
- Similarly, each div element containing answer content that can be shown or hidden by the button is a child of a dd element.
- Since all the dd elements are present in the DOM even if some answers are hidden, the dl structure is always complete.
+ FAQの意味構造は、ネイティブのdl、dtおよびdd要素を使用して伝えられます。dt要素にボタンロールを適用する代わりに、dt要素内にbutton要素が含まれているため、リスト構造が支援技術に伝えられます。同様に、ボタンによって表示または非表示にされる回答コンテンツを含む各div要素はdd要素の子です。dl構造は、一部の回答が非表示であっても、すべてのdd要素がDOMに存在するため、常に完全です。
-
To help people with visual impairments identify the disclosure as interactive and make it easier to perceive that clicking either the disclosure button or its label changes the expanded state, when a pointer hovers over the button or its label, the background color changes, a border appears, and the cursor changes to a pointer.
- Because transparent borders are visible on some systems with operating system high contrast settings enabled, transparency cannot be used to create a visual difference between the element that is focused and other elements.
- Instead of using transparency, the focused element has a thicker border and less padding.
- When an element receives focus, its border changes from 0 to 2 pixels and padding is reduced by 2 pixels.
- When an element loses focus, its border changes from 2 pixels to 0 and padding is increased by 2 pixels.
+ オペレーティングシステムのハイコントラスト設定が有効になっている一部のシステムで透明な境界線が表示されるため、透明性を使用してフォーカスされた要素と他の要素との視覚的な違いを作り出すことはできません。透明性の代わりに、フォーカスされた要素にはより太い境界線と少ないパディングがあります。要素がフォーカスを受けると、その境界線は0から2ピクセルに変わり、パディングは2ピクセル減少します。要素がフォーカスを失うと、その境界線は2ピクセルから0に変わり、パディングは2ピクセル増加します。
- To ensure the inline SVG arrow graphics in the CSS have sufficient contrast with the background when high contrast settings invert colors, the color of the arrows are synchronized with the color of the text content.
- For example, the color of the arrow is set to match the foreground color of high contrast mode text by specifying the CSS currentcolor value for the stroke and fill properties of the polygon elements used to draw the arrows.
- If specific colors were instead used to specify the polygon properties, those colors would remain the same in high contrast mode, which could lead to insufficient contrast between the arrows and the background or even make the arrows invisible if the color matched the high contrast mode background.
- Note: The SVG element needs to have the CSS forced-color-adjust property set to auto for the currentcolor value to be updated in high contrast mode.
- Some browsers do not use auto for the default value.
+ ハイコントラスト設定で色が反転したときにCSS内のインラインSVG矢印グラフィックスが背景と十分なコントラストを持つようにするため、矢印の色はテキストコンテンツの色と同期されます。たとえば、polygon要素のstrokeおよびfillプロパティにCSSのcurrentcolor値を指定することにより、ハイコントラストモードテキストの前景色に合わせて矢印の色が設定されます。特定の色を使用してpolygonプロパティを指定した場合、それらの色はハイコントラストモードで同じままになり、矢印と背景の間のコントラストが不十分になるか、色がハイコントラストモードの背景と一致する場合は矢印が見えなくなる可能性があります。
+ 注記:SVG要素は、ハイコントラストモードでcurrentcolor値が更新されるように、CSSforced-color-adjustプロパティをautoに設定する必要があります。一部のブラウザーはデフォルト値としてautoを使用しません。
-
Keyboard Support
+
キーボードサポート
-
Key
-
Function
+
キー
+
機能
@@ -136,28 +122,28 @@
Keyboard Support
Tab
-
Moves keyboard focus to the disclosure button.
+
キーボードフォーカスをディスクロージャーボタンに移動します。
- Space or
+ Spaceまたは Enter
-
Activates the disclosure button, which toggles the visibility of the answer to the question.
+
ディスクロージャーボタンをアクティベートし、質問への回答の表示状態を切り替えます。
-
Role, Property, State, and Tabindex Attributes
+
ロール、プロパティ、ステート、およびTabindex属性
-
Role
-
Attribute
-
Element
-
Usage
+
ロール
+
属性
+
要素
+
使用法
@@ -167,7 +153,7 @@
Role, Property, State, and Tabindex Attributes
aria-controls="ID_REFERENCE"
button
-
Identifies the element controlled by the disclosure button.
+
ディスクロージャーボタンによって制御される要素を識別します。
@@ -179,11 +165,11 @@
Role, Property, State, and Tabindex Attributes
-
Indicates that the container controlled by the disclosure button is hidden.
+
ディスクロージャーボタンによって制御されるコンテナが非表示であることを示します。
- CSS attribute selectors (e.g. [aria-expanded="false"]) are used to synchronize the visual states with the value of the aria-expanded attribute.
+ CSS属性セレクタ(例:[aria-expanded="false"])を使用して、aria-expanded属性の値と視覚状態を同期します。
-
The visual indicator of the show/hide state is created using CSS :before pseudo element and content property so the image is reliably rendered in high contrast mode of operating systems and browsers.
Indicates that the container controlled by the disclosure button is visible.
+
ディスクロージャーボタンによって制御されるコンテナが表示されていることを示します。
- CSS attribute selectors (e.g. [aria-expanded="true"]) are used to synchronize the visual states with the value of the aria-expanded attribute.
+ CSS属性セレクタ(例:[aria-expanded="true"])を使用して、aria-expanded属性の値と視覚状態を同期します。
-
The visual indicator of the show/hide state is created using CSS :before pseudo element and content property so the image is reliably rendered in high contrast mode of operating systems and browsers.
Example Disclosure (Show/Hide) for Image Description
+
画像説明のディスクロージャー(表示/非表示)の例
+
-
About This Example
+
この例について
- The following example demonstrates using the Disclosure Pattern to provide a way of revealing a table of data that complements an image.
+ 以下の例では、ディスクロージャーパターンを使用して、画像を補完するデータテーブルを表示する方法を提供しています。
- Figurative Map of the successive losses in men of the French Army in the Russian campaign 1812-1813.
- Drawn by Mr. Minard, Inspector General of Bridges and Roads in retirement.
- Paris, 20 November 1869.
+ フランス軍のロシア遠征1812-1813年の逐次的な人的損失の図。引退後の橋梁及び道路の総監ミナード氏によって描かれた。パリ、1869年11月20日。
- The numbers of men present are represented by the widths of the colored zones in a rate of one millimeter for ten thousand men; these are also written beside the zones.
- Red designates men moving into Russia, black those on retreat.
+ 男性の数は、一万人につき一ミリメートルの割合で色付きゾーンの幅によって表され、これらはまたゾーンの横に書かれています。赤はロシアへ進む男性を、黒は撤退する男性を表します。
-
The information used for drawing the map were taken from the works of Messrs. Thiers, de Ségur, de Fezensac, de Chambray and the unpublished diary of Jacob, pharmacist of the Army since 28 October.
-
In order to facilitate the judgement of the eye regarding the diminution of the army, I supposed that the troops under Prince Jèrôme and under Marshal Davoust, who were sent to Minsk and Mobilow and who rejoined near Orscha and Witebsk, had always marched with the army.
Data for Charles Minard's Chart of Napoleon's Invasion of Russia
+
ナポレオンのロシア侵攻のチャールズ・ミナードのチャートのデータ
-
Location
-
Approximate Date
-
Size of Army
-
Temperature C
-
Temperature F
-
Direction
+
場所
+
大体の日付
+
軍の規模
+
温度C
+
温度F
+
方向
-
Kowno River
-
June 24th
+
コウノ川
+
6月24日
442,000
na
na
-
Advance
+
前進
-
Wilna
-
June 30th
+
ヴィルナ
+
6月30日
400,000
na
na
-
Advance
+
前進
-
Witebsk
+
ヴィテブスク
na
175,000
na
na
-
Advance
+
前進
-
Smolensk
-
August 16th
+
スモレンスク
+
8月16日
145,000
na
na
-
Advance
+
前進
-
Chjat
+
チャート
na
127,000
na
na
-
Advance
+
前進
-
Mojaisk
-
September 7th
+
モジャイスク
+
9月7日
100,000
na
na
-
Advance
+
前進
-
Moscow
-
September 14th
+
モスクワ
+
9月14日
100,000
na
na
-
Advance
+
前進
-
Malo-jarosewli
-
October 18th
+
マロ・ヤロセウリ
+
10月18日
96,000
0
32
-
Retreat
+
撤退
-
Mojaisk
-
October 24th
+
モジャイスク
+
10月24日
87,000
0
32
-
Retreat
+
撤退
-
Wirma
+
ヴィルマ
na
55,000
na
na
-
Retreat
+
撤退
-
Smolensk
-
November 14th
+
スモレンスク
+
11月14日
37,000
-26
-13
-
Retreat
+
撤退
-
Orscha
+
オルシャ
na
24,000
na
na
-
Retreat
+
撤退
-
Botr
+
ボトル
na
20,000
-14
-7
-
Retreat
+
撤退
-
Studienska (reinforcements arrive)
-
December 1st
+
ステュディエンスカ(増援到着)
+
12月1日
50,000
-25
-13
-
Retreat
+
撤退
-
Minsk
-
December 1st
+
ミンスク
+
12月1日
28,000
-30
-22
-
Retreat
+
撤退
-
Moloderno
-
December 6th
+
モロデルノ
+
12月6日
28,000
-38
-34
-
Retreat
+
撤退
-
Smorgeni
-
December 7th
+
スモルゲニ
+
12月7日
12,000
-33
-27
-
Retreat
+
撤退
-
Wilna
+
ヴィルナ
na
8,000
na
na
-
Retreat
+
撤退
-
Kowno (reinforcements arrive)
-
December 14th
+
コウノ(増援到着)
+
12月14日
10,000
na
na
-
Retreat
+
撤退
@@ -246,32 +244,32 @@
Data for Charles Minard's Chart of Napoleon's Invasion of
-
Accessibility Features
+
アクセシビリティ機能
-
To help people with visual impairments identify the disclosure as interactive and make it easier to perceive that clicking either the disclosure button or its label changes the expanded state, when a pointer hovers over the button or its label, the background color changes, a border appears, and the cursor changes to a pointer.
- Because transparent borders are visible on some systems with operating system high contrast settings enabled, transparency cannot be used to create a visual difference between the element that is focused and other elements.
- Instead of using transparency, the focused element has a thicker border and less padding.
- When an element receives focus, its border changes from 0 to 2 pixels and padding is reduced by 2 pixels.
- When an element loses focus, its border changes from 2 pixels to 0 and padding is increased by 2 pixels.
+ オペレーティングシステムのハイコントラスト設定が有効なシステムでは透明な境界線が表示されるため、透明を使用してフォーカスされた要素と他の要素との視覚的な違いを作り出すことはできません。
+ 透明性を使用せず、フォーカスされた要素は境界線が太くなり、パディングが少なくなります。
+ 要素がフォーカスを受け取ると、その境界線は0から2ピクセルに変わり、パディングは2ピクセル減少します。
+ 要素がフォーカスを失うと、その境界線は2ピクセルから0に変わり、パディングは2ピクセル増加します。
- To ensure the inline SVG arrow graphics in the CSS have sufficient contrast with the background when high contrast settings invert colors, the color of the arrows are synchronized with the color of the text content.
- For example, the color of the arrow is set to match the foreground color of high contrast mode text by specifying the CSS currentcolor value for the stroke and fill properties of the polygon elements used to draw the arrows.
- If specific colors were instead used to specify the polygon properties, those colors would remain the same in high contrast mode, which could lead to insufficient contrast between the arrows and the background or even make the arrows invisible if the color matched the high contrast mode background.
- Note: The SVG element needs to have the CSS forced-color-adjust property set to auto for the currentcolor value to be updated in high contrast mode.
- Some browsers do not use auto for the default value.
+ ハイコントラスト設定で色が反転したときにCSS内のインラインSVG矢印グラフィックが背景と十分なコントラストを持つように、矢印の色はテキストコンテンツの色と同期されます。
+ 例えば、polygon要素のstrokeおよびfillプロパティにCSSのcurrentcolor値を指定することで、ハイコントラストモードテキストの前景色と一致する矢印の色が設定されます。
+ polygonプロパティに特定の色を使用した場合、それらの色はハイコントラストモードでも変わらず、矢印と背景の間のコントラストが不十分になるか、色がハイコントラストモードの背景と一致して矢印が見えなくなる可能性があります。
+ 注記: SVG要素はハイコントラストモードでcurrentcolor値が更新されるようにCSSのforced-color-adjustプロパティをautoに設定する必要があります。
+ 一部のブラウザでは、デフォルト値としてautoを使用しません。
-
Keyboard Support
+
キーボードサポート
-
Key
-
Function
+
キー
+
機能
@@ -279,28 +277,28 @@
Keyboard Support
Tab
-
Moves keyboard focus to the disclosure button.
+
キーボードフォーカスをディスクロージャーボタンに移動します。
- Space or
+ Space または Enter
-
Activates the disclosure button, which toggles the visibility of the long description.
+
ディスクロージャーボタンをアクティベートし、長い説明の表示を切り替えます。
-
Role, Property, State, and Tabindex Attributes
+
ロール、プロパティ、ステート、およびTabindex属性
-
Role
-
Attribute
-
Element
-
Usage
+
ロール
+
属性
+
要素
+
使用法
@@ -310,7 +308,7 @@
Role, Property, State, and Tabindex Attributes
aria-controls="ID_REFERENCE"
button
-
Identifies the element controlled by the disclosure button.
+
ディスクロージャーボタンによって制御される要素を特定します。
@@ -322,11 +320,11 @@
Role, Property, State, and Tabindex Attributes
-
Indicates that the container controlled by the disclosure button is hidden .
+
ディスクロージャーボタンによって制御されるコンテナが非表示であることを示します。
- CSS attribute selectors (e.g. [aria-expanded="false"]) synchronize the visual states with the value of the aria-expanded attribute.
+ CSS属性セレクタ(例:[aria-expanded="false"])を使用して、aria-expanded属性の値と視覚的状態を同期します。
-
The visual indicator of the show/hide state is created using the CSS :before pseudo element and the content property so the image is reliably rendered in high contrast mode of operating systems and browsers.
Indicates that the container controlled by the disclosure button is visible.
+
ディスクロージャーボタンによって制御されるコンテナが表示されていることを示します。
- CSS attribute selectors (e.g. [aria-expanded="true"]) synchronize the visual states with the value of the aria-expanded attribute.
+ CSS属性セレクタ(例:[aria-expanded="true"])を使用して、aria-expanded属性の値と視覚的状態を同期します。
-
The visual indicator of the show/hide state is created using the CSS :before pseudo element and the content property so the image is reliably rendered in high contrast mode of operating systems and browsers.
diff --git a/content/patterns/disclosure/examples/disclosure-navigation-hybrid.html b/content/patterns/disclosure/examples/disclosure-navigation-hybrid.html
index 31390dbc..7c892ad5 100644
--- a/content/patterns/disclosure/examples/disclosure-navigation-hybrid.html
+++ b/content/patterns/disclosure/examples/disclosure-navigation-hybrid.html
@@ -1,9 +1,9 @@
-
+
- Example Disclosure Navigation Menu with Top-Level Links
+ トップレベルリンク付きディスクロージャー(表示/非表示)ナビゲーションメニューの例
@@ -20,170 +20,170 @@
-
Example Disclosure Navigation Menu with Top-Level Links
+
トップレベルリンク付きディスクロージャー(表示/非表示)ナビゲーションメニューの例
+
-
About This Example
+
この例について
-
Important
+
重要
- Although this example uses the word "menu" in the colloquial sense to refer to a set of navigation links, it does not use the WAI-ARIA menu role.
- This implementation of site navigation does not use the menu role because it does not provide the complex functionality that assistive technologies expect in a widget that has the menu role.
- Typical site navigation does not need all the
- keyboard interactions specified by the menu and menubar pattern.
+ この例では、ナビゲーションリンクのセットを指すために俗に「メニュー」という言葉を使用していますが、WAI-ARIAのメニューロールは使用していません。
+ このサイトナビゲーションの実装は、支援技術がメニューロールのウィジェットに期待する複雑な機能を提供しないため、メニューロールを使用していません。
+ 典型的なサイトナビゲーションは、メニューとメニューバーパターンによって指定されたキーボード操作をすべて必要としません。
- The following example demonstrates using the Disclosure Pattern to show and hide dropdown lists of links in a navigation bar for a mythical university web site.
- Unlike the other disclosure navigation menu example, this example includes top-level links alongside the disclosure buttons.
+ 次の例は、架空の大学のウェブサイトのナビゲーションバーにおいて、リンクのドロップダウンリストを表示および非表示にするためにディスクロージャーパターンを使用する方法を示しています。
+ 他のディスクロージャーナビゲーションメニューの例とは異なり、この例にはディスクロージャーボタンの隣にトップレベルリンクが含まれています。
- This example demonstrates two different ways of implementing keyboard support.
- Toggle between them with the following checkbox.
+ この例では、キーボードサポートを実装する2つの異なる方法を示しています。
+ 次のチェックボックスでそれらの間を切り替えることができます。
-
Example
+
例
-
Mythical University
-
Using a disclosure + link pattern for navigation
+
架空大学
+
ナビゲーション用のディスクロージャー + リンクパターンの使用
-
-
Accessibility Features
+
アクセシビリティ機能
-
Since this set of links and disclosure buttons provides navigation for the mythical university web site, the list that contains them is wrapped in a navigation landmark named Mythical University.
- The semantics of the list structure communicate the hierarchy of the navigation system to assistive technology users.
- The top-level list has three items where each item contains a top-level link and an associated disclosure button.
- The set of links controlled by a disclosure button is in a list nested inside the list item that contains the button.
+ リストの構造のセマンティクスは、ナビゲーションシステムの階層を支援技術の利用者に伝えます。
+ トップレベルのリンクとそれに関連するディスクロージャーボタンを含むトップレベルアイテムが3つあるリストです。
+ ディスクロージャーボタンによって制御されるリンクのセットは、そのボタンを含むリストアイテム内にネストされたリストにあります。
- If a dropdown is open and focus is inside the navigation region, pressing Esc will close the dropdown.
- Moving focus out of the navigation region also closes an open dropdown.
+ ドロップダウンが開いていて、ナビゲーション領域内にフォーカスがある場合、Escを押すとドロップダウンが閉じます。
+ ナビゲーション領域外にフォーカスを移動すると、開いているドロップダウンも閉じます。
- Optional navigation key support is primarily for the benefit of keyboard users who are not running a screen reader.
- Screen readers that have both reading and interaction modes intercept these navigation keys and do not pass them to the page when the screen reader is in reading mode.
- When interacting with this example, such screen readers are typically in reading mode because this example does not use a widget role that triggers screen reader interaction mode.
+ オプショナルなナビゲーションキーサポートは、主にスクリーンリーダーを実行していないキーボード利用者の利益のためのものです。
+ 読み取りおよびインタラクションモードの両方を持つスクリーンリーダーは、これらのナビゲーションキーをインターセプトし、スクリーンリーダーが読み取りモードにある場合、これらのキーをページに渡しません。
+ この例と対話する際、そのようなスクリーンリーダーは通常、この例がスクリーンリーダーのインタラクションモードをトリガーするウィジェットロールを使用していないため、読み取りモードにあります。
- If implemented, the optional navigation keys supplement, but do not replace, tabbing among buttons and links.
- This is because the buttons and links are not contained by an element with a widget role, such as grid, that is expected to occupy only one stop in the page Tab sequence and manage focus for all its descendants.
+ 実装されている場合、オプショナルなナビゲーションキーは、ボタンとリンク間のタビングを補完しますが、置き換えません。
+ これは、ボタンとリンクがgridのようなウィジェットロールで囲まれておらず、そのロールがページTabシーケンスの中で1つの停止点を占め、そのすべての子孫のフォーカスを管理することが期待されていないためです。
@@ -191,12 +191,12 @@
Accessibility Features
-
Keyboard Support
+
キーボードサポート
-
Key
-
Function
+
キー
+
機能
@@ -205,7 +205,7 @@
Keyboard Support
Tab Shift + Tab
-
Move keyboard focus among top-level links and buttons, and if a dropdown is open, through links in the dropdown.
If focus is on a top-level link or button with a collapsed dropdown, and it is not the last top-level item, moves focus to the next top-level link or button.
-
if focus is on a top-level button and its dropdown is expanded, moves focus to the first link in the dropdown.
-
If focus is on a link within an expanded dropdown, and it is not the last link, moves focus to the next link.
Indicates that the disclosure button controls visibility of the container identified by the IDREF value.
+
IDREF値で識別されるコンテナの可視性をディスクロージャーボタンが制御していることを示します。
@@ -313,9 +313,9 @@
Role, Property, State, and Tabindex Attributes
-
Indicates that the container controlled by the disclosure button is hidden.
+
ディスクロージャーボタンによって制御されるコンテナが非表示であることを示します。
- CSS attribute selectors (e.g. [aria-expanded="false"]) are used to synchronize the visual states with the value of the aria-expanded attribute.
+ CSS属性セレクタ(例:[aria-expanded="false"])を使用して、aria-expanded属性の値と視覚的な状態を同期させます。
@@ -330,9 +330,9 @@
Role, Property, State, and Tabindex Attributes
-
Indicates that the container controlled by the disclosure button is visible.
+
ディスクロージャーボタンによって制御されるコンテナが表示されていることを示します。
- CSS attribute selectors (e.g. [aria-expanded="true"]) are used to synchronize the visual states with the value of the aria-expanded attribute.
+ CSS属性セレクタ(例:[aria-expanded="true"])を使用して、aria-expanded属性の値と視覚的な状態を同期させます。
@@ -345,29 +345,29 @@
Role, Property, State, and Tabindex Attributes
a
-
Indicates that the page referenced by the link is currently displayed.
- Although this example uses the word "menu" in the colloquial sense to refer to a set of navigation links, it does not use the WAI-ARIA menu role.
- This implementation of site navigation does not use the menu role because it does not provide the complex functionality that assistive technologies expect in a widget that has the menu role.
- Typical site navigation does not need all the
- keyboard interactions specified by the menu and menubar pattern.
+ この例では、ナビゲーションリンクのセットを指すために日常的に「メニュー」という言葉を使用していますが、WAI-ARIAのmenuロールは使用していません。
+ サイトナビゲーションのこの実装は、支援技術がmenuロールを持つウィジェットに期待する複雑な機能を提供しないため、menuロールを使用していません。
+ 典型的なサイトナビゲーションには、メニューとメニューバーのパターンによって指定されたキーボード操作のすべてが必要ありません。
- The following example demonstrates using the Disclosure Pattern to show and hide dropdown lists of links in a navigation bar for a mythical university web site.
- Each disclosure button represents a section of the web site, and expanding it shows a list of links to pages within that section.
+ 次の例は、架空の大学のウェブサイトのナビゲーションバーにおいて、ディスクロージャーパターンを使用してリンクのドロップダウンリストを表示および非表示にする方法を示しています。
+ 各ディスクロージャーボタンはウェブサイトのセクションを表しており、展開するとそのセクション内のページへのリンクリストが表示されます。
- This example demonstrates two different ways of implementing keyboard support.
- Toggle between them with the following checkbox.
+ この例は、キーボードサポートを実装する2つの異なる方法を示しています。
+ 以下のチェックボックスで切り替えます。
- Sample content section.
- Activating a link above will update and navigate to this region.
+ サンプルコンテンツセクション。
+ 上記のリンクを活性化すると、この領域が更新されてナビゲートされます。
@@ -152,33 +152,31 @@
Mythical University
-
Accessibility Features
+
アクセシビリティ機能
-
Since this set of disclosure buttons controls visibility of navigation links for the mythical university web site, the list that contains them is wrapped in a navigation landmark named Mythical University.
- The semantics of the list structure communicates the hierarchy of the navigation system to assistive technology users.
- The top-level set of three buttons is in a list of three items, and the set of links controlled by each button is contained within a list nested inside the item with the controlling button.
+ リスト構造のセマンティクスは、支援技術の利用者にナビゲーションシステムの階層を伝えます。
+ 3つのボタンのトップレベルセットは、3つのアイテムのリストにあり、各ボタンによって制御されるリンクのセットは、制御ボタンを含むアイテム内のネストされたリスト内に含まれています。
- If a dropdown is open and focus is inside the navigation region, pressing Esc will close the dropdown.
- Moving focus out of the navigation region also closes an open dropdown.
- Implementing this Esc behavior is necessary to meet the WCAG 2.1
- 1.4.13: Content on Hover or Focus
- criterion.
+ ドロップダウンが開かれ、フォーカスがナビゲーション領域内にある場合、Escを押すとドロップダウンが閉じます。
+ ナビゲーション領域からフォーカスを移動すると、開いているドロップダウンも閉じます。
+ このEscの振る舞いを実装することは、WCAG 2.1の1.4.13: ホバーまたはフォーカス時のコンテンツ基準を満たすために必要です。
-
The visual indicator of the show/hide state is created using CSS ::after pseudo element border styles so the caret is reliably rendered in high contrast mode of operating systems and browsers.
- Optional navigation key support is primarily for the benefit of keyboard users who are not running a screen reader.
- Screen readers that have both reading and interaction modes intercept these navigation keys and do not pass them to the page when the screen reader is in reading mode.
- When interacting with this example, such screen readers are typically in reading mode because this example does not use a widget role that triggers screen reader interaction mode.
+ オプショナルなナビゲーションキーサポートは、主にスクリーンリーダーを使用していないキーボードユーザーのためのものです。
+ 読み取りモードとインタラクションモードの両方を持つスクリーンリーダーは、これらのナビゲーションキーを捕捉し、スクリーンリーダーが読み取りモードにあるときはこれらのキーをページに渡しません。
+ この例とやり取りするとき、そのようなスクリーンリーダーは通常、この例がスクリーンリーダーのインタラクションモードをトリガーするウィジェットロールを使用していないため、読み取りモードにあります。
- If implemented, the optional navigation keys supplement, but do not replace, tabbing among buttons and links.
- This is because the buttons and links are not contained by an element with a widget role, such as grid, that is expected to occupy only one stop in the page Tab sequence and manage focus for all its descendants.
+ 実装された場合、オプショナルなナビゲーションキーは、ボタンやリンク間のタブ移動を補完しますが、それに置き換わるものではありません。
+ これは、ボタンとリンクが、ページのTabシーケンスの中で1つの停止だけを占め、そのすべての子孫のフォーカスを管理することが期待されるgridのようなウィジェットロールを持つ要素に含まれていないためです。
@@ -186,12 +184,12 @@
Accessibility Features
-
Keyboard Support
+
キーボードサポート
-
Key
-
Function
+
キー
+
機能
@@ -200,22 +198,22 @@
Keyboard Support
Tab Shift + Tab
-
Move keyboard focus among top-level buttons, and if a dropdown is open, into and through links in the dropdown.
- Up Arrow or
+ Up Arrowまたは Left Arrow
- (Optional)
+ (オプショナル)
-
If focus is on a button, and it is not the first button, moves focus to the previous button.
-
If focus is on a link, and it is not the first link, moves focus to the previous link.
+
フォーカスがボタン上にあり、それが最初のボタンではない場合、前のボタンにフォーカスを移動します。
+
フォーカスがリンク上にあり、それが最初のリンクではない場合、前のリンクにフォーカスを移動します。
-
Home (Optional)
+
Home (オプショナル)
-
If focus is on a button, and it is not the first button, moves focus to the first button.
-
If focus is on a link, and it is not the first link, moves focus to the first link.
+
フォーカスがボタン上にあり、それが最初のボタンではない場合、最初のボタンにフォーカスを移動します。
+
フォーカスがリンク上にあり、それが最初のリンクではない場合、最初のリンクにフォーカスを移動します。
-
End (Optional)
+
End (オプショナル)
-
If focus is on a button, and it is not the last button, moves focus to the last button.
-
If focus is on a link, and it is not the last link, moves focus to the last link.
+
フォーカスがボタン上にあり、それが最後のボタンではない場合、最後のボタンにフォーカスを移動します。
+
フォーカスがリンク上にあり、それが最後のリンクではない場合、最後のリンクにフォーカスを移動します。
@@ -277,14 +275,14 @@
Keyboard Support
-
Role, Property, State, and Tabindex Attributes
+
ロール、プロパティ、ステート、およびTabindex属性
-
Role
-
Attribute
-
Element
-
Usage
+
ロール
+
属性
+
要素
+
使用法
@@ -296,7 +294,7 @@
Role, Property, State, and Tabindex Attributes
button
-
The disclosure button controls visibility of the container identified by the IDREF value.
+
ディスクロージャーボタンは、IDREF値で識別されるコンテナの表示を制御します。
@@ -308,9 +306,9 @@
Role, Property, State, and Tabindex Attributes
-
Indicates that the container controlled by the disclosure button is hidden.
+
ディスクロージャーボタンによって制御されるコンテナが非表示であることを示します。
- CSS attribute selectors (e.g. [aria-expanded="false"]) are used to synchronize the visual states with the value of the aria-expanded attribute.
+ CSS属性セレクター(例: [aria-expanded="false"])を使用して、aria-expanded属性の値と視覚的状態を同期します。
@@ -325,9 +323,9 @@
Role, Property, State, and Tabindex Attributes
-
Indicates that the container controlled by the disclosure button is visible.
+
ディスクロージャーボタンによって制御されるコンテナが表示されていることを示します。
- CSS attribute selectors (e.g. [aria-expanded="true"]) are used to synchronize the visual states with the value of the aria-expanded attribute.
+ CSS属性セレクター(例: [aria-expanded="true"])を使用して、aria-expanded属性の値と視覚的状態を同期します。
@@ -340,15 +338,15 @@
Role, Property, State, and Tabindex Attributes
a
-
Indicates that the page referenced by the link is currently displayed.