Skip to content

Commit ef10761

Browse files
authoredJun 27, 2023
fix: Canned responses text editor without contrast in dark mode (RocketChat#29636)
1 parent 9ed8d45 commit ef10761

File tree

2 files changed

+9
-15
lines changed

2 files changed

+9
-15
lines changed
 

‎.changeset/smooth-hotels-hunt.md

+5
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
---
2+
'@rocket.chat/meteor': patch
3+
---
4+
5+
Fixed Canned Responses text editor having no contrast in dark mode.
Original file line numberDiff line numberDiff line change
@@ -1,22 +1,11 @@
1-
import { Box } from '@rocket.chat/fuselage';
1+
import { TextAreaInput } from '@rocket.chat/fuselage';
22
import type { ComponentProps } from 'react';
33
import React, { forwardRef } from 'react';
44

5-
type TextareaProps = ComponentProps<typeof Box>;
5+
type TextareaProps = ComponentProps<typeof TextAreaInput>;
66

7-
const Textarea = forwardRef<Element, TextareaProps>(function Textarea(props, ref) {
8-
return (
9-
<Box
10-
is='textarea'
11-
ref={ref}
12-
w='full'
13-
style={{ wordBreak: 'normal' }}
14-
rcx-box--animated
15-
rcx-input-box--type={'textarea'}
16-
rcx-input-box--undecorated
17-
{...props}
18-
/>
19-
);
7+
const Textarea = forwardRef<HTMLTextAreaElement, TextareaProps>(function Textarea(props, ref) {
8+
return <TextAreaInput ref={ref} w='full' style={{ wordBreak: 'normal' }} rcx-input-box--undecorated {...props} />;
209
});
2110

2211
export default Textarea;

0 commit comments

Comments
 (0)
Please sign in to comment.