@tds/core-a11y-content
Advanced tools
Comparing version 1.0.0 to 1.0.1
Allows content to be hidden from sight, but still visible to screen readers. This can be used to give context to users using screen readers without revealing unnecessary extra text to sighted users. | ||
```jsx | ||
<Text>The screen reader says:</Text><A11yContent>This is accessible content</A11yContent> | ||
``` | ||
<Text>The screen reader says:</Text><A11yContent>This is accessible content</A11yContent> | ||
``` |
@@ -6,2 +6,10 @@ # Change Log | ||
## [1.0.1](https://github.com/telusdigital/tds/compare/@tds/core-a11y-content@1.0.0...@tds/core-a11y-content@1.0.1) (2019-02-06) | ||
**Note:** Version bump only for package @tds/core-a11y-content | ||
<a name="1.0.0"></a> | ||
@@ -8,0 +16,0 @@ # 1.0.0 (2018-07-17) |
@@ -8,3 +8,3 @@ 'use strict'; | ||
var styles = { "a11yContent": "TDS_A11yContent-modules__a11yContent___1A-Rh" }; | ||
var styles = {"a11yContent":"TDS_A11yContent-modules__a11yContent___1A-Rh"}; | ||
@@ -17,8 +17,5 @@ /** | ||
var children = _ref.children; | ||
return React.createElement( | ||
'span', | ||
{ className: styles.a11yContent }, | ||
children | ||
); | ||
return React.createElement("span", { | ||
className: styles.a11yContent | ||
}, children); | ||
}; | ||
@@ -32,2 +29,1 @@ | ||
module.exports = A11yContent; | ||
//# sourceMappingURL=index.cjs.js.map |
import React from 'react'; | ||
import PropTypes from 'prop-types'; | ||
var styles = { "a11yContent": "TDS_A11yContent-modules__a11yContent___1A-Rh" }; | ||
var styles = {"a11yContent":"TDS_A11yContent-modules__a11yContent___1A-Rh"}; | ||
@@ -12,8 +12,5 @@ /** | ||
var children = _ref.children; | ||
return React.createElement( | ||
'span', | ||
{ className: styles.a11yContent }, | ||
children | ||
); | ||
return React.createElement("span", { | ||
className: styles.a11yContent | ||
}, children); | ||
}; | ||
@@ -27,2 +24,1 @@ | ||
export default A11yContent; | ||
//# sourceMappingURL=index.es.js.map |
{ | ||
"name": "@tds/core-a11y-content", | ||
"version": "1.0.0", | ||
"version": "1.0.1", | ||
"description": "Hide content that should only be seen by screen readers", | ||
@@ -29,3 +29,4 @@ "main": "index.cjs.js", | ||
"prop-types": "^15.5.10" | ||
} | ||
}, | ||
"gitHead": "79839daf9cc90e531bdfe4e5202edfd4b7348342" | ||
} |
Sorry, the diff of this file is not supported yet
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
New author
Supply chain riskA new npm collaborator published a version of the package for the first time. New collaborators are usually benign additions to a project, but do indicate a change to the security surface area of a package.
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
6063
15
90
1