|
1 | 1 | /* |
2 | | - Copyright 2019 Michael Telatynski <7t3chguy@gmail.com> |
| 2 | +Copyright 2019 Michael Telatynski <7t3chguy@gmail.com> |
| 3 | +Copyright 2019 The Matrix.org Foundation C.I.C. |
3 | 4 |
|
4 | | - Licensed under the Apache License, Version 2.0 (the "License"); |
5 | | - you may not use this file except in compliance with the License. |
6 | | - You may obtain a copy of the License at |
| 5 | +Licensed under the Apache License, Version 2.0 (the "License"); |
| 6 | +you may not use this file except in compliance with the License. |
| 7 | +You may obtain a copy of the License at |
7 | 8 |
|
8 | | - http://www.apache.org/licenses/LICENSE-2.0 |
| 9 | + http://www.apache.org/licenses/LICENSE-2.0 |
9 | 10 |
|
10 | | - Unless required by applicable law or agreed to in writing, software |
11 | | - distributed under the License is distributed on an "AS IS" BASIS, |
12 | | - WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. |
13 | | - See the License for the specific language governing permissions and |
14 | | - limitations under the License. |
15 | | - */ |
| 11 | +Unless required by applicable law or agreed to in writing, software |
| 12 | +distributed under the License is distributed on an "AS IS" BASIS, |
| 13 | +WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. |
| 14 | +See the License for the specific language governing permissions and |
| 15 | +limitations under the License. |
| 16 | +*/ |
16 | 17 |
|
17 | 18 | import React from 'react'; |
18 | 19 | import PropTypes from 'prop-types'; |
@@ -55,7 +56,7 @@ export default class AccessibleTooltipButton extends React.PureComponent { |
55 | 56 | label={title} |
56 | 57 | /> : <div />; |
57 | 58 | return ( |
58 | | - <AccessibleButton {...props} onMouseOver={this.onMouseOver} onMouseOut={this.onMouseOut}> |
| 59 | + <AccessibleButton {...props} onMouseOver={this.onMouseOver} onMouseOut={this.onMouseOut} aria-label={title}> |
59 | 60 | { tip } |
60 | 61 | </AccessibleButton> |
61 | 62 | ); |
|
0 commit comments