@jetbrains/ring-ui 4.0.45 → 4.0.46
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
|
@@ -133,11 +133,16 @@ export default class Tooltip extends Component {
|
|
|
133
133
|
const {children, 'data-test': dataTest,
|
|
134
134
|
title, delay, selfOverflowOnly, popupProps, ...restProps} = this.props;
|
|
135
135
|
|
|
136
|
+
const ariaProps = typeof title === 'string'
|
|
137
|
+
? {'aria-label': title, role: 'contentinfo'}
|
|
138
|
+
: {};
|
|
139
|
+
|
|
136
140
|
const {onNestedTooltipShow, onNestedTooltipHide} = this;
|
|
137
141
|
|
|
138
142
|
return (
|
|
139
143
|
<TooltipContext.Provider value={{onNestedTooltipShow, onNestedTooltipHide}}>
|
|
140
144
|
<span
|
|
145
|
+
{...ariaProps}
|
|
141
146
|
{...restProps}
|
|
142
147
|
ref={this.containerRef}
|
|
143
148
|
data-test={dataTests('ring-tooltip', dataTest)}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@jetbrains/ring-ui",
|
|
3
|
-
"version": "4.0.
|
|
3
|
+
"version": "4.0.46",
|
|
4
4
|
"description": "JetBrains UI library",
|
|
5
5
|
"author": "JetBrains",
|
|
6
6
|
"license": "Apache-2.0",
|
|
@@ -68,7 +68,7 @@
|
|
|
68
68
|
"@babel/cli": "^7.15.4",
|
|
69
69
|
"@babel/eslint-parser": "^7.15.4",
|
|
70
70
|
"@jetbrains/eslint-config": "^5.3.1",
|
|
71
|
-
"@jetbrains/generator-ring-ui": "^4.0.
|
|
71
|
+
"@jetbrains/generator-ring-ui": "^4.0.35",
|
|
72
72
|
"@jetbrains/stylelint-config": "^2.0.1",
|
|
73
73
|
"@primer/octicons": "^15.1.0",
|
|
74
74
|
"@storybook/addon-a11y": "6.3.8",
|
|
@@ -207,5 +207,5 @@
|
|
|
207
207
|
"node": ">=7.4",
|
|
208
208
|
"npm": ">=6.0.0"
|
|
209
209
|
},
|
|
210
|
-
"gitHead": "
|
|
210
|
+
"gitHead": "51ea222790f311224226726b175ff773329f23ed"
|
|
211
211
|
}
|