rc-tooltip
Advanced tools
Comparing version 3.7.2 to 3.7.3
@@ -32,3 +32,3 @@ import _classCallCheck from 'babel-runtime/helpers/classCallCheck'; | ||
'div', | ||
{ className: prefixCls + '-inner', id: id }, | ||
{ className: prefixCls + '-inner', id: id, role: 'tooltip' }, | ||
typeof overlay === 'function' ? overlay() : overlay | ||
@@ -35,0 +35,0 @@ ); |
@@ -51,3 +51,3 @@ 'use strict'; | ||
'div', | ||
{ className: prefixCls + '-inner', id: id }, | ||
{ className: prefixCls + '-inner', id: id, role: 'tooltip' }, | ||
typeof overlay === 'function' ? overlay() : overlay | ||
@@ -54,0 +54,0 @@ ); |
{ | ||
"name": "rc-tooltip", | ||
"version": "3.7.2", | ||
"version": "3.7.3", | ||
"description": "React Tooltip", | ||
@@ -5,0 +5,0 @@ "keywords": [ |
@@ -30,6 +30,6 @@ # rc-tooltip | ||
## Browser Support | ||
## Browsers support | ||
|![IE](https://raw.github.com/alrra/browser-logos/master/internet-explorer/internet-explorer_48x48.png) | ![Chrome](https://raw.github.com/alrra/browser-logos/master/chrome/chrome_48x48.png) | ![Firefox](https://raw.github.com/alrra/browser-logos/master/firefox/firefox_48x48.png) | ![Opera](https://raw.github.com/alrra/browser-logos/master/opera/opera_48x48.png) | ![Safari](https://raw.github.com/alrra/browser-logos/master/safari/safari_48x48.png)| | ||
| --- | --- | --- | --- | --- | | ||
| [<img src="https://raw.githubusercontent.com/alrra/browser-logos/master/src/edge/edge_48x48.png" alt="IE / Edge" width="24px" height="24px" />](http://godban.github.io/browsers-support-badges/)</br>IE / Edge | [<img src="https://raw.githubusercontent.com/alrra/browser-logos/master/src/firefox/firefox_48x48.png" alt="Firefox" width="24px" height="24px" />](http://godban.github.io/browsers-support-badges/)</br>Firefox | [<img src="https://raw.githubusercontent.com/alrra/browser-logos/master/src/chrome/chrome_48x48.png" alt="Chrome" width="24px" height="24px" />](http://godban.github.io/browsers-support-badges/)</br>Chrome | [<img src="https://raw.githubusercontent.com/alrra/browser-logos/master/src/safari/safari_48x48.png" alt="Safari" width="24px" height="24px" />](http://godban.github.io/browsers-support-badges/)</br>Safari | [<img src="https://raw.githubusercontent.com/alrra/browser-logos/master/src/opera/opera_48x48.png" alt="Opera" width="24px" height="24px" />](http://godban.github.io/browsers-support-badges/)</br>Opera | | ||
| --------- | --------- | --------- | --------- | --------- | | ||
| IE 8 + ✔ | Chrome 31.0+ ✔ | Firefox 31.0+ ✔ | Opera 30.0+ ✔ | Safari 7.0+ ✔ | | ||
@@ -53,3 +53,8 @@ | ||
ReactDOM.render(<Tooltip placement="left" trigger={['click']} overlay={<span>tooltip</span>}><a href='#'>hover</a></Tooltip>, container); | ||
ReactDOM.render( | ||
<Tooltip placement="left" trigger={['click']} overlay={<span>tooltip</span>}> | ||
<a href="#">hover</a> | ||
</Tooltip>, | ||
container | ||
); | ||
``` | ||
@@ -213,2 +218,4 @@ | ||
**NOTE:** `role="tooltip"` is also added to expose the purpose of the tooltip element to a screenreader. | ||
## Development | ||
@@ -215,0 +222,0 @@ |
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is too big to display
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
674727
7458
241
9