Gathering detailed insights and metrics for ember-focus-trap
Gathering detailed insights and metrics for ember-focus-trap
Gathering detailed insights and metrics for ember-focus-trap
Gathering detailed insights and metrics for ember-focus-trap
npm install ember-focus-trap
Module System
Min. Node Version
Typescript Support
Node Version
NPM Version
42 Stars
216 Commits
11 Forks
2 Watching
7 Branches
9 Contributors
Updated on 13 Nov 2024
JavaScript (68.81%)
CSS (12.81%)
HTML (10.7%)
Handlebars (7.68%)
Cumulative downloads
Total Downloads
Last day
-42.7%
2,183
Compared to previous day
Last week
-15.3%
17,225
Compared to previous week
Last month
15.7%
81,283
Compared to previous month
Last year
5.2%
1,768,699
Compared to previous year
2
1
Ember Focus Trap: A Ember modifier to trap your focus.
We use focus-trap as a lower-level implementation. It is super lightweight and has minimal dependencies.
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.
Please read the focus-trap documentation to understand what a focus trap is, what happens when a focus trap is activated, and what happens when one is deactivated.
ember install ember-focus-trap
See demos and read the documentation here.
1<div {{focus-trap}}> 2 <p> 3 Here is a focus trap 4 <a href="#">with</a> 5 <a href="#">some</a> 6 <a href="#">focusable</a> 7 parts. 8 </p> 9 <p> 10 <button type="button">Some button</button> 11 </p> 12</div>
1<div 2 {{focus-trap 3 focusTrapOptions=(hash 4 onDeactivate=(action this.myFunction) 5 initialFocus="#initial-focusee" 6 ) 7 }} 8> 9 <p> 10 Here is a focus trap 11 <a href="#">with</a> 12 <a href="#">some</a> 13 <a href="#">focusable</a> 14 parts. 15 </p> 16 <p> 17 <button type="button" id="initial-focusee">Some button</button> 18 </p> 19</div>
See the Contributing guide for details.
This project is licensed under the MIT License.
No vulnerabilities found.
Reason
no dangerous workflow patterns detected
Reason
no binaries found in the repo
Reason
license file detected
Details
Reason
5 commit(s) and 0 issue activity found in the last 90 days -- score normalized to 4
Reason
Found 3/8 approved changesets -- score normalized to 3
Reason
detected GitHub workflow tokens with excessive permissions
Details
Reason
dependency not pinned by hash detected -- score normalized to 0
Details
Reason
no effort to earn an OpenSSF best practices badge detected
Reason
security policy file not detected
Details
Reason
project is not fuzzed
Details
Reason
branch protection not enabled on development/release branches
Details
Reason
SAST tool is not run on all commits -- score normalized to 0
Details
Reason
17 existing vulnerabilities detected
Details
Score
Last Scanned on 2024-11-25
The Open Source Security Foundation is a cross-industry collaboration to improve the security of open source software (OSS). The Scorecard provides security health metrics for open source projects.
Learn More