Installations
npm install postcss-focus
Developer Guide
Typescript
No
Module System
N/A
Min. Node Version
^18.0.0 || >=20.0.0
Node Version
20.4.0
NPM Version
9.7.2
Score
90.7
Supply Chain
82.4
Quality
75.6
Maintenance
100
Vulnerability
100
License
Contributors
Unable to fetch Contributors
Languages
JavaScript (100%)
Developer
postcss
Download Statistics
Total Downloads
4,830,952
Last Day
2,755
Last Week
14,142
Last Month
59,641
Last Year
624,867
GitHub Statistics
117 Stars
90 Commits
11 Forks
9 Watching
1 Branches
19 Contributors
Bundle Size
598.00 B
Minified
367.00 B
Minified + Gzipped
Sponsor this package
Package Meta Information
Latest Version
7.0.0
Package Id
postcss-focus@7.0.0
Unpacked Size
3.95 kB
Size
1.92 kB
File Count
4
NPM Version
9.7.2
Node Version
20.4.0
Publised On
10 Jul 2023
Total Downloads
Cumulative downloads
Total Downloads
4,830,952
Last day
2%
2,755
Compared to previous day
Last week
-3.8%
14,142
Compared to previous week
Last month
12.6%
59,641
Compared to previous month
Last year
13.4%
624,867
Compared to previous year
Daily Downloads
Weekly Downloads
Monthly Downloads
Yearly Downloads
Peer Dependencies
1
PostCSS Focus
PostCSS plugin to add :focus-visible
selector to every :hover
for keyboard accessibility.
See also postcss-pseudo-class-enter for more explicit way.
1*:focus-visible { 2 outline: 0; 3} 4.button:hover { 5 background: red; 6}
1*:focus-visible { 2 outline: 0; 3} 4.button:hover { 5 background: red; 6} 7.button:focus-visible { 8 background: red; 9}
If there is a :focus-visible
selector, it will be excluded
from the processing.
1.a:hover, .b:hover { 2 outline: 0; 3} 4.b:focus-visible { 5 background: red; 6}
1.a:hover, .b:hover, .a:focus-visible { 2 outline: 0; 3} 4.b:focus-visible { 5 background: red; 6}
Docs
Read full docs here.
No vulnerabilities found.
Reason
no binaries found in the repo
Reason
no dangerous workflow patterns detected
Reason
GitHub workflow tokens follow principle of least privilege
Details
- Info: topLevel 'contents' permission set to 'read': .github/workflows/test.yml:8
- Info: no jobLevel write permissions found
Reason
license file detected
Details
- Info: project has a license file: LICENSE:0
- Info: FSF or OSI recognized license: MIT License: LICENSE:0
Reason
3 existing vulnerabilities detected
Details
- Warn: Project is vulnerable to: GHSA-3xgq-45jj-v275
- Warn: Project is vulnerable to: GHSA-952p-6rrq-rcjv
- Warn: Project is vulnerable to: GHSA-mwcw-c2x4-8c55
Reason
Found 2/20 approved changesets -- score normalized to 1
Reason
0 commit(s) and 0 issue activity found in the last 90 days -- score normalized to 0
Reason
dependency not pinned by hash detected -- score normalized to 0
Details
- Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/test.yml:15: update your workflow using https://app.stepsecurity.io/secureworkflow/postcss/postcss-focus/test.yml/main?enable=pin
- Warn: third-party GitHubAction not pinned by hash: .github/workflows/test.yml:17: update your workflow using https://app.stepsecurity.io/secureworkflow/postcss/postcss-focus/test.yml/main?enable=pin
- Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/test.yml:21: update your workflow using https://app.stepsecurity.io/secureworkflow/postcss/postcss-focus/test.yml/main?enable=pin
- Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/test.yml:38: update your workflow using https://app.stepsecurity.io/secureworkflow/postcss/postcss-focus/test.yml/main?enable=pin
- Warn: third-party GitHubAction not pinned by hash: .github/workflows/test.yml:40: update your workflow using https://app.stepsecurity.io/secureworkflow/postcss/postcss-focus/test.yml/main?enable=pin
- Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/test.yml:44: update your workflow using https://app.stepsecurity.io/secureworkflow/postcss/postcss-focus/test.yml/main?enable=pin
- Info: 0 out of 4 GitHub-owned GitHubAction dependencies pinned
- Info: 0 out of 2 third-party GitHubAction dependencies pinned
Reason
no effort to earn an OpenSSF best practices badge detected
Reason
security policy file not detected
Details
- Warn: no security policy file detected
- Warn: no security file to analyze
- Warn: no security file to analyze
- Warn: no security file to analyze
Reason
project is not fuzzed
Details
- Warn: no fuzzer integrations found
Reason
branch protection not enabled on development/release branches
Details
- Warn: branch protection not enabled for branch 'main'
Reason
SAST tool is not run on all commits -- score normalized to 0
Details
- Warn: 0 commits out of 12 are checked with a SAST tool
Score
4.2
/10
Last Scanned on 2025-01-20
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 MoreOther packages similar to postcss-focus
postcss-focus-within
Use the :focus-within pseudo-selector in CSS
postcss-focus-visible
Use the :focus-visible pseudo-selector in CSS
@types/postcss-focus-within
Stub TypeScript definitions entry for postcss-focus-within, which provides its own types definitions
postcss-focus-ring
Use the :focus-ring pseudo-selector in CSS