Menu
メニュー
コマンドメニューは、特別なキーボードフォーカスルールを持つ一連のアクションまたは選択肢です。通常、ボタンや他のコマンド領域から開きます。
実際の例
メニューには「名前を変更」「複製」「アーカイブ」が含まれます。フォーカスは最初の項目から始まり、矢印キーで移動でき、Enter で操作を実行し、Escape でフォーカスを戻します。通常のウェブサイトリンクは、通常のリンクキーボード動作を維持するべきです。
主な部分
- 01メニューコンテナ
- 02メニュー項目
- 03ロービングフォーカス
以下の場合に使用します
メニュー型のキーボード動作を必要とするアプリコマンドの小さなグループには、この用語を使用します。
以下の場合は使用しないでください
通常のリンクリスト、セレクトコントロール、または表示非表示のコンテンツに role=menu を追加しないでください。
コードで使用する名前
role=menu → role=menuitem 出荷前に
Move focus on purpose. Keep it inside only when the overlay blocks the page. Support Escape and a visible close button, then return focus to the opener. Keep entered data and check small-screen, loading, and failure states.
Outcome:Complete the task with メニュー (Menu)。 User context:メニューには「名前を変更」「複製」「アーカイブ」が含まれます。フォーカスは最初の項目から始まり、矢印キーで移動でき、Enter で操作を実行し、Escape でフォーカスを戻します。通常のウェブサイトリンクは、通常のリンクキーボード動作を維持するべきです。 Recommended pattern:メニュー (Menu)。 Why it fits:メニュー型のキーボード動作を必要とするアプリコマンドの小さなグループには、この用語を使用します。 Do not use it when:通常のリンクリスト、セレクトコントロール、または表示非表示のコンテンツに role=menu を追加しないでください。 Product requirements: Define the default, loading, empty, error, success, and recovery states. Keep user input. Give clear feedback after every action. Accessibility and resilience: Use semantic HTML, full keyboard access, and visible focus. Make the layout work when zoomed and support reduced motion. Follow the project’s current rules. Do not add a new UI library unless the project already uses it. Acceptance criteria: The main task works with keyboard only and at 320px width. Focus and status changes are announced. Check loading, failure, retry, cancel, and reduced-motion paths. Evidence and limits (evidence boundary):その情報源にとって公式です。他のプラットフォームやチームはその用語を別の方法で使用する場合があります。 Unknowns to confirm: Product wording, data source, analytics events, supported devices and languages, and platform limits.
このリクエストを確認する
Review how メニュー (Menu) is used now. Definition: コマンドメニューは、特別なキーボードフォーカスルールを持つ一連のアクションまたは選択肢です。通常、ボタンや他のコマンド領域から開きます。 Release checks: Move focus on purpose. Keep it inside only when the overlay blocks the page. Support Escape and a visible close button, then return focus to the opener. Keep entered data and check small-screen, loading, and failure states. Before changing code, list the evidence, gaps, severity, and the smallest safe fix.