💄 (textEditor) Fix floating link inputs color in dark mode
This commit is contained in:
@ -22,6 +22,7 @@ import {
|
|||||||
InputGroup,
|
InputGroup,
|
||||||
InputLeftElement,
|
InputLeftElement,
|
||||||
Stack,
|
Stack,
|
||||||
|
useColorModeValue,
|
||||||
} from '@chakra-ui/react'
|
} from '@chakra-ui/react'
|
||||||
import { TextInputIcon } from '@/features/blocks/inputs/textInput/components/TextInputIcon'
|
import { TextInputIcon } from '@/features/blocks/inputs/textInput/components/TextInputIcon'
|
||||||
|
|
||||||
@ -41,6 +42,7 @@ export interface LinkFloatingToolbarProps {
|
|||||||
}
|
}
|
||||||
|
|
||||||
export function LinkFloatingToolbar({ state }: LinkFloatingToolbarProps) {
|
export function LinkFloatingToolbar({ state }: LinkFloatingToolbarProps) {
|
||||||
|
const bgColor = useColorModeValue('white', 'gray.800')
|
||||||
const urlInputRef = useRef<HTMLInputElement>(null)
|
const urlInputRef = useRef<HTMLInputElement>(null)
|
||||||
const insertState = useFloatingLinkInsertState({
|
const insertState = useFloatingLinkInsertState({
|
||||||
...state,
|
...state,
|
||||||
@ -79,12 +81,12 @@ export function LinkFloatingToolbar({ state }: LinkFloatingToolbarProps) {
|
|||||||
const input = (
|
const input = (
|
||||||
<Stack
|
<Stack
|
||||||
w="330px"
|
w="330px"
|
||||||
bgColor="white"
|
|
||||||
px="4"
|
px="4"
|
||||||
py="2"
|
py="2"
|
||||||
rounded="md"
|
rounded="md"
|
||||||
borderWidth={1}
|
borderWidth={1}
|
||||||
shadow="md"
|
shadow="md"
|
||||||
|
bgColor={bgColor}
|
||||||
>
|
>
|
||||||
<InputGroup>
|
<InputGroup>
|
||||||
<InputLeftElement pointerEvents="none">
|
<InputLeftElement pointerEvents="none">
|
||||||
|
Reference in New Issue
Block a user