Security News
New Proposed CISA Mandate Would Require Critical Infrastructure to Report Ransom Payments Within 24 Hours
CISA has proposed a set of new rules that would require critical infrastructure to report cyber incidents and ransom payments.
tailwindcss-visuallyhidden
Advanced tools
Visually Hidden utility plugin for tailwindcss framework
Weekly downloads
Readme
Hide only visually, but have it available for screen readers: https://snook.ca/archives/html_and_css/hiding-content-for-accessibility
For long content, line feeds are not interpreted as spaces and small width causes content to wrap 1 word per line: https://medium.com/@jessebeach/beware-smushed-off-screen-accessible-text-5952a4c2cbfe
Add this plugin to your project:
# Install via npm
npm install --save-dev tailwindcss-visuallyhidden
You can add the plugin to your tailwind config as follows:
require('tailwindcss-visuallyhidden')()
This plugin outputs the following
.visuallyhidden {
border: 0;
clip: rect(0 0 0 0);
clip-path: inset(50%);
height: 1px;
margin: -1px;
overflow: hidden;
padding: 0;
position: absolute;
width: 1px;
white-space: nowrap; /* 1 */
}
.visuallyhidden.focusable:active,
.visuallyhidden.focusable:focus {
clip: auto;
clip-path: none;
height: auto;
margin: 0;
overflow: visible;
position: static;
width: auto;
white-space: inherit;
}
As per the tailwind plugin docs you are able to pass variants (responsive, hover etc) as a parameter.
require('tailwindcss-visuallyhidden')({
variants: ['responsive', 'hover'],
})
FAQs
Visually Hidden utility plugin for tailwindcss framework
The npm package tailwindcss-visuallyhidden receives a total of 26 weekly downloads. As such, tailwindcss-visuallyhidden popularity was classified as not popular.
We found that tailwindcss-visuallyhidden demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Security News
CISA has proposed a set of new rules that would require critical infrastructure to report cyber incidents and ransom payments.
Security News
Redis is no longer OSS, breaking its explicit commitment to remain under the BSD 3-Clause License forever. This has angered contributors who are now working to fork the software.
Product
Socket AI now enables 'AI detected potential malware' alerts by default, ensuring users benefit from AI-powered state-of-the-art malware detection without needing to opt-in.