mirror of
https://github.com/vector-im/element-web.git
synced 2025-08-26 17:01:49 +02:00
Merge pull request #3701 from matrix-org/dbkr/yarn_upgrade_dec19
yarn upgrade
This commit is contained in:
commit
625e3ef93a
@ -47,7 +47,7 @@ const ARIA_MENU_ITEM_ROLES = new Set(["menuitem", "menuitemcheckbox", "menuitemr
|
|||||||
// all options inside the menu should be of role=menuitem/menuitemcheckbox/menuitemradiobutton and have tabIndex={-1}
|
// all options inside the menu should be of role=menuitem/menuitemcheckbox/menuitemradiobutton and have tabIndex={-1}
|
||||||
// this will allow the ContextMenu to manage its own focus using arrow keys as per the ARIA guidelines.
|
// this will allow the ContextMenu to manage its own focus using arrow keys as per the ARIA guidelines.
|
||||||
export class ContextMenu extends React.Component {
|
export class ContextMenu extends React.Component {
|
||||||
propTypes: {
|
static propTypes = {
|
||||||
top: PropTypes.number,
|
top: PropTypes.number,
|
||||||
bottom: PropTypes.number,
|
bottom: PropTypes.number,
|
||||||
left: PropTypes.number,
|
left: PropTypes.number,
|
||||||
|
@ -90,7 +90,7 @@ function isInLowerLeftHalf(x, y, rect) {
|
|||||||
* tooltip along one edge of the target.
|
* tooltip along one edge of the target.
|
||||||
*/
|
*/
|
||||||
export default class InteractiveTooltip extends React.Component {
|
export default class InteractiveTooltip extends React.Component {
|
||||||
propTypes: {
|
static propTypes = {
|
||||||
// Content to show in the tooltip
|
// Content to show in the tooltip
|
||||||
content: PropTypes.node.isRequired,
|
content: PropTypes.node.isRequired,
|
||||||
// Function to call when visibility of the tooltip changes
|
// Function to call when visibility of the tooltip changes
|
||||||
|
Loading…
x
Reference in New Issue
Block a user