The communications platform that puts data protection first.
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
 
Rocket.Chat/client/lib/clickableItem.js

17 lines
466 B

import React from 'react';
import { css } from '@rocket.chat/css-in-js';
import colors from '@rocket.chat/fuselage-tokens/colors';
// TODO remove border from here
export function clickableItem(WrappedComponent) {
const clickable = css`
cursor: pointer;
border-bottom: 2px solid ${ colors.n300 } !important;
&:hover,
&:focus {
background: ${ colors.n100 };
}
`;
return (props) => <WrappedComponent className={clickable} tabIndex={0} {...props}/>;
}