react-fontawesome
Advanced tools
Comparing version 1.4.0 to 1.5.0
# Changelog | ||
## v.1.5.0 | ||
- Move screenreader styles to separate file to fix build issues (see #32) | ||
## v1.4.0 | ||
@@ -4,0 +8,0 @@ |
@@ -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": { |
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
12483
8
113