tailwindcss-visuallyhidden
Advanced tools
Comparing version 1.0.1 to 1.0.2
13
index.js
@@ -6,2 +6,13 @@ module.exports = function (variants) { | ||
const original = { | ||
clip: 'auto', | ||
clipPath: 'none', | ||
height: 'auto', | ||
margin: 'auto', | ||
overflow: 'auto', | ||
position: 'relative', | ||
width: 'auto', | ||
whiteSpace: 'normal', | ||
} | ||
const focusable = { | ||
@@ -32,2 +43,4 @@ clip: 'auto', | ||
[`.not-${className}`]: original, | ||
[`.${className}.${focusClassName}:active`]: focusable, | ||
@@ -34,0 +47,0 @@ [`.${className}.${focusClassName}:focus`]: focusable, |
{ | ||
"name": "tailwindcss-visuallyhidden", | ||
"version": "1.0.1", | ||
"version": "1.0.2", | ||
"description": "Visually Hidden utility plugin for tailwindcss framework", | ||
@@ -5,0 +5,0 @@ "main": "index.js", |
@@ -55,3 +55,3 @@ # Visually Hidden Utility Tailwind Plugin | ||
As per the [tailwind plugin docs](https://tailwindcss.com/docs/plugins/) you are able to pass variants (repsonsive, hover etc) as a parameter. | ||
As per the [tailwind plugin docs](https://tailwindcss.com/docs/plugins/) you are able to pass variants (responsive, hover etc) as a parameter. | ||
@@ -58,0 +58,0 @@ ```js |
3269
44