fix(component): correct notification action hover style (#8303)

This commit is contained in:
Cats Juice
2024-09-19 15:18:19 +08:00
committed by GitHub
parent a38f291a01
commit a6c2f5dcd5
3 changed files with 1 additions and 21 deletions

View File

@@ -1,4 +1,3 @@
import { darkCssVariables, lightCssVariables } from '@toeverything/theme';
import { globalStyle } from '@vanilla-extract/css'; import { globalStyle } from '@vanilla-extract/css';
globalStyle('*', { globalStyle('*', {
@@ -14,14 +13,6 @@ globalStyle('body', {
backgroundColor: 'var(--affine-background-primary-color)', backgroundColor: 'var(--affine-background-primary-color)',
}); });
globalStyle('html', {
vars: lightCssVariables,
});
globalStyle('html[data-theme="dark"]', {
vars: darkCssVariables,
});
globalStyle('.docs-story', { globalStyle('.docs-story', {
backgroundColor: 'var(--affine-background-primary-color)', backgroundColor: 'var(--affine-background-primary-color)',
}); });

View File

@@ -1,5 +1,5 @@
import './polyfill'; import './polyfill';
import '../src/theme/global.css'; import '../src/theme';
import './preview.css'; import './preview.css';
import { ThemeProvider } from 'next-themes'; import { ThemeProvider } from 'next-themes';
import type { ComponentType } from 'react'; import type { ComponentType } from 'react';

View File

@@ -61,17 +61,6 @@ export const actionButton = style({
position: 'relative', position: 'relative',
background: 'transparent', background: 'transparent',
border: 'none', border: 'none',
'::before': {
content: '""',
position: 'absolute',
inset: 0,
borderRadius: 'inherit',
backgroundColor: cssVar('black'),
opacity: 0.04,
},
':hover': {
boxShadow: 'none !important',
},
}); });
export const closeButton = style({ export const closeButton = style({
selectors: { selectors: {