fix: reset text and background color (#6336)

This commit is contained in:
Aaryan Khandelwal 2025-01-07 18:04:26 +05:30 committed by GitHub
parent f4c4848a0d
commit ae657af958
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -71,7 +71,7 @@ export const BubbleMenuColorSelector: FC<Props> = (props) => {
<button <button
type="button" type="button"
className="flex-shrink-0 size-6 grid place-items-center rounded text-custom-text-300 border-[0.5px] border-custom-border-400 hover:bg-custom-background-80 transition-colors" className="flex-shrink-0 size-6 grid place-items-center rounded text-custom-text-300 border-[0.5px] border-custom-border-400 hover:bg-custom-background-80 transition-colors"
onClick={() => TextColorItem(editor).command(undefined)} onClick={() => TextColorItem(editor).command({ color: undefined })}
> >
<Ban className="size-4" /> <Ban className="size-4" />
</button> </button>
@ -94,7 +94,7 @@ export const BubbleMenuColorSelector: FC<Props> = (props) => {
<button <button
type="button" type="button"
className="flex-shrink-0 size-6 grid place-items-center rounded text-custom-text-300 border-[0.5px] border-custom-border-400 hover:bg-custom-background-80 transition-colors" className="flex-shrink-0 size-6 grid place-items-center rounded text-custom-text-300 border-[0.5px] border-custom-border-400 hover:bg-custom-background-80 transition-colors"
onClick={() => BackgroundColorItem(editor).command(undefined)} onClick={() => BackgroundColorItem(editor).command({ color: undefined })}
> >
<Ban className="size-4" /> <Ban className="size-4" />
</button> </button>