Skip to content

Commit

Permalink
chore: KeyboardShortCut color
Browse files Browse the repository at this point in the history
  • Loading branch information
dougfabris committed Dec 21, 2022
1 parent bdb196c commit 81452f2
Showing 1 changed file with 9 additions and 7 deletions.
@@ -1,4 +1,4 @@
import { Box, Divider } from '@rocket.chat/fuselage';
import { Box, Divider, Margins } from '@rocket.chat/fuselage';
import type { ReactElement } from 'react';
import React from 'react';

Expand All @@ -8,13 +8,15 @@ type KeyboardShortcutSectionProps = {
};

const KeyboardShortcutSection = ({ title, command }: KeyboardShortcutSectionProps): ReactElement => (
<Box is='section' mb='x16'>
<Box fontScale='p2m' fontWeight='700'>
{title}
<Margins block='x16'>
<Box is='section' color='default'>
<Box fontScale='p2m' fontWeight='700'>
{title}
</Box>
<Divider />
<Box fontScale='p2'>{command}</Box>
</Box>
<Divider />
<Box fontScale='p2'>{command}</Box>
</Box>
</Margins>
);

export default KeyboardShortcutSection;

0 comments on commit 81452f2

Please sign in to comment.