Menu Button
メニューボタン
メニューボタンは、操作や選択肢のリストを開きます。メニューが開いているかどうかをソフトウェアに伝えます。
実際の例
ドキュメントエディターでは、「エクスポート」でPDF、DOCX、Markdownの選択肢が開きます。下矢印でメニューを開き最初の項目にフォーカスが移ります。Escapeで閉じてフォーカスが戻ります。PDFを選ぶと1回のエクスポートが始まり、設定として保持されるわけではありません。
主な部分
- 01トリガーボタン
- 02ポップアップメニュー
- 03メニュー項目
以下の場合に使用します
ページが混雑してしまう場合に、すべてのボタンを表示せずに少数のコマンドに使用してください。メニューのキーボード操作を完全に含めてください。
以下の場合は使用しないでください
通常のサイトリンクや値を送信するフォームフィールドにメニューロールを使用しないでください。
コードで使用する名前
button aria-haspopup=menu aria-expanded + role=menu/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 Button)。 User context:ドキュメントエディターでは、「エクスポート」でPDF、DOCX、Markdownの選択肢が開きます。下矢印でメニューを開き最初の項目にフォーカスが移ります。Escapeで閉じてフォーカスが戻ります。PDFを選ぶと1回のエクスポートが始まり、設定として保持されるわけではありません。 Recommended pattern:メニューボタン (Menu Button)。 Why it fits:ページが混雑してしまう場合に、すべてのボタンを表示せずに少数のコマンドに使用してください。メニューのキーボード操作を完全に含めてください。 Do not use it when:通常のサイトリンクや値を送信するフォームフィールドにメニューロールを使用しないでください。 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 Button) 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.