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

search-input

できること

このスキルは、サイトの検索ボックスと検索フォームを確認し、スクリーンリーダーやキーボードを使う人を含め、すべての人が使えるようにします。訪問者が内容を簡単に見つけられるようにしたい制作者向けです。

使う場面

  • ✓サイトの検索ボックスがアクセシブルか確認するようエージェントに頼むとき。
  • ✓スクリーンリーダーの利用者に、検索欄が何のためのものか分からないとき。
  • ✓自動補完の候補を追加していて、それがキーボードで動くようにしたいとき。

スキルのリンク

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

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

使い方

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

貼り付け用メッセージ

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

AIへの頼み方の例

“私のサイトの検索ボックスが、スクリーンリーダーの利用者とキーボードの利用者に使えるか確認してください。”

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

仕組み

エージェントは、検索欄がsearch入力タイプを使い、表示またはスクリーンリーダー向けのラベルがあり、searchロールを持つフォームの中にあるかを確認します。候補にキーボードで到達できるか、結果の件数が読み上げられるかも確認します。

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

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

Make search inputs accessible

Search is a primary navigation method—inaccessible search functionality prevents users from finding content efficiently regardless of their abilities.

Quick Reference

  • Use type='search' and role='search' on the form
  • Provide visible or screen reader accessible label
  • Make autocomplete suggestions keyboard navigable
  • Announce result counts to screen readers

Check

Verify search inputs use type='search', have accessible labels, and use role='search' on the containing form.

Fix

Implement search with type='search', visible or aria-label, form role='search', and accessible autocomplete suggestions.

Explain

Explain how accessible search implementations help users find content efficiently regardless of their abilities.

Code Review

Review templates, server-rendered HTML, and shared components that output markup related to Make search inputs accessible. 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/search-input

よくある質問

検索がアクセシブルである必要があるのはなぜですか?

このスキルによると、検索はサイト内を移動する主要な手段であり、検索が壊れていると、人がコンテンツを見つけられなくなるからです。

エージェントは検索ボックスの見た目を変えますか?

このスキルによると、デザインが表示のラベルを隠している場合にaria-labelを追加でき、見た目を変える必要はありません。

結果はどのように読み上げられますか?

このスキルは、結果が更新されるたびに、その件数をスクリーンリーダーに伝えることを勧めています。

詳細

作者による元の説明

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

repo: thedaviddias/Front-End-Checklist

人気

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

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

0

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

コメント

  • …

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

似ているスキル