本文へスキップ
Skillpedia
WebサイトとUI(フロントエンド)75k · #2712

accessible-tooltips

できること

このスキルは、キーボードとスクリーンリーダーの利用者が、ツールチップに到達して内容を読めるかを確認します。ボタンやアイコンに役立つヒントを付けるWebチーム向けです。

使う場面

  • ✓訪問者がボタンやアイコンにカーソルを合わせると表示されるツールチップを作っているとき。
  • ✓ヒントがマウスの利用者にしか見えず、キーボードの利用者には見えないとき。
  • ✓共有のツールチップコンポーネントをアクセシビリティの観点でレビューしているとき。

スキルのリンク

https://github.com/thedaviddias/Front-End-Checklist/blob/main/skills/accessible-tooltips/SKILL.md

コピーしてAI(Claude、ChatGPT、Cursor)に貼り付け、指示に従うよう頼んでください。

使い方

いちばん簡単な方法:メッセージをコピーしてAIに貼り付けるだけ。AIがスキルを読んで指示に従います。

貼り付け用メッセージ

このスキルを使って手伝ってください:https://github.com/thedaviddias/Front-End-Checklist/blob/main/skills/accessible-tooltips/SKILL.md このリンクのSKILL.mdファイルを読んで、私の作業でその指示に従ってください。
こういうスキルを、AIが自分で見つけてくれたら?無料のSkillpedia MCPをインストール。1行で、作業の前に15,000+のスキルから探してくれます。1分でインストール →

AIへの頼み方の例

“私の設定ページのヘルプのツールチップが、キーボードとスクリーンリーダーで使えるか確認してください。”

毎週5つの新しいスキル。1分で読めます。

仕組み

エージェントは、フォーカスできるトリガー、適切なtooltipロール、トリガーとツールチップの間のリンク、Escapeキーで閉じる方法があるかをマークアップで確認します。

技術的な内容(元のSKILL.md)

作者による元のテキスト(英語)をGitHubからそのまま表示しています。

Create accessible tooltips

Inaccessible tooltips leave keyboard and screen reader users without important contextual information, creating an unequal experience and potential confusion.

Quick Reference

  • Tooltips must be keyboard accessible (focusable trigger)
  • Use aria-describedby to associate tooltip with trigger
  • Allow hover and focus to show tooltip, Escape to dismiss
  • Ensure sufficient contrast and don't hide essential info in tooltips

Check

Verify tooltips are keyboard accessible, use appropriate ARIA roles (tooltip), and can be dismissed without moving focus.

Fix

Implement tooltips with role='tooltip', aria-describedby, keyboard triggering, and Escape key dismissal.

Explain

Explain the accessibility requirements for tooltips including keyboard access, ARIA attributes, and timing considerations.

Code Review

Review templates, server-rendered HTML, and shared components that output markup related to Create accessible tooltips. Flag exact elements, attributes, and routes where the rendered HTML violates the rule.


For full implementation details, code examples, and framework-specific guidance, see references/rule.md.

Rule page: https://frontendchecklist.io/rules/html/accessible-tooltips

よくある質問

キーボードの利用者にとって、ツールチップがなぜ問題になりますか?

トリガーにフォーカスできない場合や、ツールチップがマウスを合わせたときだけ表示される場合、キーボードの利用者は追加の情報を見られません。

ツールチップに重要な情報を入れるべきですか?

いいえ。重要な詳細をツールチップの中だけに置くべきではないと、このスキルは説明しています。

ここでaria-describedbyは何をしますか?

トリガーとツールチップの文章をリンクし、スクリーンリーダーがヒントを読み上げられるようにします。

詳細

作者による元の説明

Use when reviewing templates, rendered HTML, or shared components related to Create accessible tooltips. Validate the final browser-facing markup, not just the source framework abstraction.

repo: thedaviddias/Front-End-Checklist

人気

GitHubのスター
75k
ランキング
#2712
ライセンス
MIT
更新日
2026/10/31

このスキルは役に立ちますか?

0

ログイン して投票しましょう。

コメント

  • …

このリポジトリの他のスキル

似ているスキル