Skip to content

Commit

Permalink
💄 style: Fallback some style
Browse files Browse the repository at this point in the history
  • Loading branch information
canisminor1990 committed Sep 23, 2024
1 parent 8c60b4a commit 7b0dbc1
Show file tree
Hide file tree
Showing 5 changed files with 17 additions and 26 deletions.
1 change: 0 additions & 1 deletion src/ActionIconGroup/demos/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,6 @@ export default () => {
options: ['small', 'normal', 'large'],
value: 'small',
},
spotlight: true,
type: {
options: ['ghost', 'block', 'pure'],
value: 'block',
Expand Down
3 changes: 0 additions & 3 deletions src/ActionIconGroup/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,6 @@ import { Flexbox } from 'react-layout-kit';

import ActionIcon, { type ActionIconProps } from '@/ActionIcon';
import Icon, { IconSizeType } from '@/Icon';
import Spotlight from '@/Spotlight';
import { DivProps } from '@/types';

import { useStyles } from './style';
Expand Down Expand Up @@ -68,7 +67,6 @@ const ActionIconGroup = memo<ActionIconGroupProps>(
type = 'block',
items = [],
placement,
spotlight = true,
direction = 'row',
dropdownMenu = [],
onActionClick,
Expand All @@ -81,7 +79,6 @@ const ActionIconGroup = memo<ActionIconGroupProps>(

return (
<Flexbox className={styles.container} horizontal={direction === 'row'} {...rest}>
{spotlight && <Spotlight />}
{items?.length > 0 &&
items.map((item) => (
<ActionIcon
Expand Down
3 changes: 1 addition & 2 deletions src/ActionIconGroup/style.ts
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import { createStyles } from 'antd-style';

export const useStyles = createStyles(
({ css, token, stylish, cx }, { type }: { type: 'ghost' | 'block' | 'pure' }) => {
({ css, token, cx }, { type }: { type: 'ghost' | 'block' | 'pure' }) => {
const typeStylish = css`
background-color: ${type === 'block' ? token.colorFillTertiary : token.colorFillQuaternary};
border: 1px solid ${type === 'block' ? 'transparent' : token.colorBorder};
Expand All @@ -10,7 +10,6 @@ export const useStyles = createStyles(
return {
container: cx(
type !== 'pure' && typeStylish,
stylish.blur,
css`
position: relative;
padding: 2px;
Expand Down
35 changes: 16 additions & 19 deletions src/ChatHeader/style.ts
Original file line number Diff line number Diff line change
@@ -1,33 +1,30 @@
import { createStyles } from 'antd-style';
import { rgba } from 'polished';

export const useStyles = createStyles(({ css, token, stylish, cx }) => {
export const useStyles = createStyles(({ css, token }) => {
return {
center: css`
position: relative;
overflow: hidden;
`,
container: cx(
stylish.blurStrong,
css`
position: absolute;
z-index: 10;
container: css`
position: absolute;
z-index: 10;
overflow: hidden;
grid-area: header;
align-self: stretch;
overflow: hidden;
grid-area: header;
align-self: stretch;
width: 100%;
height: 64px;
width: 100%;
height: 64px;
background: linear-gradient(
to bottom,
${rgba(token.colorBgLayout, 0.8)},
${rgba(token.colorBgLayout, 0.4)}
);
border-block-end: 1px solid ${token.colorBorder};
`,
),
background: linear-gradient(
to bottom,
${rgba(token.colorBgLayout, 0.8)},
${rgba(token.colorBgLayout, 0.4)}
);
border-block-end: 1px solid ${token.colorBorder};
`,
left: css`
position: relative;
overflow: hidden;
Expand Down
1 change: 0 additions & 1 deletion src/Modal/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -70,7 +70,6 @@ const useStyles = createStyles(
`,
wrap: css`
overflow: hidden auto;
backdrop-filter: blur(2px);
`,
};
},
Expand Down

0 comments on commit 7b0dbc1

Please sign in to comment.