Skip to content

Commit

Permalink
馃拕 (textEditor) Fix floating link inputs color in dark mode
Browse files Browse the repository at this point in the history
  • Loading branch information
baptisteArno committed Mar 4, 2024
1 parent 8e20d90 commit 579e407
Showing 1 changed file with 3 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,7 @@ import {
InputGroup,
InputLeftElement,
Stack,
useColorModeValue,
} from '@chakra-ui/react'
import { TextInputIcon } from '@/features/blocks/inputs/textInput/components/TextInputIcon'

Expand All @@ -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,
Expand Down Expand Up @@ -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">
Expand Down

0 comments on commit 579e407

Please sign in to comment.