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/components/Header/HeaderLink.tsx

26 lines
558 B

import { css } from '@rocket.chat/css-in-js';
import { Box } from '@rocket.chat/fuselage';
import colors from '@rocket.chat/fuselage-tokens/colors';
import React, { ComponentProps, FC } from 'react';
const HeaderLink: FC<ComponentProps<typeof Box>> = (props) => (
<Box
is='a'
{...props}
withTruncatedText
className={[
css`
color: ${colors.n700} !important;
&:hover,
&:focus {
color: ${colors.n800} !important;
}
&:visited {
color: ${colors.n800};
}
`,
].filter(Boolean)}
/>
);
export default HeaderLink;