Skip to content

Commit 6de1abf

Browse files
ergot-rpergotse
andauthored
fix: WCAG (1.4.3) Changed font color to default (RocketChat#36361)
Co-authored-by: Erik Göthe <194300518+ergotse@users.noreply.github.com>
1 parent e5cad0d commit 6de1abf

2 files changed

Lines changed: 4 additions & 4 deletions

File tree

apps/meteor/client/components/message/content/attachments/QuoteAttachment.tsx

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ import AttachmentInner from './structure/AttachmentInner';
1818
const quoteStyles = css`
1919
.rcx-attachment__details {
2020
.rcx-message-body {
21-
color: ${Palette.text['font-hint']};
21+
color: ${Palette.text['font-default']};
2222
}
2323
}
2424
&:hover,
@@ -53,14 +53,14 @@ export const QuoteAttachment = ({ attachment }: QuoteAttachmentProps): ReactElem
5353
<AttachmentAuthor>
5454
{displayAvatarPreference && <AttachmentAuthorAvatar url={attachment.author_icon} />}
5555
<AttachmentAuthorName
56-
{...(attachment.author_link && { is: 'a', href: attachment.author_link, target: '_blank', color: 'hint' })}
56+
{...(attachment.author_link && { is: 'a', href: attachment.author_link, target: '_blank', color: 'default' })}
5757
>
5858
{attachment.author_name}
5959
</AttachmentAuthorName>
6060
{attachment.ts && (
6161
<Box
6262
fontScale='c1'
63-
{...(attachment.message_link ? { is: 'a', href: attachment.message_link, color: 'hint' } : { color: 'hint' })}
63+
{...(attachment.message_link ? { is: 'a', href: attachment.message_link, color: 'default' } : { color: 'default' })}
6464
>
6565
{formatTime(attachment.ts)}
6666
</Box>

apps/meteor/client/components/message/content/attachments/structure/AttachmentDetails.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ import type { ComponentPropsWithoutRef } from 'react';
44
type AttachmentDetailsProps = ComponentPropsWithoutRef<typeof Box>;
55

66
const AttachmentDetails = (props: AttachmentDetailsProps) => (
7-
<Box rcx-attachment__details fontScale='p2' color='hint' bg='surface-tint' padding={16} {...props} />
7+
<Box rcx-attachment__details fontScale='p2' color='default' bg='surface-tint' padding={16} {...props} />
88
);
99

1010
export default AttachmentDetails;

0 commit comments

Comments
 (0)