Socket
Socket
Sign inDemoInstall

@reach/visually-hidden

Package Overview
Dependencies
Maintainers
3
Versions
43
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@reach/visually-hidden - npm Package Compare versions

Comparing version 0.6.1 to 0.6.2

7

es/index.js

@@ -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;
SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc