Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

react-fontawesome

Package Overview
Dependencies
Maintainers
1
Versions
22
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

react-fontawesome - npm Package Compare versions

Comparing version 1.4.0 to 1.5.0

lib/screen-reader-styles.js

4

changelog.md
# Changelog
## v.1.5.0
- Move screenreader styles to separate file to fix build issues (see #32)
## v1.4.0

@@ -4,0 +8,0 @@

21

lib/index.js

@@ -6,3 +6,2 @@ 'use strict';

});
exports.srOnlyStyle = undefined;

@@ -15,2 +14,6 @@ var _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; };

var _screenReaderStyles = require('./screen-reader-styles');
var _screenReaderStyles2 = _interopRequireDefault(_screenReaderStyles);
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }

@@ -20,13 +23,2 @@

var srOnlyStyle = exports.srOnlyStyle = {
position: 'absolute',
width: '1px',
height: '1px',
padding: '0px',
margin: '-1px',
overflow: 'hidden',
clip: 'rect(0px, 0px, 0px, 0px)',
border: '0px'
};
/**

@@ -124,4 +116,5 @@ * A React component for the font-awesome icon library.

className && classNames.push(className);
return _react2.default.createElement(tag, _extends({}, props, { 'aria-hidden': true, className: classNames.join(' ') }), ariaLabel ? _react2.default.createElement('span', { style: srOnlyStyle }, ariaLabel) : null);
return _react2.default.createElement(tag, _extends({}, props, { 'aria-hidden': true, className: classNames.join(' ') }), ariaLabel ? _react2.default.createElement('span', { style: _screenReaderStyles2.default }, ariaLabel) : null);
}
});
});
module.exports = exports['default'];
{
"name": "react-fontawesome",
"version": "1.4.0",
"version": "1.5.0",
"description": "A React component for the font-awesome icon library.",

@@ -5,0 +5,0 @@ "repository": {

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