style: update delete button style (#3180)

This commit is contained in:
JimmFly
2023-07-12 17:23:39 +08:00
committed by GitHub
parent bd42380f8a
commit 1ac1c33bb1
11 changed files with 30 additions and 11 deletions
@@ -0,0 +1,12 @@
import { globalStyle, style } from '@vanilla-extract/css';
export const moveToTrashStyle = style({
':hover': {
backgroundColor: 'var(--affine-background-error-color)',
color: 'var(--affine-error-color)',
},
});
globalStyle(`${moveToTrashStyle}:hover svg`, {
color: 'var(--affine-error-color)',
});
@@ -3,8 +3,8 @@ import { DeleteTemporarilyIcon } from '@blocksuite/icons';
import type { ConfirmProps } from '../../..';
import { Confirm, MenuItem } from '../../..';
import { moveToTrashStyle } from './index.css';
import type { CommonMenuItemProps } from './types';
export const MoveToTrash = ({
onSelect,
onItemClick,
@@ -21,6 +21,7 @@ export const MoveToTrash = ({
onSelect?.();
}}
icon={<DeleteTemporarilyIcon />}
className={moveToTrashStyle}
>
{t['Move to Trash']()}
</MenuItem>