@reach/visually-hidden
Advanced tools
Comparing version 0.6.1 to 0.6.2
@@ -5,3 +5,2 @@ function _extends() { _extends = Object.assign || function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends.apply(this, arguments); } | ||
var style = { | ||
display: "block", | ||
border: 0, | ||
@@ -14,3 +13,6 @@ clip: "rect(0 0 0 0)", | ||
overflow: "hidden", | ||
position: "absolute" | ||
position: "absolute", | ||
// https://medium.com/@jessebeach/beware-smushed-off-screen-accessible-text-5952a4c2cbfe | ||
whiteSpace: "nowrap", | ||
wordWrap: "normal" | ||
}; | ||
@@ -24,2 +26,3 @@ | ||
VisuallyHidden.displayName = "VisuallyHidden"; | ||
export default VisuallyHidden; |
@@ -13,3 +13,2 @@ "use strict"; | ||
var style = { | ||
display: "block", | ||
border: 0, | ||
@@ -22,3 +21,6 @@ clip: "rect(0 0 0 0)", | ||
overflow: "hidden", | ||
position: "absolute" | ||
position: "absolute", | ||
// https://medium.com/@jessebeach/beware-smushed-off-screen-accessible-text-5952a4c2cbfe | ||
whiteSpace: "nowrap", | ||
wordWrap: "normal" | ||
}; | ||
@@ -32,3 +34,4 @@ | ||
VisuallyHidden.displayName = "VisuallyHidden"; | ||
var _default = VisuallyHidden; | ||
exports["default"] = _default; |
{ | ||
"name": "@reach/visually-hidden", | ||
"version": "0.6.1", | ||
"version": "0.6.2", | ||
"description": "Render text that is announced to screen readers but visually hidden.", | ||
@@ -23,3 +23,3 @@ "main": "index.js", | ||
], | ||
"gitHead": "c1e249448a3672ccc65698218f0f38ef9814ab90" | ||
"gitHead": "00e73c5da6d25f50194612f74de71156fde2a80a" | ||
} |
import React from "react"; | ||
let style = { | ||
display: "block", | ||
border: 0, | ||
@@ -12,3 +11,7 @@ clip: "rect(0 0 0 0)", | ||
overflow: "hidden", | ||
position: "absolute" | ||
position: "absolute", | ||
// https://medium.com/@jessebeach/beware-smushed-off-screen-accessible-text-5952a4c2cbfe | ||
whiteSpace: "nowrap", | ||
wordWrap: "normal" | ||
}; | ||
@@ -20,2 +23,4 @@ | ||
VisuallyHidden.displayName = "VisuallyHidden"; | ||
export default VisuallyHidden; |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
4786
86