Tooltip
ツールチップ
ツールチップは、コントロールについての短いメモです。マウスを乗せたり、キーボードでフォーカスを合わせたりすると開きます。ボタンのように使うことはできません。
role="tooltip"実際の例
アイコンボタンがキーボードフォーカスを得ると、「リンクをコピー」が表示されます。フォーカスはボタンにとどまります。
主な部分
- 01トリガー
- 02Anchored or modal surface
- 03Focus boundary
- 04Dismiss path
以下の場合に使用します
マウスホバーとキーボードフォーカスの両方で短いコントロールラベルを説明するために使用してください。
以下の場合は使用しないでください
ツールチップの中には、アクション、必読の指示、または長い内容を絶対に入れないでください。
コードで使用する名前
role="tooltip" 出荷前に
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 ツールチップ (Tooltip)。 User context:アイコンボタンがキーボードフォーカスを得ると、「リンクをコピー」が表示されます。フォーカスはボタンにとどまります。 Recommended pattern:ツールチップ (Tooltip)。 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):この標準は、列挙された範囲のみを対象とします。視覚スタイル、製品の判断、またはVibularyの例は選びません。 Unknowns to confirm: Product wording, data source, analytics events, supported devices and languages, and platform limits.
このリクエストを確認する
Review how ツールチップ (Tooltip) 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.