Skip to content
Snippets Groups Projects
Unverified Commit ef107614 authored by Aleksander Nicacio da Silva's avatar Aleksander Nicacio da Silva Committed by GitHub
Browse files

fix: Canned responses text editor without contrast in dark mode (#29636)

parent 9ed8d45a
No related branches found
No related tags found
No related merge requests found
---
'@rocket.chat/meteor': patch
---
Fixed Canned Responses text editor having no contrast in dark mode.
import { Box } from '@rocket.chat/fuselage';
import { TextAreaInput } from '@rocket.chat/fuselage';
import type { ComponentProps } from 'react';
import React, { forwardRef } from 'react';
type TextareaProps = ComponentProps<typeof Box>;
type TextareaProps = ComponentProps<typeof TextAreaInput>;
const Textarea = forwardRef<Element, TextareaProps>(function Textarea(props, ref) {
return (
<Box
is='textarea'
ref={ref}
w='full'
style={{ wordBreak: 'normal' }}
rcx-box--animated
rcx-input-box--type={'textarea'}
rcx-input-box--undecorated
{...props}
/>
);
const Textarea = forwardRef<HTMLTextAreaElement, TextareaProps>(function Textarea(props, ref) {
return <TextAreaInput ref={ref} w='full' style={{ wordBreak: 'normal' }} rcx-input-box--undecorated {...props} />;
});
export default Textarea;
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment