Skip to content

Commit afe0cb2

Browse files
authored
Merge pull request #287 from ma10/faq-safari-tabkey-20250325
Safariのタブフォーカスに関するFAQ追加
2 parents 10581cb + c54fad5 commit afe0cb2

File tree

6 files changed

+89
-21
lines changed

6 files changed

+89
-21
lines changed

data/json/faq-tags.json

+24-21
Original file line numberDiff line numberDiff line change
@@ -1,36 +1,43 @@
11
{
2-
"markup": {
3-
"ja": "マークアップ",
4-
"en": "Markup"
2+
"android-tb": {
3+
"ja": "Android TalkBack",
4+
"en": "Android TalkBack"
5+
},
6+
"axe": {
7+
"ja": "axe DevTools",
8+
"en": "axe DevTools"
59
},
610
"form": {
711
"ja": "フォーム",
812
"en": "Form"
913
},
10-
"grayscale":
11-
{
14+
"grayscale": {
1215
"ja": "グレースケール表示",
1316
"en": "Grayscale View"
1417
},
15-
"axe": {
16-
"ja": "axe DevTools",
17-
"en": "axe DevTools"
18+
"ios-vo": {
19+
"ja": "iOS VoiceOver",
20+
"en": "iOS VoiceOver"
1821
},
19-
"nvda": {
20-
"ja": "NVDA",
21-
"en": "NVDA"
22+
"keyboard-operation": {
23+
"ja": "キーボード操作",
24+
"en": "Keyboard Operation"
2225
},
2326
"macos-vo": {
2427
"ja": "macOS VoiceOver",
2528
"en": "macOS VoiceOver"
2629
},
27-
"ios-vo": {
28-
"ja": "iOS VoiceOver",
29-
"en": "iOS VoiceOver"
30+
"markup": {
31+
"ja": "マークアップ",
32+
"en": "Markup"
3033
},
31-
"android-tb": {
32-
"ja": "Android TalkBack",
33-
"en": "Android TalkBack"
34+
"misc": {
35+
"ja": "その他",
36+
"en": "Miscellaneous"
37+
},
38+
"nvda": {
39+
"ja": "NVDA",
40+
"en": "NVDA"
3441
},
3542
"screen-reader": {
3643
"ja": "スクリーン・リーダー",
@@ -39,9 +46,5 @@
3946
"target-size": {
4047
"ja": "ターゲット・サイズ",
4148
"en": "Target Size"
42-
},
43-
"misc": {
44-
"ja": "その他",
45-
"en": "Miscellaneous"
4649
}
4750
}

data/yaml/faq/p0009.yaml

+59
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,59 @@
1+
id: p0009
2+
sortKey: 69000
3+
updated: '2025-03-25'
4+
tags:
5+
- keyboard-operation
6+
title:
7+
ja: Safariでのみ、Tabキーによるフォーカス移動の挙動がおかしい
8+
en: Tab key focus movement behaves strangely only in Safari
9+
problem:
10+
ja: |-
11+
SafariでWebページを表示して、 :kbd:`Tab` キーや :kbd:`Shift+Tab` キーでフォーカスを移動すると、本来フォーカスされるべきなのにスキップされる要素がある。
12+
Google Chromeや他のブラウザーでは適切にフォーカス移動できているが、コンテンツ側で何らかの対応が必要か。
13+
en: |-
14+
When displaying a Web page in Safari, there are elements that should be focused but are skipped when moving focus with the :kbd:`Tab` key or :kbd:`Shift+Tab` key.
15+
Google Chrome and other browsers can move focus correctly, but is there any action required on the content side?
16+
solution:
17+
ja: |-
18+
デフォルト設定でSafariを使用している場合の挙動なので対処は不要。
19+
:kbd:`option+Tab` と :kbd:`Shift+option+Tab` キーを使用すると他のブラウザーと同様の挙動になる。
20+
en: |-
21+
Since this is the behavior when using Safari with the default settings, no action is required.
22+
Using the :kbd:`option+Tab` and :kbd:`Shift+option+Tab` keys will behave the same as other browsers.
23+
explanation:
24+
ja: |-
25+
デフォルト設定でSafariを使用している場合、リンクやボタンなど、本来 :kbd:`Tab` キーや :kbd:`Shift+Tab` キーでフォーカスを移動できるはずの要素の一部に、フォーカスが移動できません。
26+
代わりに、 :kbd:`option+Tab` キーや :kbd:`Shift+option+Tab` キーを使用すると、他のブラウザーと同様にフォーカスを移動できます。
27+
28+
フォーカス順序のチェックをする場合、通常は他のブラウザーで確認して問題なければ問題はありません。
29+
もしSafariでチェックを実施する必要がある場合は、 :kbd:`option+Tab` キーと :kbd:`Shift+option+Tab` キーを使用して確認します。
30+
31+
なお、macOS上のSafariを使用している場合は、以下のいずれかの設定をすることで、 :kbd:`Tab` キーと :kbd:`Shift+Tab` キーの挙動が他のブラウザーと同様になります。
32+
33+
* Safariの :menuselection:`設定 --> 詳細` で、「Tabキーを押したときにWebページ上の各項目を強調表示」にチェックを入れる
34+
* macOSの :menuselection:`環境設定 --> アクセシビリティ --> キーボード` で「フルキーボードアクセス」を有効にする
35+
en: |-
36+
When using Safari with the default settings, some elements, such as links and buttons, that should be able to move focus to with the :kbd:`Tab` key or :kbd:`Shift+Tab` key, don't receive focus.
37+
Instead, using the :kbd:`option+Tab` key and :kbd:`Shift+option+Tab` key will allow you to move focus as in other browsers.
38+
39+
When checking the focus order, if there are no issues when checking with other browsers, usually there is no problem.
40+
If you need to check with Safari, use the :kbd:`option+Tab` key and :kbd:`Shift+option+Tab` key to check.
41+
42+
Note that by one of the following settings, the behavior of the :kbd:`Tab` key and :kbd:`Shift+Tab` key in Safari on macOS will be the same as in other browsers.
43+
44+
* In Safari's :menuselection:`Preferences --> Advanced`, check "Press Tab to highlight each item on a webpage."
45+
* In macOS :menuselection:`System Preferences --> Accessibility --> Keyboard`, enable "Full Keyboard Access."
46+
info:
47+
- exp-tab-order-check
48+
checks:
49+
- '0171'
50+
- '0172'
51+
guidelines:
52+
- gl-dynamic-content-focus
53+
- gl-form-dynamic-content-focus
54+
- gl-form-keyboard-operable
55+
- gl-form-tab-order
56+
- gl-input-device-focus
57+
- gl-input-device-focus-indicator
58+
- gl-input-device-keyboard-operable
59+
- gl-link-tab-order

en/source/explanations/tab-order-check.rst

+2
Original file line numberDiff line numberDiff line change
@@ -118,3 +118,5 @@ Tab/Shift+Tabキーでフォーカスを移動した際に、ユーザーが予
118118
:ref:`exp-form-dynamic-content` も併せて参照。
119119

120120
.. include:: /inc/info2gl/exp-tab-order-check.rst
121+
122+
.. include:: /inc/info2faq/exp-tab-order-check.rst

en/source/intro/history.rst

+1
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,7 @@ For the changes to the original Japanese version, please refer to the `Japanese
1414

1515
* Added FAQ: :ref:`faq-d0004`
1616
* Added FAQ: :ref:`faq-p0008`
17+
* Added FAQ: :ref:`faq-p0009`
1718

1819
`Ver. 202411.0 (Nov 22, 2024) <https://github.com/freee/a11y-guidelines/releases/202411.0>`__
1920
=============================================================================================

ja/source/explanations/tab-order-check.rst

+2
Original file line numberDiff line numberDiff line change
@@ -118,3 +118,5 @@ Tab/Shift+Tabキーでフォーカスを移動した際に、ユーザーが予
118118
:ref:`exp-form-dynamic-content` も併せて参照。
119119

120120
.. include:: /inc/info2gl/exp-tab-order-check.rst
121+
122+
.. include:: /inc/info2faq/exp-tab-order-check.rst

ja/source/intro/history.rst

+1
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,7 @@ Ver. 202205.0以降、チェック内容に関連する更新情報は :ref:`che
1313

1414
* FAQ追加: :ref:`faq-d0004`
1515
* FAQ追加: :ref:`faq-p0008`
16+
* FAQ追加: :ref:`faq-p0009`
1617

1718
.. include:: ChangeLog/2024/202411.0.rst
1819
.. include:: ChangeLog/2024/202409.0.rst

0 commit comments

Comments
 (0)