focus-trap が採用されたサイト事例一覧です。
Trap focus within a DOM node.
There may come a time when you find it important to trap focus within a DOM node — so that when a user hits Tab or Shift+Tab or clicks around, she can't escape a certain cycle of focusable elements.
You will definitely face this challenge when you are trying to build accessible modals.
This module is a little, modular vanilla JS solution to that problem.
(DeepL翻訳)
DOMノード内でフォーカスを捕捉する。
ユーザーが Tab キーや Shift+Tab キーを押したり、クリックしたりすると、フォーカス可能な要素の特定のサイクルから逃れられないようにします。
アクセシブルなモーダルを作ろうとしているとき、間違いなくこの課題に直面するでしょう。
https://github.com/focus-trap/focus-trap
There may come a time when you find it important to trap focus within a DOM node — so that when a user hits Tab or Shift+Tab or clicks around, she can't escape a certain cycle of focusable elements.
You will definitely face this challenge when you are trying to build accessible modals.
This module is a little, modular vanilla JS solution to that problem.
(DeepL翻訳)
DOMノード内でフォーカスを捕捉する。
ユーザーが Tab キーや Shift+Tab キーを押したり、クリックしたりすると、フォーカス可能な要素の特定のサイクルから逃れられないようにします。
アクセシブルなモーダルを作ろうとしているとき、間違いなくこの課題に直面するでしょう。
https://github.com/focus-trap/focus-trap
Showing 1 to 1 of 1 results