Skip to content

Commit

Permalink
style
Browse files Browse the repository at this point in the history
  • Loading branch information
tiagoevanp committed Oct 14, 2021
1 parent 5df05f8 commit ae15dc7
Showing 1 changed file with 22 additions and 1 deletion.
23 changes: 22 additions & 1 deletion client/components/Message/Body/Quote.tsx
Original file line number Diff line number Diff line change
@@ -1,11 +1,32 @@
import { css } from '@rocket.chat/css-in-js';
import { Box } from '@rocket.chat/fuselage';
import colors from '@rocket.chat/fuselage-tokens/colors';
import { Quote as ASTQuote } from '@rocket.chat/message-parser';
import React, { FC } from 'react';

import Paragraph from './Paragraph';

const hover = css`
&:hover,
&:focus {
background: ${colors.n200} !important;
border-color: ${colors.n300} !important;
border-inline-start-color: ${colors.n600} !important;
}
`;

const Quote: FC<{ value: ASTQuote['value'] }> = ({ value }) => (
<Box is='blockquote' backgroundColor='neutral-200' pi='x8'>
<Box
is='blockquote'
className={hover}
pi='x8'
borderRadius='x2'
borderWidth='x2'
borderStyle='solid'
backgroundColor='neutral-100'
borderColor='neutral-200'
borderInlineStartColor='neutral-600'
>
{value.map((item, index) => (
<Paragraph key={index} value={item.value} mentions={[]} />
))}
Expand Down

0 comments on commit ae15dc7

Please sign in to comment.