chore: fix toolbar image option color

This commit is contained in:
Aman Harwara
2023-07-13 15:45:09 +05:30
parent ff56f04b2e
commit e4f1af1e94
4 changed files with 17 additions and 6 deletions

View File

@@ -1,3 +1,9 @@
export function GetRemoteImageBlock(onSelect: () => void) {
return { name: 'Image from URL', iconName: 'file-image', keywords: ['image', 'url'], onSelect }
return {
name: 'Image from URL',
iconName: 'file-image',
iconClassName: '!text-current',
keywords: ['image', 'url'],
onSelect,
}
}

View File

@@ -65,7 +65,13 @@ const MobileToolbarPlugin = () => {
}, [editor])
const items = useMemo(
() => [
(): {
name: string
iconName: string
iconClassName?: string
keywords?: string[]
onSelect: () => void
}[] => [
{
name: 'Bold',
iconName: 'bold',
@@ -222,7 +228,7 @@ const MobileToolbarPlugin = () => {
onClick={item.onSelect}
key={item.name}
>
<Icon type={item.iconName} size="medium" />
<Icon type={item.iconName} size="medium" className={item.iconClassName} />
</button>
)
})}