2
0

💄 (textEditor) Fix floating link inputs color in dark mode

This commit is contained in:
Baptiste Arnaud
2024-03-04 18:20:24 +01:00
parent 8e20d90081
commit 579e4078b9

View File

@ -22,6 +22,7 @@ import {
InputGroup,
InputLeftElement,
Stack,
useColorModeValue,
} from '@chakra-ui/react'
import { TextInputIcon } from '@/features/blocks/inputs/textInput/components/TextInputIcon'
@ -41,6 +42,7 @@ export interface LinkFloatingToolbarProps {
}
export function LinkFloatingToolbar({ state }: LinkFloatingToolbarProps) {
const bgColor = useColorModeValue('white', 'gray.800')
const urlInputRef = useRef<HTMLInputElement>(null)
const insertState = useFloatingLinkInsertState({
...state,
@ -79,12 +81,12 @@ export function LinkFloatingToolbar({ state }: LinkFloatingToolbarProps) {
const input = (
<Stack
w="330px"
bgColor="white"
px="4"
py="2"
rounded="md"
borderWidth={1}
shadow="md"
bgColor={bgColor}
>
<InputGroup>
<InputLeftElement pointerEvents="none">